Changeset 4216 for trunk/psphot/src/psphot.c
- Timestamp:
- Jun 12, 2005, 3:49:21 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphot.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphot.c
r4215 r4216 1 1 # include "psphot.h" 2 void dump_image (psImage *image, char *filename);3 2 4 3 int main (int argc, char **argv) { … … 32 31 33 32 // use stellar objects SN > PSF_SN_LIM 34 psf = choose_psf_model (im age, config, sources);33 psf = choose_psf_model (imdata, config, sources); 35 34 36 35 if (0) { 37 psImage *zap = psImageAlloc (im age->numCols,image->numRows, PS_TYPE_F32);36 psImage *zap = psImageAlloc (imdata->image->numCols, imdata->image->numRows, PS_TYPE_F32); 38 37 psImageInit (zap, 0); 39 38 find_defects (zap, sources, config, psf); 40 dump_image (zap, argv[2]);39 DumpImage (zap, argv[2]); 41 40 exit (0); 42 41 } 43 42 44 43 // test PSF on all except SATURATE and DEFECT (artifacts) 45 apply_psf_model (im age, config, sources, psf, sky);44 apply_psf_model (imdata, config, sources, psf, sky); 46 45 47 46 // XXX this test compares dSx,dSy distribution with model. … … 49 48 // test_psf_scatter (sources); 50 49 51 // fit_galaxies (im age, config, sources);50 // fit_galaxies (imdata, config, sources); 52 51 53 52 // subtract_galaxies (sources, config); 54 53 55 dump_image (image, argv[2]);54 DumpImage (imdata->image, argv[2]); 56 55 DumpModelPSF (sources, "sources.dat"); 57 56 exit (0); 58 57 } 59 60 void dump_image (psImage *image, char *filename) {61 62 unlink (filename);63 psFits *fits = psFitsAlloc (filename);64 psFitsWriteImage (fits, NULL, image, 0, NULL);65 psFree (fits);66 return;67 }68
Note:
See TracChangeset
for help on using the changeset viewer.
