Changeset 31435 for trunk/ppSub/src/ppSubMakePSF.c
- Timestamp:
- May 4, 2011, 3:59:42 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubMakePSF.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubMakePSF.c
r31156 r31435 37 37 38 38 bool reverse = psMetadataLookupBool(NULL, config->arguments, "REVERSE"); // Reverse sense of subtraction? 39 39 40 40 bool mdok = false; // Status of MD lookup 41 41 pmReadout *minuend = NULL; // Image that will be positive following subtraction 42 42 pmFPAfile *minuendFile = NULL; // File for minuend image 43 43 pmFPAview *view = ppSubViewReadout(); // View to readout 44 if (reverse) { 44 45 psMetadata *recipe = psMetadataLookupMetadata(&mdok, config->recipes, PPSUB_RECIPE); // Recipe for ppSub 46 bool noConvolve = psMetadataLookupBool(&mdok, recipe, "NOCONVOLVE"); // Do not use convolved images. 47 48 if (!noConvolve) { 49 printf("Using Convolved images because NOCONVOLVE is FALSE\n"); 50 if (reverse) { 45 51 minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.REF.CONV"); 46 minuendFile = psMetadataLookupPtr(&mdok, config->files, "PPSUB.REF.CONV");47 } else {52 minuendFile = psMetadataLookupPtr(&mdok, config->files, "PPSUB.REF.CONV"); 53 } else { 48 54 minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT.CONV"); 49 minuendFile = psMetadataLookupPtr(&mdok, config->files, "PPSUB.INPUT.CONV"); 55 minuendFile = psMetadataLookupPtr(&mdok, config->files, "PPSUB.INPUT.CONV"); 56 } 57 } 58 else { 59 psWarning("Not using Convolved images because NOCONVOLVE is TRUE\n"); 60 if (reverse) { 61 minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.REF"); 62 minuendFile = psMetadataLookupPtr(&mdok, config->files, "PPSUB.REF"); 63 } else { 64 minuend = pmFPAfileThisReadout(config->files, view, "PPSUB.INPUT"); 65 minuendFile = psMetadataLookupPtr(&mdok, config->files, "PPSUB.INPUT"); 66 } 50 67 } 51 68
Note:
See TracChangeset
for help on using the changeset viewer.
