Changeset 6481 for trunk/psphot/src/psphotReadout.c
- Timestamp:
- Feb 23, 2006, 6:16:11 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotReadout.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotReadout.c
r6442 r6481 17 17 18 18 // construct sources and measure basic stats 19 // limit moments analysis by S/N? 19 20 sources = psphotSourceStats (readout, config, peaks); 20 21 21 22 // classify sources based on moments, brightness 23 // faint sources not classified? 22 24 psphotRoughClass (sources, config); 23 25 … … 28 30 psf = psphotChoosePSF (config, sources); 29 31 30 // select analysis method 31 char *FITMODE = psMetadataLookupStr (&status, config, "FITMODE"); 32 if (!strcasecmp(FITMODE, "ENSEMBLE")) { 33 psphotEnsemblePSF (readout, config, sources, psf); 34 } 32 // linear PSF fit to peaks 33 psphotEnsemblePSF (readout, config, sources, psf, FALSE); 35 34 36 if (!strcasecmp(FITMODE, "BLEND")) { 37 psphotEnsemblePSF (readout, config, sources, psf); 38 psphotBlendFit (readout, config, sources, psf); 39 psphotReplaceUnfit (sources); 40 psphotApResid (readout, sources, config, psf); 41 } 35 // non-linear PSF and EXT fit to brighter sources 36 psphotBlendFit (readout, config, sources, psf); 42 37 38 // replace fitted sources 39 psphotReplaceUnfit (sources); 40 41 // find remaining peaks after first source subtraction pass 42 // psphotFindPeaks (); 43 44 // linear PSF fit to remaining peaks 45 psphotEnsemblePSF (readout, config, sources, psf, TRUE); 46 47 // measure aperture photometry corrections 48 psphotApResid (readout, sources, config, psf); 49 50 // calculate source magnitudes 43 51 psphotMagnitudes (config, sources, psf); 44 52 53 // update the header with stats results 45 54 psMetadata *header = pmReadoutGetHeader (readout); 46 55 psphotUpdateHeader (header, config); 47 56 48 // psphotSkyReplace (readout, skymodel); 57 // XXX make this an option? 58 // replace background in residual image 59 psphotSkyReplace (readout, skymodel); 49 60 50 61 // need to do something with the sources, psf, and sky … … 66 77 // XXX Deprecate or allow these versions? 67 78 # if (0) 79 // select analysis method 80 char *FITMODE = psMetadataLookupStr (&status, config, "FITMODE"); 81 if (!strcasecmp(FITMODE, "ENSEMBLE")) { 82 psphotEnsemblePSF (readout, config, sources, psf); 83 } 84 68 85 if (!strcasecmp(FITMODE, "FULL")) { 69 86 psphotEnsemblePSF (readout, config, sources, psf);
Note:
See TracChangeset
for help on using the changeset viewer.
