Changeset 6319 for trunk/psphot/src/psphotReadout.c
- Timestamp:
- Feb 3, 2006, 8:48:32 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotReadout.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotReadout.c
r6311 r6319 1 1 # include "psphot.h" 2 3 # define MEM_0 psMemId ID = psMemGetId (); 4 # define MEM_1(A) \ 5 psTimerStop ();\ 6 if (A != NULL) { psFree (A); } \ 7 fprintf (stderr, "found %d leaks\n", psMemCheckLeaks (ID, NULL, NULL, false));\ 8 exit (1); 2 9 3 10 bool psphotReadout (pmReadout *readout, psMetadata *config) { … … 8 15 psStats *sky = NULL; 9 16 bool status; 17 psPolynomial2D *model = NULL; 10 18 11 19 psphotSaveImage (NULL, readout->mask, "mask.fits"); … … 18 26 // generate a background model (currently, 2D polynomial) 19 27 // XXX this should be available to be re-added to the original image 20 psphotImageBackground (readout, config, sky);28 model = psphotImageBackground (readout, config, sky); 21 29 22 30 // find the peaks in the image … … 33 41 34 42 // use bright stellar objects to measure PSF 43 MEM_0; 35 44 psf = psphotChoosePSF (config, sources, sky); 45 MEM_1(psf); 36 46 37 47 // XXX change FITMODE to a string
Note:
See TracChangeset
for help on using the changeset viewer.
