Changeset 4215 for trunk/psphot/src/psphot.c
- Timestamp:
- Jun 11, 2005, 5:43:47 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphot.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphot.c
r4189 r4215 4 4 int main (int argc, char **argv) { 5 5 6 psMetadata *config = NULL; // user-provided configuration information 7 psMetadata *header = NULL; // input image header 8 psImage *image = NULL; // input image data 9 psImage *noise = NULL; // input image data 10 psImage *mask = NULL; // input image data 11 psArray *sources = NULL; 12 psArray *peaks = NULL; // a list of pmPeaks 13 pmPSF *psf = NULL; 14 psStats *sky = NULL; 6 psMetadata *config = NULL; // user-provided configuration information 7 psImageData *imdata = NULL; 8 psArray *sources = NULL; 9 psArray *peaks = NULL; // a list of pmPeaks 10 pmPSF *psf = NULL; 11 psStats *sky = NULL; 15 12 16 13 psLogArguments (&argc, argv); … … 20 17 // load input data (image and config) 21 18 // create or load mask and noise images 22 setup (&image, &mask, &noise, &header,config);19 imdata = setup (config); 23 20 24 21 // measure image stats for initial guess 25 sky = image_stats (im age, config);22 sky = image_stats (imdata, config); 26 23 27 24 // find the peaks in the image 28 peaks = find_peaks (im age, config, sky);25 peaks = find_peaks (imdata, config, sky); 29 26 30 27 // construct sources and measure basic stats 31 sources = source_moments (im age, config, peaks);28 sources = source_moments (imdata, config, peaks); 32 29 33 30 // source analysis is done in S/N order (brightest first)
Note:
See TracChangeset
for help on using the changeset viewer.
