IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 28, 2006, 5:06:41 PM (20 years ago)
Author:
Paul Price
Message:

Adding weights option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeCombine.c

    r9996 r10270  
    151151                    // Only reading and writing the first readout in each cell (plane 0)
    152152                    if (pmReadoutReadNext(stack->data[i], fits, 0, options->rows)) {
    153                         // For anything except BIAS and DARK, we want a mask
    154                         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) {
    155155                            pmReadoutSetMask(stack->data[i]);
    156156                        }
    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                            }
    159167                        }
    160168
Note: See TracChangeset for help on using the changeset viewer.