IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34202


Ignore:
Timestamp:
Jul 24, 2012, 3:50:47 PM (14 years ago)
Author:
bills
Message:

Add recipe value FOOTPRINT_SET_NANS_TO_ZERO which when set sets NAN pixels to zero
in the image that is used to Cull Peaks. Set to false for now.
Also add recipe value PSPHOT.CR.MAX.WINDOW default 50) which limits the size
of the region checked for cosmic rays. Previously the entire footprint was
checked which performed horribly with really large footprints.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippconfig/recipes/psphot.config

    r34137 r34202  
    6969FOOTPRINT_CULL_NSIGMA_PAD           F32   0.01            # Fractional Padding for stdev
    7070FOOTPRINT_USE_UNSUBTRACTED          BOOL  TRUE            # find footprints without sources subtracted
     71FOOTPRINT_SET_NANS_TO_ZERO          BOOL  FALSE           # set nan pixels in smoothed image to zero when culling peaks
    7172
    7273# parameter for the simple deblending
     
    274275
    275276# psphotFitSourcesLinear has 3 options for the weighting: CONSTANT,
    276 # IMAGE_VAR, MODEL_VA the first of these used to be folded into the
     277# IMAGE_VAR, MODEL_VAR the first of these used to be folded into the
    277278# boolean CONSTANT_PHOTOMETRIC_WEIGHTS above.
    278279LINEAR_FIT_VARIANCE_MODE            STR  CONSTANT
     
    340341PSPHOT.CR.MAX.MAG                   F32   0               # guess for limit on Kron Mag
    341342PSPHOT.CR.AUTOSCALE                 BOOL  FALSE
     343PSPHOT.CR.MAX.WINDOW                S32   50              # maximum window to seach for cosmic rays
    342344
    343345# Detection efficiency
  • trunk/psphot/src/psphotCullPeaks.c

    r34200 r34202  
    6363# if (PM_PEAKS_CULL_WITH_SMOOTHED_IMAGE)
    6464    psLogMsg ("psphot", PS_LOG_INFO, "Culling peaks from footprints using the smoothed image");
     65    bool setNaNsToZero = psMetadataLookupF32 (&status, recipe, "FOOTPRINT_SET_NANS_TO_ZERO");
     66    if (setNaNsToZero) {
     67        // Set NaN pixels to zero so that they do not considered in the footprint analysis
     68        // XXX: Currently the caller does nothing further with the significance readout so
     69        // modifiying the image does no harm
     70        // XXX: Note: signifR->weight is not used by pmFootprintCullPeaks so we don't
     71        // need to touch it
     72        psImageClipNaN(signifR->image, 0);
     73    }
     74       
     75
    6576# else
    6677    psLogMsg ("psphot", PS_LOG_INFO, "Culling peaks from footprints using the raw (unsmoothed) image");
Note: See TracChangeset for help on using the changeset viewer.