Changeset 21519 for trunk/psphot/src/psphotFindPeaks.c
- Timestamp:
- Feb 16, 2009, 12:34:24 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotFindPeaks.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotFindPeaks.c
r20453 r21519 21 21 } 22 22 23 // correct the peak values to S/N = sqrt(significance) 24 // get the peak flux from the unsmoothed image 25 // the peak pixel coords are guaranteed to be on the image 23 // Convert the peak values to S/N = sqrt(significance). 24 // Get the peak flux from the unsmoothed image. 25 // Rescale the peak position errors using the peak variance 26 // The peak pixel coords are guaranteed to be on the image 26 27 int row0 = readout->image->row0; 27 28 int col0 = readout->image->col0; … … 30 31 peak->SN = sqrt(peak->value); 31 32 peak->flux = readout->image->data.F32[peak->y-row0][peak->x-col0]; 33 if (readout->variance && isfinite (peak->dx)) { 34 peak->dx *= sqrt(readout->variance->data.F32[peak->y-row0][peak->x-col0]); 35 } 36 if (readout->variance && isfinite (peak->dy)) { 37 peak->dy *= sqrt(readout->variance->data.F32[peak->y-row0][peak->x-col0]); 38 } 32 39 } 33 40
Note:
See TracChangeset
for help on using the changeset viewer.
