Changeset 6964 for trunk/psphot/src/psphotReadout.c
- Timestamp:
- Apr 22, 2006, 3:20:29 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotReadout.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotReadout.c
r6862 r6964 3 3 bool psphotReadout (pmConfig *config, pmFPAview *view) { 4 4 5 psArray *sources = NULL;6 psArray *peaks = NULL;7 pmPSF *psf = NULL;8 bool status;9 10 5 // select the current recipe 11 psMetadata *recipe = psMetadataLookupPtr ( &status, config->recipes, "PSPHOT");6 psMetadata *recipe = psMetadataLookupPtr (NULL, config->recipes, "PSPHOT"); 12 7 13 8 // find the currently selected readout … … 28 23 29 24 // find the peaks in the image 30 p eaks = psphotFindPeaks (readout, recipe);25 psArray *peaks = psphotFindPeaks (readout, recipe); 31 26 32 27 // construct sources and measure basic stats 33 28 // limit moments analysis by S/N? 34 sources = psphotSourceStats (readout, recipe, peaks);29 psArray *sources = psphotSourceStats (readout, recipe, peaks); 35 30 36 31 // classify sources based on moments, brightness … … 42 37 43 38 // use bright stellar objects to measure PSF 44 p sf = psphotChoosePSF (readout, sources, recipe);39 pmPSF *psf = psphotChoosePSF (readout, sources, recipe); 45 40 psphotPSFstats (readout, recipe, psf); 46 41 … … 76 71 77 72 // save the results of the analysis 78 status =psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.SOURCES", PS_DATA_ARRAY, "psphot sources", sources);79 status =psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.HEADER", PS_DATA_METADATA, "header stats", header);80 status =psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.PSF", PS_DATA_UNKNOWN, "psphot psf", psf);73 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.SOURCES", PS_DATA_ARRAY, "psphot sources", sources); 74 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.HEADER", PS_DATA_METADATA, "header stats", header); 75 psMetadataAdd (readout->analysis, PS_LIST_TAIL, "PSPHOT.PSF", PS_DATA_UNKNOWN, "psphot psf", psf); 81 76 82 77 // remove internal pmFPAfiles, if created … … 85 80 86 81 // free up the local copies of the data 82 psFree (peaks); 83 psFree (sources); 87 84 psFree (psf); 88 85 psFree (header); 89 psFree (sources);90 psFree (peaks);91 86 return true; 92 87 }
Note:
See TracChangeset
for help on using the changeset viewer.
