Changeset 29534
- Timestamp:
- Oct 24, 2010, 12:25:53 PM (16 years ago)
- Location:
- branches/eam_branches/ipp-20100823/psphot/src
- Files:
-
- 2 edited
-
psphotApResid.c (modified) (1 diff)
-
psphotSourceSize.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100823/psphot/src/psphotApResid.c
r29491 r29534 48 48 pmReadout *readout = pmFPAviewThisReadout(view, file->fpa); 49 49 psAssert (readout, "missing readout?"); 50 51 // XXX TEST output52 {53 char outname[64];54 static int nimage = 0;55 56 sprintf (outname, "testimage.%02d.fits", nimage);57 psphotSaveImage(NULL, readout->image, outname);58 nimage ++;59 }60 50 61 51 pmDetections *detections = psMetadataLookupPtr (&status, readout->analysis, "PSPHOT.DETECTIONS"); -
branches/eam_branches/ipp-20100823/psphot/src/psphotSourceSize.c
r29533 r29534 31 31 float psphotSourceSizeFindThreshold (psVector *value, psVector *mask, int maskValue, float minValue, float maxValue, float delta, float guess, float fraction); 32 32 33 // save test output images? 34 # define DUMPPICS 0 35 33 36 // we need to call this function after sources have been fitted to the PSF model and 34 37 // subtracted. To determine the CR-nature, this function examines the 9 pixels in the 3x3 … … 659 662 660 663 // XXX test : save the mask image 661 if (1) { 662 psphotSaveImage (NULL, readout->mask, "crmask.fits");663 } 664 # if (DUMPPICS) 665 psphotSaveImage (NULL, readout->mask, "crmask.fits"); 666 # endif 664 667 665 668 return true; 666 669 } 667 670 668 # define DUMPPICS 0669 671 # define LIMIT_XRANGE(X, IMAGE) { X = PS_MIN(PS_MAX(0, X), IMAGE->numCols); } 670 672 # define LIMIT_YRANGE(Y, IMAGE) { Y = PS_MIN(PS_MAX(0, Y), IMAGE->numRows); }
Note:
See TracChangeset
for help on using the changeset viewer.
