IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 17, 2005, 10:26:59 AM (21 years ago)
Author:
eugene
Message:

clean up of small accounting bugs, adding the post-subtraction ApResid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotSetup.c

    r5754 r5802  
    5555        for (int iy = 0; iy < image->numRows; iy++) {
    5656            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);
    5858            }
    5959        }
     
    104104    psLogMsg ("psphot", 4, "load data: %f sec\n", psTimerMark ("psphot"));
    105105
     106    psphotSaveImage (NULL, weight, "weight.fits");
     107    psphotSaveImage (NULL, mask, "mask.fits");
     108
    106109    // save the image data & return it
    107110    eamReadout *imdata = eamReadoutAlloc(image, weight, mask, header);
Note: See TracChangeset for help on using the changeset viewer.