- Timestamp:
- Dec 4, 2013, 3:41:02 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130904/psphot/src/psphotExtendedSourceAnalysis.c
r36342 r36351 16 16 psAssert (recipe, "missing recipe?"); 17 17 18 bool doPetrosian = psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_PETROSIAN"); 19 bool doAnnuli = psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_ANNULI"); 20 18 21 // measure petrosians? 19 if (! psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_PETROSIAN")) {22 if (!doPetrosian && !doAnnuli) { 20 23 psLogMsg ("psphot", PS_LOG_INFO, "skipping extended source measurements\n"); 21 24 return true; … … 208 211 float skynoise = PS_SCALAR_VALUE(job->args->data[4],F32); 209 212 213 bool doPetrosian = psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_PETROSIAN"); 214 210 215 // user-defined masks to test for good/bad pixels (build from recipe list if not yet set) 211 216 psImageMaskType maskVal = psMetadataLookupImageMask(&status, recipe, "MASK.PSPHOT"); // Mask value for bad pixels … … 254 259 255 260 // Petrosian Mags 256 if (!psphotPetrosian (source, recipe, skynoise, maskVal)) { 257 psTrace ("psphot", 5, "FAILED petrosian flux & radius for source at %7.1f, %7.1f", source->moments->Mx, source->moments->My); 258 } else { 259 psTrace ("psphot", 5, "measured petrosian flux & radius for source at %7.1f, %7.1f", source->moments->Mx, source->moments->My); 260 Npetro ++; 261 source->mode |= PM_SOURCE_MODE_EXTENDED_STATS; 261 if (doPetrosian) { 262 if (!psphotPetrosian (source, recipe, skynoise, maskVal)) { 263 psTrace ("psphot", 5, "FAILED petrosian flux & radius for source at %7.1f, %7.1f", source->moments->Mx, source->moments->My); 264 } else { 265 psTrace ("psphot", 5, "measured petrosian flux & radius for source at %7.1f, %7.1f", source->moments->Mx, source->moments->My); 266 Npetro ++; 267 source->mode |= PM_SOURCE_MODE_EXTENDED_STATS; 268 } 262 269 } 263 270
Note:
See TracChangeset
for help on using the changeset viewer.
