Changeset 21374 for trunk/ppSub/src/ppSubReadoutRenorm.c
- Timestamp:
- Feb 5, 2009, 5:20:02 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubReadoutRenorm.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubReadoutRenorm.c
r21360 r21374 6 6 * 7 7 * @author IfA 8 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $9 * @date $Date: 2009-02-06 0 1:37:17$8 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2009-02-06 03:20:02 $ 10 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 11 */ … … 23 23 psStatsOptions renormStdev = psStatsOptionFromString(psMetadataLookupStr(&mdok, recipe, "RENORM.STDEV")); 24 24 if (renormMean == PS_STAT_NONE || renormStdev == PS_STAT_NONE) { 25 psError(PS_ERR_BAD_PARAMETER_VALUE, false,26 "Unable to parse renormalisation statistics from recipe.");27 return false;25 psError(PS_ERR_BAD_PARAMETER_VALUE, false, 26 "Unable to parse renormalisation statistics from recipe."); 27 return false; 28 28 } 29 29 psImageMaskType maskValue = pmConfigMaskGet("BLANK", config); // Bits to mask 30 if (!pmReadout WeightRenormPixels(readout, maskValue, renormMean, renormStdev, NULL)) {31 psError(PS_ERR_UNKNOWN, false, "Unable to renormalise variances.");32 return false;30 if (!pmReadoutVarianceRenormPixels(readout, maskValue, renormMean, renormStdev, NULL)) { 31 psError(PS_ERR_UNKNOWN, false, "Unable to renormalise variances."); 32 return false; 33 33 } 34 34 return true; … … 48 48 psStatsOptions renormStdev = psStatsOptionFromString(psMetadataLookupStr(&mdok, recipe, "RENORM.STDEV")); 49 49 if (renormMean == PS_STAT_NONE || renormStdev == PS_STAT_NONE) { 50 psError(PS_ERR_BAD_PARAMETER_VALUE, false,51 "Unable to parse renormalisation statistics from recipe.");52 return false;50 psError(PS_ERR_BAD_PARAMETER_VALUE, false, 51 "Unable to parse renormalisation statistics from recipe."); 52 return false; 53 53 } 54 54 … … 58 58 59 59 psImageMaskType maskValue = pmConfigMaskGet("BLANK", config); // Bits to mask 60 if (!pmReadout WeightRenormPhot(readout, maskValue, renormNum, renormWidth, renormMean, renormStdev, NULL)) {61 psError(PS_ERR_UNKNOWN, false, "Unable to renormalise variances.");62 return false;60 if (!pmReadoutVarianceRenormPhot(readout, maskValue, renormNum, renormWidth, renormMean, renormStdev, NULL)) { 61 psError(PS_ERR_UNKNOWN, false, "Unable to renormalise variances."); 62 return false; 63 63 } 64 64 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
