Changeset 33889
- Timestamp:
- May 17, 2012, 4:08:53 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
ippconfig/recipes/psphot.config (modified) (2 diffs)
-
psphot/src/psphotFindDetections.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippconfig/recipes/psphot.config
r33837 r33889 68 68 FOOTPRINT_CULL_NSIGMA_MIN F32 1 # Minimum height of colls in units of skyStdev 69 69 FOOTPRINT_CULL_NSIGMA_PAD F32 0.01 # Fractional Padding for stdev 70 FOOTPRINT_USE_UNSUBTRACTED BOOL TRUE # find footprints without sources subtracted 70 71 71 72 # parameter for the simple deblending … … 191 192 KRON_APPLY_WEIGHT BOOL TRUE 192 193 KRON_APPLY_WINDOW BOOL TRUE 193 KRON_SMOOTH BOOL FALSE194 KRON_SMOOTH BOOL TRUE 194 195 195 196 # Extended source fit parameters -
trunk/psphot/src/psphotFindDetections.c
r33761 r33889 48 48 // Use the new pmFootprints approach? 49 49 const bool useFootprints = psMetadataLookupBool(NULL, recipe, "USE_FOOTPRINTS"); 50 const bool footprintsUseUnsubtracted = psMetadataLookupBool(NULL, recipe, "FOOTPRINT_USE_UNSUBTRACTED"); 50 51 51 52 pmDetections *detections = psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.DETECTIONS"); … … 64 65 } 65 66 67 bool replaceSourcesForFootprints = false; 66 68 if (firstPass) { 67 69 pass = 1; … … 70 72 } else { 71 73 pass = 2; 74 // XXX change this to a recipe value 75 replaceSourcesForFootprints = footprintsUseUnsubtracted; 72 76 NSIGMA_PEAK = psMetadataLookupF32 (&status, recipe, "PEAKS_NSIGMA_LIMIT_2"); PS_ASSERT (status, NULL); 73 77 NMAX = 0; // unlimited number of peaks in final pass: allow a limit (PEAKS_NMAX_2) ? … … 116 120 // optionally merge peaks into footprints 117 121 if (useFootprints) { 122 if (replaceSourcesForFootprints) { 123 psphotAddOrSubNoiseReadout(config, view, filerule, index, recipe, false); 124 psphotReplaceAllSourcesReadout (config, view, filerule, index, recipe, false); 125 psFree (significance); 126 significance = psphotSignificanceImage (readout, recipe, maskVal); 127 } 128 118 129 psphotFindFootprints (detections, significance, readout, recipe, threshold, pass, maskVal); 130 131 if (replaceSourcesForFootprints) { 132 psphotRemoveAllSourcesReadout (config, view, filerule, index, recipe, false); 133 } 119 134 } 120 135
Note:
See TracChangeset
for help on using the changeset viewer.
