Changeset 15476 for trunk/ppMerge/src/ppMergeOptions.c
- Timestamp:
- Nov 6, 2007, 12:21:51 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppMerge/src/ppMergeOptions.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeOptions.c
r14356 r15476 215 215 options->shutter = true; 216 216 options->mask = false; 217 } else if (strcasecmp(type, "MASK") == 0) { 217 } else if (strcasecmp(type, "MASK") == 0 || 218 strcasecmp(type, "DARKMASK") == 0 || 219 strcasecmp(type, "FLATMASK") == 0) { 218 220 options->zero = false; 219 221 options->scale = false; … … 223 225 options->mask = true; 224 226 } else { 225 psLogMsg(__func__, PS_LOG_WARN, "Unrecognised image type: %s --- assuming BIAS.\n", type); 226 options->zero = false; 227 options->scale = false; 228 options->darktime = false; 229 options->fringe = false; 230 options->shutter = false; 231 options->mask = false; 227 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "Unrecognised image type: %s", type); 228 psFree(options); 229 return NULL; 232 230 } 233 231 } else { 234 psLogMsg(__func__, PS_LOG_WARN, "No calibration type specified; assuming BIAS.\n"); 235 options->zero = false; 236 options->scale = false; 237 options->darktime = false; 238 options->fringe = false; 239 options->shutter = false; 240 options->mask = false; 232 psError(PS_ERR_BAD_PARAMETER_VALUE, true, "No image type specified."); 233 psFree(options); 234 return NULL; 241 235 } 242 236
Note:
See TracChangeset
for help on using the changeset viewer.
