IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 6, 2009, 2:15:00 PM (17 years ago)
Author:
Paul Price
Message:

Fixing weight --> variance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubReadoutUpdate.c

    r21360 r21396  
    66 *
    77 *  @author IfA
    8  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2009-02-06 01:37:17 $
     8 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2009-02-07 00:15:00 $
    1010 *  Copyright 2009 Institute for Astronomy, University of Hawaii
    1111 */
     
    2929    // Renormalising for pixels, because that's what magic desires
    3030    if (!ppSubReadoutRenormPixels (config, recipe, outRO)) {
    31         psError(PS_ERR_BAD_PARAMETER_VALUE, false, "failure in renormalization");
    32         return false;
     31        psError(PS_ERR_BAD_PARAMETER_VALUE, false, "failure in renormalization");
     32        return false;
    3333    }
    3434
     
    4848    // Generate binned JPEGs
    4949    {
    50         psImageMaskType maskBad = pmConfigMaskGet("BLANK", config); // Bits to mask for bad pixels
     50        psImageMaskType maskBad = pmConfigMaskGet("BLANK", config); // Bits to mask for bad pixels
    5151
    5252        int bin1 = psMetadataLookupS32(NULL, recipe, "BIN1"); // First binning level
     
    5858
    5959        pmReadout *ro1 = pmReadoutAlloc(cell1);
    60         pmReadout *ro2 = pmReadoutAlloc(cell2); // Binned readouts
     60        pmReadout *ro2 = pmReadoutAlloc(cell2); // Binned readouts
    6161        if (!pmReadoutRebin(ro1, outRO, maskBad, bin1, bin1)) {
    6262            psError(PS_ERR_UNKNOWN, false, "Unable to bin output (1st binning)");
     
    7979    {
    8080        psImage *sig = (psImage*)psBinaryOp(NULL, outRO->image, "*", outRO->image);
    81         psBinaryOp(sig, sig, "/", outRO->weight);
     81        psBinaryOp(sig, sig, "/", outRO->variance);
    8282        psFits *fits = psFitsOpen("significance.fits", "w");
    8383        psFitsWriteImage(fits, NULL, sig, 0, NULL);
Note: See TracChangeset for help on using the changeset viewer.