Changeset 17954
- Timestamp:
- Jun 5, 2008, 4:02:08 PM (18 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 2 edited
-
psphot.h (modified) (2 diffs)
-
psphotChoosePSF.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphot.h
r17870 r17954 12 12 13 13 #define PSPHOT_RECIPE "PSPHOT" // Name of the recipe to use 14 15 #define PSPHOT_RECIPE_PSF_FAKE_ALLOW "PSF.FAKE.ALLOW" // Name for recipe component permitting fake PSFs 16 14 17 15 18 // top-level psphot functions … … 126 129 127 130 bool psphotRadialProfile (pmSource *source, psMetadata *recipe, psMaskType maskVal); 128 bool psphotPetrosian (pmSource *source, psMetadata *recipe, psMaskType maskVal);129 bool psphotIsophotal (pmSource *source, psMetadata *recipe, psMaskType maskVal);130 bool psphotAnnuli (pmSource *source, psMetadata *recipe, psMaskType maskVal);131 bool psphotKron (pmSource *source, psMetadata *recipe, psMaskType maskVal);131 bool psphotPetrosian (pmSource *source, psMetadata *recipe, psMaskType maskVal); 132 bool psphotIsophotal (pmSource *source, psMetadata *recipe, psMaskType maskVal); 133 bool psphotAnnuli (pmSource *source, psMetadata *recipe, psMaskType maskVal); 134 bool psphotKron (pmSource *source, psMetadata *recipe, psMaskType maskVal); 132 135 133 136 // structures & functions to support psf-convolved model fitting -
trunk/psphot/src/psphotChoosePSF.c
r17555 r17954 106 106 // generate a psf model using the first selection 107 107 if (stars->n == 0) { 108 // XXX optionally give up here109 108 psError(PSPHOT_ERR_PSF, false, "Failed to fit any models when choosing PSF"); 110 psErrorStackPrint (stderr, "Using guess PSF model"); 111 psErrorClear (); 109 bool mdok; // Status of MD lookup 110 if (!psMetadataLookupBool(&mdok, recipe, PSPHOT_RECIPE_PSF_FAKE_ALLOW)) { 111 return false; 112 } 113 psErrorStackPrint(stderr, "Using guess PSF model"); 114 psErrorClear(); 112 115 113 116 psFree(options); … … 175 178 psFree (stars); 176 179 177 // XXX optionally give up here 178 // test for PSPHOT.recipe & return false on failure. 179 180 psError(PSPHOT_ERR_PSF, false, "Failed to fit any models when choosing PSF"); 181 bool mdok; // Status of MD lookup 182 if (!psMetadataLookupBool(&mdok, recipe, PSPHOT_RECIPE_PSF_FAKE_ALLOW)) { 183 return false; 184 } 180 185 // generate a psf model using the first selection 181 psError(PSPHOT_ERR_PSF, false, "Failed to fit any models when choosing PSF");182 186 psErrorStackPrint (stderr, "Using guess PSF model"); 183 psErrorClear ();187 psErrorClear(); 184 188 185 189 psFree(options);
Note:
See TracChangeset
for help on using the changeset viewer.
