Changeset 10270 for trunk/ppMerge/src/ppMergeCombine.c
- Timestamp:
- Nov 28, 2006, 5:06:41 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppMerge/src/ppMergeCombine.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeCombine.c
r9996 r10270 151 151 // Only reading and writing the first readout in each cell (plane 0) 152 152 if (pmReadoutReadNext(stack->data[i], fits, 0, options->rows)) { 153 // For anything except BIAS and DARK, we wanta mask154 if (options-> scale || options->zero || options->shutter) {153 // If the mask value is set, we want to generate a mask 154 if (options->combine->maskVal) { 155 155 pmReadoutSetMask(stack->data[i]); 156 156 } 157 if (options->shutter) { 158 pmReadoutSetWeight(stack->data[i]); 157 158 // If we're combining with weights, we want to generate weights. 159 if (options->combine->weights) { 160 161 // If it's a bias or dark, set the gain to zero: noise only contributed by read 162 if ((!options->zero && !options->scale) || options->darktime) { 163 pmReadoutSetWeight(stack->data[i], false); 164 } else { 165 pmReadoutSetWeight(stack->data[i], true); 166 } 159 167 } 160 168
Note:
See TracChangeset
for help on using the changeset viewer.
