Changeset 31435 for trunk/ppSub/src/ppSubReadoutSubtract.c
- Timestamp:
- May 4, 2011, 3:59:42 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubReadoutSubtract.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubReadoutSubtract.c
r30619 r31435 31 31 32 32 bool reverse = psMetadataLookupBool(&mdok, config->arguments, "REVERSE"); // Reverse sense of subtraction? 33 bool noConvolve = psMetadataLookupBool(&mdok, recipe, "NOCONVOLVE"); // Do not use convolved images. 33 34 bool addPair = psMetadataLookupBool(&mdok, recipe, "ADD.NOT.SUBTRACT"); // add instead of subtracting 34 35 … … 38 39 pmReadout *minuend = NULL; // Positive image 39 40 pmReadout *subtrahend = NULL; // Negative image 40 if (reverse) { 41 if (!noConvolve) { 42 printf("Using Convolved images because NOCONVOLVE is FALSE\n"); 43 if (reverse) { 41 44 minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.REF.CONV"); 42 45 subtrahend = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT.CONV"); 43 } else {46 } else { 44 47 minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT.CONV"); 45 48 subtrahend = pmFPAfileThisReadout(config->files, view, "PPSUB.REF.CONV"); 49 } 50 } 51 else { 52 psWarning("Not using Convolved images because NOCONVOLVE is TRUE\n"); 53 if (reverse) { 54 minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.REF"); 55 subtrahend = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT"); 56 } else { 57 minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT"); 58 subtrahend = pmFPAfileThisReadout(config->files, view, "PPSUB.REF"); 59 } 46 60 } 47 61
Note:
See TracChangeset
for help on using the changeset viewer.
