Changeset 17339
- Timestamp:
- Apr 6, 2008, 10:14:40 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080324/psphot/src/psphotReadout.c
r17112 r17339 117 117 psphotFitSourcesLinear (readout, sources, recipe, psf, FALSE); 118 118 119 // XXX test the CR/EXT measurement 120 // XXX we need to call this here and after the second pass: option for starting number? 119 // identify CRs and extended sources 121 120 psphotSourceSize (readout, sources, recipe, 0); 122 121 if (!strcasecmp (breakPt, "ENSEMBLE")) { … … 127 126 psphotBlendFit (readout, sources, recipe, psf); 128 127 129 // replace all sources (make this part of psphotFitSourcesLinear?)128 // replace all sources 130 129 psphotReplaceAll (sources, recipe); 131 130 132 131 // linear fit to include all sources 133 132 psphotFitSourcesLinear (readout, sources, recipe, psf, TRUE); 133 134 // if we only do one pass, skip to extended source analysis 134 135 if (!strcasecmp (breakPt, "PASS1")) { 135 goto finish;136 goto pass1finish; 136 137 } 137 138 … … 145 146 psphotAddNoise (readout, sources, recipe); 146 147 148 // find fainter sources (pass 2) 147 149 detections = psphotFindDetections (detections, readout, recipe); 148 150 149 // remove noise for subtracted objects 151 // remove noise for subtracted objects (ie, return to normal noise level) 150 152 psphotSubNoise (readout, sources, recipe); 151 153 … … 172 174 psphotFitSourcesLinear (readout, sources, recipe, psf, TRUE); 173 175 176 pass1finish: 177 174 178 // measure source size for the remaining sources 175 179 psphotSourceSize (readout, sources, recipe, 0); 176 180 177 psphotExtendedSources (readout, sources, recipe); 181 psphotExtendedSourceAnalysis (readout, sources, recipe); 182 183 psphotSaveImage (NULL, readout->image, "image.x0.fits"); 184 185 psphotExtendedSourceFits (readout, sources, recipe); 178 186 179 187 finish:
Note:
See TracChangeset
for help on using the changeset viewer.
