IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

Allow the new-style darks to generate old-style-like darks. We normalise the dark images by a nominated concept (typically CELL.DARKTIME) and fit that. Allow *no* ordinates to be fitted in which case a constant is simply fit (as you usually would for a dark); this isn't the most efficient way of doing this, because it's solving the full least-squares equation instead of doing a straight average, but it's flexible. If there's a problem with speed, we can put in a special case later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmDark.h

    r16841 r16949  
    77
    88#define PM_DARK_ANALYSIS_ORDINATES "DARK.ORDINATES" // Name for dark ordinates in the cell analysis metadata
     9#define PM_DARK_ANALYSIS_NORM "DARK.NORM" // Name for dark normalisation concept in cell analysis metadata
     10#define PM_DARK_HEADER_NORM "PSDRKNRM"  // Header keyword for dark normalisation concept
    911
    1012// An ordinate for fitting darks
     
    2628                   const psArray *inputs, // Input readouts for combination
    2729                   psArray *ordinates,  // Ordinates for fitting
     30                   const char *normConcept, // Concept name to use to divide input pixel values
    2831                   int iter,            // Number of rejection iterations
    2932                   float rej,           // Rejection threshold (standard deviations)
     
    8285// Write dark table to FITS file
    8386bool pmDarkWrite(psFits *fits,          // FITS file to which to write
    84                  const psMetadata *header, // Header to write
    85                  const psArray *ordinates // Dark ordinates to write
     87                 psMetadata *header,    // Header to write
     88                 const psArray *ordinates, // Dark ordinates to write
     89                 const char *normConcept // Normalisation concept name
    8690    );
    8791
    8892// Read dark table from FITS file
    89 psArray *pmDarkRead(psFits *fits        // FITS file to read
     93psArray *pmDarkRead(psString *normConcept, // Normalisation concept name
     94                    psFits *fits        // FITS file to read
    9095    );
    9196
Note: See TracChangeset for help on using the changeset viewer.