Changeset 12689 for trunk/psphot/src/psphotReadout.c
- Timestamp:
- Mar 29, 2007, 4:48:20 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotReadout.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotReadout.c
r12665 r12689 61 61 return psphotReadoutCleanup (config, readout, recipe, NULL, NULL); 62 62 } 63 pmPeaksWriteText (peaks, "oldpeaks.dat"); 63 64 64 65 // construct sources and measure basic stats … … 70 71 return psphotReadoutCleanup(config, readout, recipe, NULL, sources); 71 72 } 73 74 psphotDeblendSatstars (sources, recipe); 72 75 73 76 // mark blended peaks PS_SOURCE_BLEND … … 102 105 psphotGuessModels (readout, sources, recipe, psf); 103 106 107 psphotSaveImage (NULL, readout->image, "image.v0.fits"); 108 104 109 // linear PSF fit to peaks 105 110 psphotEnsemblePSF (readout, sources, recipe, psf, FALSE); 111 psphotSaveImage (NULL, readout->image, "image.v1.fits"); 106 112 if (!strcasecmp (breakPt, "ENSEMBLE")) { 107 113 goto finish; 108 114 } 109 115 110 // plot positive + negative sources (replace, then remove)111 psphotSourcePlots (readout, sources, recipe);112 113 116 // non-linear PSF and EXT fit to brighter sources 114 117 psphotBlendFit (readout, sources, recipe, psf); 118 psphotSaveImage (NULL, readout->image, "image.v2.fits"); 115 119 116 120 // replace all sources 117 121 psphotReplaceAll (sources); 118 119 // plot positive sources 120 // psphotSourcePlots (readout, sources, recipe); 122 psphotSaveImage (NULL, readout->image, "image.v3.fits"); 121 123 122 124 // linear PSF fit to remaining peaks 123 125 psphotEnsemblePSF (readout, sources, recipe, psf, TRUE); 126 psphotSaveImage (NULL, readout->image, "image.v4.fits"); 124 127 if (!strcasecmp (breakPt, "PASS1")) { 125 128 goto finish; … … 137 140 // find the peaks in the image 138 141 psArray *newPeaks = psphotFindPeaks (readout, recipe, 2); 142 pmPeaksWriteText (newPeaks, "newpeaks.dat"); 139 143 140 144 // remove noise for subtracted objects … … 153 157 // replace all sources 154 158 psphotReplaceAll (sources); 159 psphotSaveImage (NULL, readout->image, "image.v5.fits"); 155 160 156 161 // merge the newly selected peaks into the existing list … … 160 165 // linear PSF fit to remaining peaks 161 166 psphotEnsemblePSF (readout, sources, recipe, psf, TRUE); 167 psphotSaveImage (NULL, readout->image, "image.v6.fits"); 162 168 163 169 finish: 170 171 // plot positive sources 172 psphotSourcePlots (readout, sources, recipe); 164 173 165 174 // measure aperture photometry corrections
Note:
See TracChangeset
for help on using the changeset viewer.
