IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 12, 2007, 12:22:15 PM (19 years ago)
Author:
Paul Price
Message:

Adding fix to bug 853: when CELL.BIASSEC or CELL.TRIMSEC are specified by value in the CELLS part of the camera format, then they need to be updated by the binning. Added pmConceptsUpdate, which is run after concepts are read, and seaches for concepts to update (e.g., dependent on other concepts, which may not be available at read time --- just like CELL.TRIMSEC and CELL.XBIN/CELL.YBIN). To use this, changed the functions that parse/format standard concepts to receive the source of the concept. CELL.TRIMSEC and CELL.BIASSEC are updated for the binning if CELL.TRIMSEC.UPDATE or CELL.BIASSEC.UPDATE are set. Tested this quickly, and it seems to work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConcepts.h

    r11253 r11749  
    44 * @author Paul Price, IfA
    55 *
    6  * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
    7  * @date $Date: 2007-01-24 02:54:14 $
     6 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
     7 * @date $Date: 2007-02-12 22:22:15 $
    88 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii
    99 */
     
    1919#include "pmFPALevel.h"
    2020
     21/// Source for concepts when reading and writing.
     22///
     23/// Since some sources become available at different times from others, we need to provide some specificity to
     24/// reading and writing concepts (or we're forced to wait until everything's available, which we don't want to
     25/// do).  Concepts may be read from or written to multiple sources at once by OR-ing them.
     26typedef enum {
     27    PM_CONCEPT_SOURCE_NONE     = 0x00,  ///< No concepts
     28    PM_CONCEPT_SOURCE_CELLS    = 0x01,  ///< Concept comes from the camera information
     29    PM_CONCEPT_SOURCE_DEFAULTS = 0x02,  ///< Concept comes from defaults
     30    PM_CONCEPT_SOURCE_PHU      = 0x04,  ///< Concept comes from PHU
     31    PM_CONCEPT_SOURCE_HEADER   = 0x08,  ///< Concept comes from FITS header
     32    PM_CONCEPT_SOURCE_DATABASE = 0x10,  ///< Concept comes from database
     33    PM_CONCEPT_SOURCE_ALL      = 0xff   ///< All concepts
     34} pmConceptSource;
     35
    2136/// Function to call to parse a concept once it has been read
    2237typedef psMetadataItem* (*pmConceptParseFunc)(const psMetadataItem *concept, ///< Concept to parse
    2338        const psMetadataItem *pattern, ///< Pattern for parsing
     39                                              pmConceptSource source, ///< Source of concept
    2440        const psMetadata *cameraFormat, ///< Camera format definition
    2541        const pmFPA *fpa, ///< FPA for concept, or NULL
     
    3046/// Function to call to format a concept for writing
    3147typedef psMetadataItem* (*pmConceptFormatFunc)(const psMetadataItem *concept, ///< Concept to format
     48                                               pmConceptSource source, ///< Source of concept
    3249        const psMetadata *cameraFormat, ///< Camera format definition
    3350        const pmFPA *fpa, ///< FPA for concept, or NULL
     
    6582                       pmFPALevel level ///< Level at which to store concept in the FPA hierarchy
    6683                      );
    67 
    68 /// Source for concepts when reading and writing.
    69 ///
    70 /// Since some sources become available at different times from others, we need to provide some specificity to
    71 /// reading and writing concepts (or we're forced to wait until everything's available, which we don't want to
    72 /// do).  Concepts may be read from or written to multiple sources at once by OR-ing them.
    73 typedef enum {
    74     PM_CONCEPT_SOURCE_NONE     = 0x00,  ///< No concepts
    75     PM_CONCEPT_SOURCE_CELLS    = 0x01,  ///< Concept comes from the camera information
    76     PM_CONCEPT_SOURCE_DEFAULTS = 0x02,  ///< Concept comes from defaults
    77     PM_CONCEPT_SOURCE_PHU      = 0x04,  ///< Concept comes from PHU
    78     PM_CONCEPT_SOURCE_HEADER   = 0x08,  ///< Concept comes from FITS header
    79     PM_CONCEPT_SOURCE_DATABASE = 0x10,  ///< Concept comes from database
    80     PM_CONCEPT_SOURCE_ALL      = 0xff   ///< All concepts
    81 } pmConceptSource;
    8284
    8385/// Get a list of defined concepts for a particular level.
Note: See TracChangeset for help on using the changeset viewer.