IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16950


Ignore:
Timestamp:
Mar 12, 2008, 10:51:58 AM (18 years ago)
Author:
Paul Price
Message:

Adding the use of an optional dark normalisation concept. This will usually be CELL.DARKTIME if the user wants to fit the dark current with no ordinates specified (old style of doing darks). Otherwise it will be NONE for a full multi-dimensional polynomial fit, which presumably would include CELL.DARKTIME as one of the ordinates.

Location:
trunk/ppMerge/src
Files:
3 edited

Legend:

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

    r16907 r16950  
    227227                                                    options->combine->maskVal);
    228228                    } else if (options->dark) {
    229                         pmDarkCombine(cell, stack, options->darkOrdinates, options->combine->iter,
    230                                       options->combine->rej, options->combine->maskVal);
     229                        pmDarkCombine(cell, stack, options->darkOrdinates, options->darkNorm,
     230                                      options->combine->iter, options->combine->rej,
     231                                      options->combine->maskVal);
    231232                    } else {
    232233                        pmReadoutCombine(readout, stack, cellZeros, cellScales, options->combine);
  • trunk/ppMerge/src/ppMergeOptions.c

    r16842 r16950  
    2323    psFree(options->format);
    2424    psFree(options->combine);
     25    psFree(options->darkOrdinates);
     26    psFree(options->darkNorm);
    2527}
    2628
     
    6870    options->growPixels = 0;
    6971    options->darkOrdinates = NULL;
     72    options->darkNorm = NULL;
    7073    return options;
    7174}
     
    309312        }
    310313        psFree(iter);
     314
     315        psString darkNorm = psMetadataLookupStr(NULL, recipe, "DARK.NORM"); // Normalisation concept
     316        if (darkNorm && strcmp(darkNorm, "NONE") != 0) {
     317            options->darkNorm = psStringCopy(darkNorm);
     318        }
    311319    }
    312320
  • trunk/ppMerge/src/ppMergeOptions.h

    r16842 r16950  
    4545    int growPixels;
    4646    psArray *darkOrdinates;             // Ordinates for dark combination
     47    psString darkNorm;                  // Dark normalisation concept
    4748} ppMergeOptions;
    4849
Note: See TracChangeset for help on using the changeset viewer.