IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 11, 2008, 3:52:56 PM (18 years ago)
Author:
Paul Price
Message:

Adding separate tracking values for image/mask/weight when reading incrementally. Without these, reading image, mask and weight incrementally into the same readout will update row0/col0 3 separate times --- the data won't match!

File:
1 edited

Legend:

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

    r15973 r16396  
    66 * @author Eugene Magnier, IfA
    77 *
    8  * @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
    9  * @date $Date: 2008-01-02 20:32:25 $
     8 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
     9 * @date $Date: 2008-02-12 01:52:56 $
    1010 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii
    1111 */
     
    1616/// @addtogroup Camera Camera Layout
    1717/// @{
    18 
    19 #define FPA_ASTROM 1                    ///< Include astrometry information in the structures?
    2018
    2119// Return chip position, given FPA position; calculations are all done in pixel units
     
    4240/// astrometric transformations.  The astrometric transformations encode how to transform from the tangent
    4341/// plane to the sky, and back.
    44 typedef struct
    45 {
    46     #if FPA_ASTROM
     42typedef struct {
    4743    // Astrometric transformations
    4844    psPlaneTransform *fromTPA;  ///< Transformation from tangent plane to focal plane, or NULL
    4945    psPlaneTransform *toTPA;  ///< Transformation from focal plane to tangent plane, or NULL
    5046    psProjection *toSky;         ///< Projection from tangent plane to sky, or NULL
    51     #endif
    5247    // Information
    5348    psMetadata *concepts;               ///< FPA-level concepts
     
    5752    psArray *chips;                     ///< The component chips
    5853    pmHDU *hdu;                         ///< FITS header data unit of interest, or NULL
    59 }
    60 pmFPA;
     54} pmFPA;
    6155
    6256/// A chip (contiguous detector element)
     
    6761/// interest, and astrometric transformations.  The astrometric transformations provide transforms between the
    6862/// chip and FPA coordinates and back.
    69 typedef struct
    70 {
    71     #if FPA_ASTROM
     63typedef struct {
    7264    // Astrometric transformations
    7365    psPlaneTransform *toFPA;            ///< Transformation from chip to FPA coordinates, or NULL
    7466    psPlaneTransform *fromFPA;          ///< Transformation from FPA to chip coordinates, or NULL
    75     #endif
    7667    // Information
    7768    psMetadata *concepts;               ///< Chip-level concepts
     
    8475    bool data_exists;                   ///< Does the data for this chip exist (read case only)?
    8576    pmHDU *hdu;                         ///< FITS header data unit of interest,
    86 }
    87 pmChip;
     77} pmChip;
    8878
    8979/// A cell (smallest logical unit)
     
    10494 *
    10595 */
    106 typedef struct
    107 {
     96typedef struct {
    10897    psMetadata *concepts;               ///< Cell-level concepts
    10998    unsigned int conceptsRead;          ///< Which concepts have been read; see pmConceptsSource
     
    116105    bool data_exists;                   ///< Does the data for this cell exist (read case only)?
    117106    pmHDU *hdu;                         ///< FITS header data unit of interest
    118 }
    119 pmCell;
     107} pmCell;
    120108
    121109/// A readout (individual read of a cell)
     
    127115/// sections (prescans or overscans, or otherwise), a summary of analysis tasks that have been performed,
    128116/// status flags, and the offsets used for reading a FITS file incrementally.
    129 typedef struct
    130 {
     117typedef struct {
    131118    int col0;                           ///< Column offset; non-zero if reading in columns incrementally
    132119    int row0;                           ///< Row offset; non-zero if reading in rows incrementally
     
    140127    bool file_exists;                   ///< Does the file for this readout exist (read case only)?
    141128    bool data_exists;                   ///< Does the data for this readout exist (read case only)?
    142 }
    143 pmReadout;
     129    int imageScan, maskScan, weightScan;///< Separate tracking numbers for reading images incrementally
     130} pmReadout;
    144131
    145132/// Free all readouts within a cell
Note: See TracChangeset for help on using the changeset viewer.