- Timestamp:
- Jul 31, 2012, 11:50:18 AM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120627/psphot
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120627/psphot
- Property svn:mergeinfo changed
/trunk/psphot merged: 34135-34136,34200-34202,34215,34218,34226
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20120627/psphot/src
- Property svn:mergeinfo changed
/trunk/psphot/src merged: 34135-34136,34200-34202,34215,34218,34226
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20120627/psphot/src/psphotCullPeaks.c
r31154 r34247 63 63 # if (PM_PEAKS_CULL_WITH_SMOOTHED_IMAGE) 64 64 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 65 76 # else 66 77 psLogMsg ("psphot", PS_LOG_INFO, "Culling peaks from footprints using the raw (unsmoothed) image"); … … 73 84 74 85 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); 76 87 } 77 88 psTimerStart ("psphot.cull.footprints"); … … 97 108 # endif 98 109 110 99 111 float dtime = psTimerMark ("psphot.cull.footprints"); 100 112 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); 102 114 } 103 115 }
Note:
See TracChangeset
for help on using the changeset viewer.
