Changeset 27507
- Timestamp:
- Mar 29, 2010, 1:44:59 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20100225/psphot/src/psphotSourceSize.c
r27502 r27507 14 14 int grow; 15 15 int xtest, ytest; 16 bool apply; // apply CR mask? 16 17 } psphotSourceSizeOptions; 17 18 … … 118 119 psWarning("PSPHOT.CR.NSIGMA.SOFTEN not set; defaulting to zero."); 119 120 options.soft = 0.0; 121 } 122 123 options.apply = psMetadataLookupBool(&status, recipe, "PSPHOT.CRMASK.APPLY"); // Growth size for CRs 124 if (!status) { 125 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "PSPHOT.CRMASK.APPLY is not defined."); 126 return false; 120 127 } 121 128 … … 463 470 // XXX this is running slowly and is too agressive, but it more-or-less works 464 471 psTrace("psphot", 6, "mask cosmic ray at %f, %f\n", source->peak->xf, source->peak->yf); 465 psphotMaskCosmicRay(readout, source, options->crMask); 472 if (options->apply) { 473 psphotMaskCosmicRay(readout, source, options->crMask); 474 } else { 475 source->mode |= PM_SOURCE_MODE_CR_LIMIT; 476 } 466 477 nMasked ++; 467 478
Note:
See TracChangeset
for help on using the changeset viewer.
