IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2012, 11:50:18 AM (14 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20120627/psphot
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120627/psphot

  • branches/eam_branches/ipp-20120627/psphot/src

  • branches/eam_branches/ipp-20120627/psphot/src/psphotCullPeaks.c

    r31154 r34247  
    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");
     
    7384
    7485        if (fp->npix > 30000) {
    75             fprintf (stderr, "big footprint: %f %f to %f %f (%d pix)\n", fp->bbox.x0, fp->bbox.y0, fp->bbox.x1, fp->bbox.y1, fp->npix);
     86            psLogMsg("psphot.cull.footprints", PS_LOG_WARN, "big footprint: %f %f to %f %f (%d pix)\n", fp->bbox.x0, fp->bbox.y0, fp->bbox.x1, fp->bbox.y1, fp->npix);
    7687        }
    7788        psTimerStart ("psphot.cull.footprints");
     
    97108# endif
    98109
     110
    99111        float dtime = psTimerMark ("psphot.cull.footprints");
    100112        if (dtime > 1.0) {
    101             fprintf (stderr, "slow cull for %d (%f sec)\n", i, dtime);
     113            psLogMsg("psphot.cull.footprints", PS_LOG_WARN, "slow cull for %d (%f sec)\n", i, dtime);
    102114        }
    103115    }
Note: See TracChangeset for help on using the changeset viewer.