- Timestamp:
- Nov 8, 2011, 2:41:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110906/psphot/src/psphotRadialApertures.c
r32616 r32628 26 26 int num = psphotFileruleCount(config, filerule); 27 27 28 // skip the chisq image (optionally?) 29 int chisqNum = psMetadataLookupS32 (&status, config->arguments, "PSPHOT.CHISQ.NUM"); 30 if (!status) chisqNum = -1; 31 28 32 // loop over the available readouts 29 33 for (int i = 0; i < num; i++) { 34 if (i == chisqNum) continue; // skip chisq image 35 30 36 if (!psphotRadialAperturesReadout (config, view, filerule, i, recipe, entry)) { 31 37 psError (PSPHOT_ERR_CONFIG, false, "failed on measure extended source aperture-like parameters for %s entry %d", filerule, i); … … 218 224 pmSource *source = sources->data[i]; 219 225 226 // if we have checked the source validity on the basis of the object set, then 227 // we either skip these tests below or we skip the source completely 228 if (source->tmpFlags & PM_SOURCE_TMPF_RADIAL_SKIP) continue; 229 if (source->tmpFlags & PM_SOURCE_TMPF_RADIAL_KEEP) goto keepSource; 230 220 231 // skip PSF-like and non-astronomical objects 221 232 if (source->type == PM_SOURCE_TYPE_DEFECT) continue; … … 235 246 if (source->peak->x > region->x1) continue; 236 247 if (source->peak->y > region->y1) continue; 248 249 keepSource: 237 250 238 251 // allocate pmSourceExtendedParameters, if not already defined
Note:
See TracChangeset
for help on using the changeset viewer.
