Changeset 5772 for trunk/psphot/src/psphotBasicDeblend.c
- Timestamp:
- Dec 13, 2005, 6:43:44 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotBasicDeblend.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotBasicDeblend.c
r5718 r5772 14 14 psTimerStart ("psphot"); 15 15 16 // this should be added to the PM_SOURCE flags:17 i nt PM_SOURCE_BLEND = PM_SOURCE_OTHER + 1;16 float FRACTION = psMetadataLookupF32 (&status, config, "DEBLEND_PEAK_FRACTION"); 17 if (!status) FRACTION = 0.25; 18 18 19 float FRACTION = psMetadataLookupF32 (&status, config, "DEBLEND_PEAK_FRACTION");20 19 float NSIGMA = psMetadataLookupF32 (&status, config, "DEBLEND_SKY_NSIGMA"); 20 if (!status) NSIGMA = 5.0; 21 21 22 float minThreshold = NSIGMA*sky->sampleStdev; 22 fprintf (stderr, "min threshold: %f\n", minThreshold);23 23 24 24 // we need sources spatially-sorted to find overlaps … … 43 43 source = sources->data[N]; 44 44 45 if (source-> type ==PM_SOURCE_BLEND) continue;45 if (source->mode & PM_SOURCE_BLEND) continue; 46 46 47 47 overlap->n = 0; … … 119 119 ); 120 120 121 testSource-> type= PM_SOURCE_BLEND;121 testSource->mode |= PM_SOURCE_BLEND; 122 122 Nblend ++; 123 123 j = xv->n;
Note:
See TracChangeset
for help on using the changeset viewer.
