Changeset 5802 for trunk/psphot/src/psphotSetup.c
- Timestamp:
- Dec 17, 2005, 10:26:59 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotSetup.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotSetup.c
r5754 r5802 55 55 for (int iy = 0; iy < image->numRows; iy++) { 56 56 for (int ix = 0; ix < image->numCols; ix++) { 57 weight->data.F32[iy][ix] = image->data.F32[iy][ix] / GAIN + PS_SQR(RDNOISE/GAIN);57 weight->data.F32[iy][ix] = PS_MAX (image->data.F32[iy][ix] / GAIN + PS_SQR(RDNOISE/GAIN), 0.0); 58 58 } 59 59 } … … 104 104 psLogMsg ("psphot", 4, "load data: %f sec\n", psTimerMark ("psphot")); 105 105 106 psphotSaveImage (NULL, weight, "weight.fits"); 107 psphotSaveImage (NULL, mask, "mask.fits"); 108 106 109 // save the image data & return it 107 110 eamReadout *imdata = eamReadoutAlloc(image, weight, mask, header);
Note:
See TracChangeset
for help on using the changeset viewer.
