Changeset 23235 for trunk/ppSub/src/ppSubCamera.c
- Timestamp:
- Mar 9, 2009, 3:16:06 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubCamera.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubCamera.c
r21524 r23235 40 40 pmFPAfile *inputMask = pmFPAfileBindFromArgs(&status, input, config, "PPSUB.INPUT.MASK", "INPUT.MASK"); 41 41 if (!status) { 42 psError (PS_ERR_UNKNOWN, false, "Failed to load file definition PPSUB.INPUT.MASK");42 psError(PS_ERR_UNKNOWN, false, "Failed to load file definition PPSUB.INPUT.MASK"); 43 43 return NULL; 44 44 } … … 51 51 pmFPAfile *inputVariance = pmFPAfileBindFromArgs(&status, input, config, "PPSUB.INPUT.VARIANCE", "INPUT.VARIANCE"); 52 52 if (!status) { 53 psError (PS_ERR_UNKNOWN, false, "Failed to load file definition PPSUB.INPUT.VARIANCE");53 psError(PS_ERR_UNKNOWN, false, "Failed to load file definition PPSUB.INPUT.VARIANCE"); 54 54 return NULL; 55 55 } 56 56 if (inputVariance && inputVariance->type != PM_FPA_FILE_VARIANCE) { 57 57 psError(PS_ERR_IO, true, "PPSUB.INPUT.VARIANCE is not of type VARIANCE"); 58 return false; 59 } 60 61 // Input source list 62 pmFPAfile *inputSources = pmFPAfileBindFromArgs(&status, input, config, "PPSUB.INPUT.SOURCES", "INPUT.SOURCES"); 63 if (!status) { 64 psError(PS_ERR_UNKNOWN, false, "Failed to load file definition PPSUB.INPUT.SOURCES"); 65 return NULL; 66 } 67 if (inputSources && inputSources->type != PM_FPA_FILE_CMF) { 68 psError(PS_ERR_IO, true, "PPSUB.INPUT.SOURCES is not of type CMF"); 58 69 return false; 59 70 } … … 74 85 pmFPAfile *refMask = pmFPAfileBindFromArgs(&status, ref, config, "PPSUB.REF.MASK", "REF.MASK"); 75 86 if (!status) { 76 psError (PS_ERR_UNKNOWN, false, "Failed to load file definition PPSUB.REF.MASK");87 psError(PS_ERR_UNKNOWN, false, "Failed to load file definition PPSUB.REF.MASK"); 77 88 return NULL; 78 89 } … … 85 96 pmFPAfile *refVariance = pmFPAfileBindFromArgs(&status, ref, config, "PPSUB.REF.VARIANCE", "REF.VARIANCE"); 86 97 if (!status) { 87 psError (PS_ERR_UNKNOWN, false, "Failed to load file definition PPSUB.REF.VARIANCE");98 psError(PS_ERR_UNKNOWN, false, "Failed to load file definition PPSUB.REF.VARIANCE"); 88 99 return NULL; 89 100 } 90 101 if (refVariance && refVariance->type != PM_FPA_FILE_VARIANCE) { 91 102 psError(PS_ERR_IO, true, "PPSUB.REF.VARIANCE is not of type VARIANCE"); 103 return false; 104 } 105 106 // Reference source list 107 pmFPAfile *refSources = pmFPAfileBindFromArgs(&status, ref, config, "PPSUB.REF.SOURCES", "REF.SOURCES"); 108 if (!status) { 109 psError(PS_ERR_UNKNOWN, false, "Failed to load file definition PPSUB.REF.SOURCES"); 110 return NULL; 111 } 112 if (refSources && refSources->type != PM_FPA_FILE_CMF) { 113 psError(PS_ERR_IO, true, "PPSUB.REF.SOURCES is not of type CMF"); 92 114 return false; 93 115 } … … 241 263 outKernels->save = true; 242 264 243 #if 0244 if (!pmFPAAddSourceFromFormat(output->fpa, "Subtraction", output->format)) {245 psError(PS_ERR_UNKNOWN, false, "Unable to generate output FPA.");246 return false;247 }248 #endif249 250 pmFPAfile *sources = pmFPAfileDefineFromArgs(&status, config, "PPSUB.SOURCES", "PPSUB.SOURCES");251 if (!status) {252 psError(PS_ERR_IO, false, "Failed to load file definition PPSUB.SOURCES");253 return false;254 }255 if (sources && sources->type != PM_FPA_FILE_CMF) {256 psError(PS_ERR_IO, true, "PPSUB.SOURCES is not of type CMF");257 return false;258 }259 265 260 266 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSUB_RECIPE); // Recipe for ppSim
Note:
See TracChangeset
for help on using the changeset viewer.
