Changeset 4129 for trunk/psphot/src/psphot.c
- Timestamp:
- Jun 6, 2005, 11:20:45 PM (21 years ago)
- Location:
- trunk/psphot
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/psphot.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot
-
Property svn:ignore
set to
bin
-
Property svn:ignore
set to
-
trunk/psphot/src/psphot.c
r4115 r4129 1 1 # include "psphot.h" 2 void dump_image (psImage *image, char *filename); 2 3 3 4 int main (int argc, char **argv) { … … 33 34 psf = choose_psf_model (image, config, sources); 34 35 36 psImage *zap = psImageAlloc (image->numCols, image->numRows, PS_TYPE_F32); 37 psImageInit (zap, 0); 38 find_defects (zap, sources, config, psf); 39 dump_image (zap, argv[2]); 40 exit (0); 41 35 42 // test PSF on all except SATURATE and DEFECT (artifacts) 36 43 apply_psf_model (image, config, sources, psf, sky); … … 44 51 // subtract_galaxies (sources, config); 45 52 46 // write out subtracted image 47 unlink (argv[2]); 48 psFits *fits = psFitsAlloc (argv[2]); 49 psFitsWriteImage (fits, NULL, image, 0, NULL); 50 psFree (fits); 51 53 dump_image (image, argv[2]); 52 54 DumpModelPSF (sources, "sources.dat"); 53 55 exit (0); … … 59 61 exit (2); 60 62 } 63 64 void dump_image (psImage *image, char *filename) { 65 66 unlink (filename); 67 psFits *fits = psFitsAlloc (filename); 68 psFitsWriteImage (fits, NULL, image, 0, NULL); 69 psFree (fits); 70 return; 71 } 72
Note:
See TracChangeset
for help on using the changeset viewer.
