Changeset 31435 for trunk/ppSub/src/ppSubDefineOutput.c
- Timestamp:
- May 4, 2011, 3:59:42 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubDefineOutput.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubDefineOutput.c
r31156 r31435 44 44 45 45 // Convolved input images 46 pmReadout *inConv = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT.CONV"); // Input readout 47 pmReadout *refConv = pmFPAfileThisReadout(config->files, view, "PPSUB.REF.CONV"); // Reference readout 46 psMetadata *recipe = psMetadataLookupPtr(NULL, config->recipes, PPSUB_RECIPE); 47 bool noConvolve = psMetadataLookupBool(NULL, recipe, "NOCONVOLVE"); // Do not use convolved images. 48 49 pmReadout *inConv; 50 if (noConvolve) { 51 inConv = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT"); // Input readout 52 } 53 else { 54 inConv = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT.CONV"); // Input readout 55 } 56 pmReadout *refConv; 57 if (noConvolve) { 58 refConv = pmFPAfileThisReadout(config->files, view, "PPSUB.REF"); // Reference readout 59 } 60 else { 61 refConv = pmFPAfileThisReadout(config->files, view, "PPSUB.REF.CONV"); // Reference readout 62 } 48 63 psFree(view); 49 64 … … 60 75 kernels = psMetadataLookupPtr(&mdok, analysis, PM_SUBTRACTION_ANALYSIS_KERNEL); 61 76 } 62 if (!kernels ) {77 if (!kernels && !noConvolve) { 63 78 psError(PPSUB_ERR_UNKNOWN, true, "Unable to find SUBTRACTION.KERNEL"); 64 79 psFree(outRO); … … 66 81 } 67 82 psAssert (hdu, "unable to find HDU"); 68 psMetadataAddStr(outHDU->header, PS_LIST_TAIL, "PPSUB.KERNEL", 0, "Subtraction kernel", kernels->description); 83 if (!noConvolve) { 84 psMetadataAddStr(outHDU->header, PS_LIST_TAIL, "PPSUB.KERNEL", 0, "Subtraction kernel", kernels->description); 85 } 69 86 outHDU->header = psMetadataCopy(outHDU->header, hdu->header); 70 87
Note:
See TracChangeset
for help on using the changeset viewer.
