Changeset 13665
- Timestamp:
- Jun 5, 2007, 4:07:11 PM (19 years ago)
- Location:
- trunk/ppSub/src
- Files:
-
- 2 edited
-
ppSubCamera.c (modified) (5 diffs)
-
ppSubLoop.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubCamera.c
r13528 r13665 28 28 pmFPAfile *inputMask = pmFPAfileBindFromArgs(&status, input, config, "PPSUB.INPUT.MASK", "INPUT.MASK"); 29 29 if (!status) { 30 psError (PS_ERR_UNKNOWN, false, "failed to load find definition");31 return NULL;30 psError (PS_ERR_UNKNOWN, false, "failed to load find definition"); 31 return NULL; 32 32 } 33 33 if (inputMask && inputMask->type != PM_FPA_FILE_MASK) { … … 39 39 pmFPAfile *inputWeight = pmFPAfileBindFromArgs(&status, input, config, "PPSUB.INPUT.WEIGHT", "INPUT.WEIGHT"); 40 40 if (!status) { 41 psError (PS_ERR_UNKNOWN, false, "failed to load find definition");42 return NULL;41 psError (PS_ERR_UNKNOWN, false, "failed to load find definition"); 42 return NULL; 43 43 } 44 44 if (inputWeight && inputWeight->type != PM_FPA_FILE_WEIGHT) { … … 62 62 pmFPAfile *refMask = pmFPAfileBindFromArgs(&status, input, config, "PPSUB.REF.MASK", "REF.MASK"); 63 63 if (!status) { 64 psError (PS_ERR_UNKNOWN, false, "failed to load find definition");65 return NULL;64 psError (PS_ERR_UNKNOWN, false, "failed to load find definition"); 65 return NULL; 66 66 } 67 67 if (refMask && refMask->type != PM_FPA_FILE_MASK) { … … 73 73 pmFPAfile *refWeight = pmFPAfileBindFromArgs(&status, input, config, "PPSUB.REF.WEIGHT", "REF.WEIGHT"); 74 74 if (!status) { 75 psError (PS_ERR_UNKNOWN, false, "failed to load find definition");76 return NULL;75 psError (PS_ERR_UNKNOWN, false, "failed to load find definition"); 76 return NULL; 77 77 } 78 78 if (refWeight && refWeight->type != PM_FPA_FILE_WEIGHT) { … … 115 115 116 116 // psPhot input 117 pmFPAfile *psphot = pmFPAfileDefineFromFPA(config, output->fpa, 1, 1, "PSPHOT.INPUT"); 118 if (!psphot) { 119 psError(PS_ERR_IO, false, "Failed to build FPA from PSPHOT.INPUT"); 120 return false; 121 } 122 if (input->type != PM_FPA_FILE_IMAGE) { 123 psError(PS_ERR_IO, true, "PSPHOT.INPUT is not of type IMAGE"); 124 return false; 125 } 117 if (psMetadataLookup(config->arguments, "PSPHOT.PSF")) { 118 pmFPAfile *psphot = pmFPAfileDefineFromFPA(config, output->fpa, 1, 1, "PSPHOT.INPUT"); 119 if (!psphot) { 120 psError(PS_ERR_IO, false, "Failed to build FPA from PSPHOT.INPUT"); 121 return false; 122 } 123 if (input->type != PM_FPA_FILE_IMAGE) { 124 psError(PS_ERR_IO, true, "PSPHOT.INPUT is not of type IMAGE"); 125 return false; 126 } 126 127 127 if (!psphotDefineFiles(config, psphot)) { 128 psError(PS_ERR_UNKNOWN, false, "Unable to set up psphot files."); 129 return false; 128 if (!psphotDefineFiles(config, psphot)) { 129 psError(PS_ERR_UNKNOWN, false, "Unable to set up psphot files."); 130 return false; 131 } 130 132 } 131 133 -
trunk/ppSub/src/ppSubLoop.c
r13371 r13665 13 13 bool ppSubLoop(pmConfig *config) 14 14 { 15 // Value to mask 16 psMaskType maskVal = psMetadataLookupU8(NULL, config->arguments, "MASK.BAD") | 17 psMetadataLookupU8(NULL, config->arguments, "MASK.BLANK") | 18 pmConfigMask("SAT", config) | 19 pmConfigMask("BAD", config); 20 15 21 bool mdok; // Status of MD lookup 16 22 const char *statsName = psMetadataLookupStr(&mdok, config->arguments, "STATS"); // Filename for statistics … … 136 142 return false; 137 143 } 138 ppStats(stats, output->fpa, view, config);144 ppStats(stats, output->fpa, view, maskVal, config); 139 145 } 140 146
Note:
See TracChangeset
for help on using the changeset viewer.
