Changeset 16844 for trunk/ppImage/src/ppImageDetrendReadout.c
- Timestamp:
- Mar 6, 2008, 10:51:20 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageDetrendReadout.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageDetrendReadout.c
r16084 r16844 32 32 # endif 33 33 34 // set up the readouts fordark and bias35 pm Readout*dark = NULL;34 // set up the dark and bias 35 pmCell *dark = NULL; 36 36 pmReadout *bias = NULL; 37 37 if (options->doBias) { … … 39 39 } 40 40 if (options->doDark) { 41 dark = pmFPAfileThis Readout(config->files, detview, "PPIMAGE.DARK");41 dark = pmFPAfileThisCell(config->files, detview, "PPIMAGE.DARK"); 42 42 } 43 43 44 44 // Bias, dark and overscan subtraction are all merged. 45 if (options->doBias || options->do Dark || options->doOverscan) {46 if (!pmBiasSubtract(input, options->overscan, bias, dark, view)) {47 psError(PS_ERR_UNKNOWN, false, "Unable to subtract bias. \n");45 if (options->doBias || options->doOverscan) { 46 if (!pmBiasSubtract(input, options->overscan, bias, NULL, view)) { 47 psError(PS_ERR_UNKNOWN, false, "Unable to subtract bias."); 48 48 return false; 49 49 } … … 54 54 // create the target mask and weight images 55 55 pmReadoutGenerateWeight(input, true); 56 } 57 58 if (options->doDark) { 59 if (!pmDarkApply(input, dark, options->maskValue)) { 60 psError(PS_ERR_UNKNOWN, false, "Unable to subtract dark."); 61 return false; 62 } 56 63 } 57 64
Note:
See TracChangeset
for help on using the changeset viewer.
