- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
psphot (modified) (1 prop)
-
psphot/src (modified) (1 prop)
-
psphot/src/psphotCullPeaks.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/psphot
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/psphot merged eligible /branches/eam_branches/stackphot.20100406/psphot 27622-27655 /branches/pap_delete/psphot 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/psphot/src
- Property svn:ignore
-
old new 18 18 psphotVersionDefinitions.h 19 19 psphotMomentsStudy 20 psphotPetrosianStudy 21 psphotForced 22 psphotMakePSF 23 psphotStack
-
- Property svn:ignore
-
branches/simtest_nebulous_branches/psphot/src/psphotCullPeaks.c
r24877 r27840 5 5 */ 6 6 psErrorCode 7 psphotCullPeaks(const psImage *image, // the image wherein lives the footprint 8 const psImage *weight, // corresponding variance image 7 psphotCullPeaks(const pmReadout *readout, // the image wherein lives the footprint 9 8 const psMetadata *recipe, 10 9 psArray *footprints) { // array of pmFootprints 10 11 11 bool status = false; 12 12 13 float nsigma_delta = psMetadataLookupF32(&status, recipe, "FOOTPRINT_CULL_NSIGMA_DELTA"); 13 14 if (!status) { … … 22 23 fPadding = 0; 23 24 } 24 const float skyStdev = psMetadataLookupF32(NULL, recipe, "SKY_STDEV"); 25 const float skyStdev = psMetadataLookupF32(&status, readout->analysis, "SKY_STDEV"); 26 psAssert (status, "cannot find SKY_STDEV in readout->analysis"); 27 25 28 const float min_threshold = nsigma_min*skyStdev; 26 29 27 30 for (int i = 0; i < footprints->n; i++) { 31 // if (i % 50 == 0) fprintf (stderr, "cull %d\n", i); 28 32 pmFootprint *fp = footprints->data[i]; 29 if (pmFootprintCullPeaks(image, weight, fp, nsigma_delta, fPadding, min_threshold) != PS_ERR_NONE) { 33 if (fp->npix > 30000) { 34 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); 35 } 36 psTimerStart ("psphot.cull.footprints"); 37 if (pmFootprintCullPeaks(readout->image, readout->variance, fp, nsigma_delta, fPadding, min_threshold) != PS_ERR_NONE) { 30 38 return psError(PS_ERR_UNKNOWN, false, "Culling pmFootprint %d", fp->id); 31 39 } 40 float dtime = psTimerMark ("psphot.cull.footprints"); 41 if (dtime > 1.0) { 42 fprintf (stderr, "slow cull for %d (%f sec)\n", i, dtime); 43 } 32 44 } 33 34 45 return PS_ERR_NONE; 35 46 } 47 48 // psLogMsg ("psphot", PS_LOG_INFO, "%ld peaks, %ld total footprints: %f sec\n", detections->peaks->n, detections->footprints->n,
Note:
See TracChangeset
for help on using the changeset viewer.
