Changeset 21396 for trunk/ppSub/src/ppSubReadoutUpdate.c
- Timestamp:
- Feb 6, 2009, 2:15:00 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubReadoutUpdate.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubReadoutUpdate.c
r21360 r21396 6 6 * 7 7 * @author IfA 8 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2009-02-0 6 01:37:17$8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-07 00:15:00 $ 10 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 11 */ … … 29 29 // Renormalising for pixels, because that's what magic desires 30 30 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; 33 33 } 34 34 … … 48 48 // Generate binned JPEGs 49 49 { 50 psImageMaskType maskBad = pmConfigMaskGet("BLANK", config); // Bits to mask for bad pixels50 psImageMaskType maskBad = pmConfigMaskGet("BLANK", config); // Bits to mask for bad pixels 51 51 52 52 int bin1 = psMetadataLookupS32(NULL, recipe, "BIN1"); // First binning level … … 58 58 59 59 pmReadout *ro1 = pmReadoutAlloc(cell1); 60 pmReadout *ro2 = pmReadoutAlloc(cell2); // Binned readouts60 pmReadout *ro2 = pmReadoutAlloc(cell2); // Binned readouts 61 61 if (!pmReadoutRebin(ro1, outRO, maskBad, bin1, bin1)) { 62 62 psError(PS_ERR_UNKNOWN, false, "Unable to bin output (1st binning)"); … … 79 79 { 80 80 psImage *sig = (psImage*)psBinaryOp(NULL, outRO->image, "*", outRO->image); 81 psBinaryOp(sig, sig, "/", outRO-> weight);81 psBinaryOp(sig, sig, "/", outRO->variance); 82 82 psFits *fits = psFitsOpen("significance.fits", "w"); 83 83 psFitsWriteImage(fits, NULL, sig, 0, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.
