IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27317 for trunk/ppSub/src


Ignore:
Timestamp:
Mar 17, 2010, 5:26:01 PM (16 years ago)
Author:
Paul Price
Message:

Allow variance to be NULL.

File:
1 edited

Legend:

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

    r26982 r27317  
    5454    pmReadout *readout = pmFPAfileThisReadout(config->files, view, "PPSUB.OUTPUT"); // Output image
    5555
     56    if (!readout->variance) {
     57        // Nothing to renormalise
     58        psWarning("Renormalisation of the variance requested, but no variance provided.");
     59        return true;
     60    }
     61
    5662    return pmReadoutVarianceRenormalise(readout, maskBad, num, minValid, maxValid);
    5763}
Note: See TracChangeset for help on using the changeset viewer.