Changeset 19869 for trunk/psphot/src/psphotReadout.c
- Timestamp:
- Oct 2, 2008, 11:49:42 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotReadout.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotReadout.c
r18973 r19869 36 36 } 37 37 38 // set up the Visual display, display the image, weight, mask (ch 1,2,3) 39 psphotVisualShowImage (config, readout); 40 38 41 // generate a background model (median, smoothed image) 39 42 if (!psphotModelBackground (config, view, "PSPHOT.INPUT")) { … … 46 49 return psphotReadoutCleanup (config, readout, recipe, NULL, NULL, NULL); 47 50 } 51 52 // display the backsub and backgnd images 53 psphotVisualShowBackground (config, view, readout); 48 54 49 55 // run a single-model test if desired (exits from here if test is run) … … 63 69 } 64 70 71 // display the backsub and backgnd images 72 psphotVisualShowPeaks (config, view, detections); 73 psphotVisualShowFootprints (config, view, detections); 74 65 75 // XXX test write out the footprint image 66 76 if (0) { … … 68 78 psphotSaveImage (NULL, footprintImage, "footprints.1.fits"); 69 79 psFree (footprintImage); 70 }71 72 // XXX test write out the footprint image73 if (0) {74 psImage *footprintImage = pmSetFootprintArrayIDs (detections->footprints, true);75 psphotSaveImage (NULL, footprintImage, "footprints.1.fits");76 psFree (footprintImage);77 80 } 78 81 … … 84 87 } 85 88 89 psphotVisualShowMoments (config, view, sources); 90 86 91 // find blended neighbors of very saturated stars 87 92 // XXX merge this with Basic Deblend? … … 102 107 return psphotReadoutCleanup(config, readout, recipe, detections, psf, sources); 103 108 } 109 110 psphotVisualShowRoughClass (config, view, sources); 104 111 105 112 // if we were not supplied a PSF, choose one here … … 119 126 } 120 127 128 psphotVisualShowPSFModel (config, readout, psf); 129 121 130 // Define source fitting parameters for everything that follows PSF fits 122 131 // This allows different parameters to be used from the PSF fitting … … 158 167 psphotFitSourcesLinear (readout, sources, recipe, psf, FALSE); 159 168 169 // XXX we have to place this here because the models are not realized until psphotGuessModels 170 // or fitted until psphotFitSourcesLinear. There is an example of generating a residual image 171 // in pmPSFtry.c 172 173 psphotVisualShowPSFStars (config, view, psf, sources); 174 psphotVisualShowSatStars (config, view, psf, sources); 175 psphotVisualShowLinearFit (config, readout); 176 160 177 if (0) { 161 178 FILE *out = fopen ("out.pass1.dat", "w"); … … 184 201 } 185 202 203 // XXX psphotVisualShowSourceSize (config, view, sources); 204 186 205 // non-linear PSF and EXT fit to brighter sources 187 206 psphotBlendFit (readout, sources, recipe, psf); 207 208 // XXX psphotVisualShowNonLinearFit (config, view, sources); 188 209 189 210 // replace all sources
Note:
See TracChangeset
for help on using the changeset viewer.
