IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33890 for trunk


Ignore:
Timestamp:
May 17, 2012, 4:27:19 PM (14 years ago)
Author:
bills
Message:

don't subtract noise if psphotFindDetetcions already has

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotReadout.c

    r33089 r33890  
    185185        // remove noise for subtracted objects (ie, return to normal noise level)
    186186        // NOTE: this needs to operate only on the OLD sources
    187         psphotSubNoise (config, view, filerule); // pass 1 (detections->allSources)
     187        bool footprintsUseUnsubtracted = psMetadataLookupBool(NULL, recipe, "FOOTPRINT_USE_UNSUBTRACTED");
     188        // if footprintsUseUnsubtracted is true the noise was already subtracted in psphotFindDetections()
     189        if (!footprintsUseUnsubtracted) {
     190            psphotSubNoise (config, view, filerule); // pass 1 (detections->allSources)
     191        }
    188192
    189193        // define new sources based on only the new peaks & measure moments
Note: See TracChangeset for help on using the changeset viewer.