Changeset 29548 for trunk/psphot/src/psphotExtendedSourceAnalysisByObject.c
- Timestamp:
- Oct 25, 2010, 3:16:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotExtendedSourceAnalysisByObject.c
r28013 r29548 38 38 // which extended source analyses should we perform? 39 39 bool doPetrosian = psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_PETROSIAN"); 40 bool doIsophotal = psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_ISOPHOTAL");41 40 bool doAnnuli = psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_ANNULI"); 42 bool doKron = psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_KRON");43 41 44 42 // number of images used to define sources … … 117 115 118 116 // if we request any of these measurements, we require the radial profile 119 if (doPetrosian || do Isophotal || doAnnuli || doKron) {117 if (doPetrosian || doAnnuli) { 120 118 if (!psphotRadialProfile (source, recipe, skynoise, maskVal)) { 121 119 // all measurements below require the radial profile; skip them all 122 120 // re-subtract the object, leave local sky 123 psTrace ("psphot", 5, " failed to extractradial profile for source at %7.1f, %7.1f", source->moments->Mx, source->moments->My);121 psTrace ("psphot", 5, "FAILED radial profile for source at %7.1f, %7.1f", source->moments->Mx, source->moments->My); 124 122 pmSourceSub (source, PM_MODEL_OP_FULL, maskVal); 125 123 continue; 124 } else { 125 psTrace ("psphot", 5, "measured radial profile for source at %7.1f, %7.1f", source->moments->Mx, source->moments->My); 126 Nannuli ++; 127 source->mode |= PM_SOURCE_MODE_RADIAL_FLUX; 126 128 } 127 source->mode |= PM_SOURCE_MODE_RADIAL_FLUX;128 129 } 129 130 … … 138 139 } 139 140 } 140 141 141 142 142 // re-subtract the object, leave local sky
Note:
See TracChangeset
for help on using the changeset viewer.
