- Timestamp:
- May 26, 2009, 1:59:32 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/ppSub
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/ppSub/src
- Property svn:ignore
-
old new 10 10 stamp-h1 11 11 ppSubKernel 12 ppSubErrorCodes.h 13 ppSubErrorCodes.c 14 ppSubVersionDefinitions.h
-
- Property svn:ignore
-
branches/cnb_branches/cnb_branch_20090301/ppSub/src/ppSubReadoutSubtract.c
r22699 r24244 21 21 #include "ppSub.h" 22 22 23 #define WCS_TOLERANCE 0.001 // Tolerance for WCS 24 25 bool ppSubReadoutSubtract(pmConfig *config, const pmFPAview *view) 23 bool ppSubReadoutSubtract(pmConfig *config) 26 24 { 27 25 psAssert(config, "Require configuration"); 28 psAssert(view, "Require view");29 30 26 31 27 // Look up recipe values … … 35 31 36 32 bool reverse = psMetadataLookupBool(&mdok, config->arguments, "REVERSE"); // Reverse sense of subtraction? 33 34 pmFPAview *view = ppSubViewReadout(); // View to readout 37 35 38 36 // Subtraction is: minuend - subtrahend … … 74 72 covars->data[0] = psMemIncrRefCounter(minuend->covariance); 75 73 covars->data[1] = psMemIncrRefCounter(subtrahend->covariance); 76 outRO->covariance = psImageCovariance Sum(covars);74 outRO->covariance = psImageCovarianceAverage(covars); 77 75 psFree(covars); 78 76 … … 91 89 psError(PS_ERR_UNKNOWN, false, "Unable to copy concepts from input to output."); 92 90 psFree(outRO); 91 psFree(view); 93 92 return false; 94 93 } … … 99 98 pmHDU *outHDU = outFPA->hdu; // Output HDU 100 99 pmChip *outChip = pmFPAfileThisChip(config->files, view, "PPSUB.OUTPUT"); // Output chip 100 psFree(view); 101 101 if (!outHDU || !inHDU) { 102 102 psError(PS_ERR_UNKNOWN, false, "Unable to find HDU at FPA level to copy astrometry.");
Note:
See TracChangeset
for help on using the changeset viewer.
