IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 13, 2007, 4:03:29 PM (19 years ago)
Author:
Paul Price
Message:

Adding dark normalisation. The idea is that the dark current is not always linear with the darktime, but may be described by a polynomial function of the darktime. We introduce in the camera configuration DARK.NORM, which is a filename within the search path (or it may be a metadata, which removes the need to read a file, but clutters the configuration file). This file is read in the usual course of configuration setup. When required, DARK.NORM.KEY (which is resolved in the usual way, so try, e.g., '{CHIP.NAME}') points at a metadata within the DARK.NORM that provides the polynomial for correcting the darktime. This means that the view must be passed in to pmBiasSubtract, so that the appropriate polynomial can be identified.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAfile.h

    r13523 r13810  
    44 * @author EAM, IfA
    55 *
    6  * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2007-05-26 02:50:36 $
     6 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $
     7 * @date $Date: 2007-06-14 02:03:29 $
    88 * Copyright 2004-2005 Institute for Astronomy, University of Hawaii
    99 */
     
    5353typedef struct
    5454{
    55     pmFPAfileMode mode;                 // is this file read, written, or only used internally?
    56     pmFPAfileType type;                 // what type of data is read from / written to disk?
    57     pmFPAfileState state;               // have we opened the file, etc?
     55    pmFPAfileMode mode;                 // is this file read, written, or only used internally?
     56    pmFPAfileType type;                 // what type of data is read from / written to disk?
     57    pmFPAfileState state;               // have we opened the file, etc?
    5858
    59     pmFPALevel fileLevel;               // what level in the FPA hierarchy represents a unique file?
    60     pmFPALevel dataLevel;               // at what level do we read/write the data segment? (request by user)
    61     pmFPALevel freeLevel;               // at what level do we free the data segment? (set by program)
     59    pmFPALevel fileLevel;               // what level in the FPA hierarchy represents a unique file?
     60    pmFPALevel dataLevel;               // at what level do we read/write the data segment? (request by user)
     61    pmFPALevel freeLevel;               // at what level do we free the data segment? (set by program)
    6262    pmFPALevel mosaicLevel;             // at what level is the mosaic?
    6363
    64     pmFPA *fpa;                         // for I/O files, we carry a pointer to the complete fpa
    65     psFits *fits;                       // for I/O files of fits type (IMAGE, CMP, CMF), we carry a file handle
     64    pmFPA *fpa;                         // for I/O files, we carry a pointer to the complete fpa
     65    psFits *fits;                       // for I/O files of fits type (IMAGE, CMP, CMF), we carry a file handle
    6666
    67     bool phu;                           // have we written a PHU for this file?
    68     psMetadata *header;                 // pointer (view) to the current hdu header
     67    bool phu;                           // have we written a PHU for this file?
     68    psMetadata *header;                 // pointer (view) to the current hdu header
    6969
    70     pmReadout *readout;                 // for internal files, we only carry a single readout
     70    pmReadout *readout;                 // for internal files, we only carry a single readout
    7171
    72     psMetadata *names;                  // filenames supplied by the cmdline or detdb are saved here
     72    psMetadata *names;                  // filenames supplied by the cmdline or detdb are saved here
    7373
    74     char *filerule;                     // rule for constructing a filename when needed
    75     char *filesrc;                      // rule to find file in pmFPAfile->names list
     74    char *filerule;                     // rule for constructing a filename when needed
     75    char *filesrc;                      // rule to find file in pmFPAfile->names list
    7676
    77     char *name;                         // the name of the rule (useful for debugging / tracing)
    78     char *filename;                     // the current name of an active file
    79     char *extname;                      // the current name of an active file extension
     77    char *name;                         // the name of the rule (useful for debugging / tracing)
     78    char *filename;                     // the current name of an active file
     79    char *extname;                      // the current name of an active file extension
    8080
    8181    pmDetrendSelectResults *detrend;    // Detrend information, from pmDetrendSelect
     
    110110
    111111// convert the rule to a name based on the current view
     112psString pmFPANameFromRule(const char *rule, const pmFPA *fpa, const pmFPAview *view);
     113
     114// convert the rule to a name based on the current view
    112115psString pmFPAfileNameFromRule(const char *rule, const pmFPAfile *file, const pmFPAview *view);
    113116
Note: See TracChangeset for help on using the changeset viewer.