Changeset 6862 for trunk/psphot/src/psphotReadout.c
- Timestamp:
- Apr 14, 2006, 11:58:44 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotReadout.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotReadout.c
r6851 r6862 1 1 # include "psphot.h" 2 2 3 // XXX 2006.03.28 : no leaks!4 3 bool psphotReadout (pmConfig *config, pmFPAview *view) { 5 4 … … 18 17 // XXX move this input the psphotImageLoop level? 19 18 pmReadoutSetWeights (readout); 20 psphotSaveImage (NULL, readout->weight, "weight.fits");21 19 22 20 // I have a valid mask, now mask in the analysis region of interest … … 44 42 45 43 // use bright stellar objects to measure PSF 46 psf = psphotChoosePSF (sources, recipe); 44 psf = psphotChoosePSF (readout, sources, recipe); 45 psphotPSFstats (readout, recipe, psf); 47 46 48 47 // linear PSF fit to peaks … … 52 51 psphotBlendFit (readout, sources, recipe, psf); 53 52 53 // XXX this was an attempt to measure bias due to the weighting. 54 54 // psphotWeightBias (readout, sources, recipe, psf); 55 55 … … 91 91 return true; 92 92 } 93 94 # if (0)95 fprintf (stderr, "making fake sources\n");96 sources = psphotFakeSources ();97 psMetadata *tmp = psMetadataAlloc ();98 status = psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.SOURCES", PS_DATA_ARRAY, "psphot sources", sources);99 status = psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.HEADER", PS_DATA_METADATA, "header stats", tmp);100 psFree (sources);101 psFree (tmp);102 return true;103 # endif
Note:
See TracChangeset
for help on using the changeset viewer.
