Changeset 28121
- Timestamp:
- May 26, 2010, 3:53:34 PM (16 years ago)
- Location:
- trunk/ppSub/src
- Files:
-
- 4 edited
-
ppSub.h (modified) (1 diff)
-
ppSubErrorCodes.dat (modified) (1 diff)
-
ppSubLoop.c (modified) (1 diff)
-
ppSubVarianceRescale.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSub.h
r28043 r28121 111 111 112 112 /// Perform Variance correction (rescale within a modest range) 113 bool ppSubVarianceRescale(pmConfig *config ///< Configuration 113 bool ppSubVarianceRescale(pmConfig *config, ///< Configuration 114 ppSubData *data ///< Processing data 114 115 ); 115 116 -
trunk/ppSub/src/ppSubErrorCodes.dat
r26982 r28121 11 11 NO_OVERLAP No overlap between input and skycell 12 12 PROG Programming error 13 VARIANCE Variance renormalisation out of bounds -
trunk/ppSub/src/ppSubLoop.c
r28043 r28121 119 119 120 120 // Perform Variance correction (rescale within a modest range) 121 if (!ppSubVarianceRescale(config )) {121 if (!ppSubVarianceRescale(config, data)) { 122 122 psError(psErrorCodeLast(), false, "Unable to rescale variance."); 123 123 return false; 124 } 125 126 if (data->quality) { 127 // Done all we can do up to this point 128 return true; 124 129 } 125 130 -
trunk/ppSub/src/ppSubVarianceRescale.c
r27317 r28121 22 22 #include "ppSub.h" 23 23 24 bool ppSubVarianceRescale(pmConfig *config )24 bool ppSubVarianceRescale(pmConfig *config, ppSubData *data) 25 25 { 26 26 psAssert(config, "Require configuration"); … … 60 60 } 61 61 62 return pmReadoutVarianceRenormalise(readout, maskBad, num, minValid, maxValid); 62 if (!pmReadoutVarianceRenormalise(readout, maskBad, num, minValid, maxValid)) { 63 psErrorStackPrint(stderr, "Unable to renormalise variances"); 64 psWarning("Unable to renormalise variances --- suspect bad data quality."); 65 // Allow the convolved and subtracted images to be written 66 ppSubDataQuality(data, PPSUB_ERR_VARIANCE, 67 PPSUB_FILES_INPUT | PPSUB_FILES_PHOT_SUB | PPSUB_FILES_PHOT_INV | 68 PPSUB_FILES_PSF | PPSUB_FILES_PHOT); 69 } 70 71 return true; 63 72 }
Note:
See TracChangeset
for help on using the changeset viewer.
