IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 30, 2006, 12:05:41 PM (20 years ago)
Author:
magnier
Message:

added FPA_ASTROM option

File:
1 edited

Legend:

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

    r6972 r7008  
    77*  @author GLG, MHPCC
    88*
    9 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2006-04-25 00:26:48 $
     9*  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2006-04-30 22:05:41 $
    1111*
    1212*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2121#include "pslib.h"
    2222#include "pmHDU.h"
     23
     24# define FPA_ASTROM 1
    2325
    2426/// @addtogroup AstroImage
     
    4345typedef struct
    4446{
    45     #if 0
     47    # if FPA_ASTROM
    4648    // Astrometric transformations
    4749    psPlaneDistort* fromTangentPlane;   ///< Transformation from tangent plane to focal plane
    48     psPlaneDistort* toTangentPlane;     ///< Transformation from focal plane to tangent plane
    49     psProjection *projection;           ///< Projection from tangent plane to sky
    50     #endif
    51     // Information
    52     psMetadata *concepts;               ///< Cache for PS concepts
    53     unsigned int conceptsRead;          ///< Which concepts have been read
    54     psMetadata *analysis;               ///< FPA-level analysis metadata
    55     const psMetadata *camera;           ///< Camera configuration
    56     psArray *chips;                     ///< The chips
    57     pmHDU *hdu;                         ///< FITS data
     50psPlaneDistort* toTangentPlane;     ///< Transformation from focal plane to tangent plane
     51psProjection *projection;           ///< Projection from tangent plane to sky
     52# endif
     53// Information
     54psMetadata *concepts;               ///< Cache for PS concepts
     55unsigned int conceptsRead;          ///< Which concepts have been read
     56psMetadata *analysis;               ///< FPA-level analysis metadata
     57const psMetadata *camera;           ///< Camera configuration
     58psArray *chips;                     ///< The chips
     59pmHDU *hdu;                         ///< FITS data
    5860}
    5961pmFPA;
     
    7577typedef struct
    7678{
    77     #if 0
     79# if FPA_ASTROM
    7880    // Offset specifying position on focal plane
    7981    int col0;                           ///< Offset from the left of FPA.
    80     int row0;                           ///< Offset from the bottom of FPA.
    81     // Astrometric transformations
    82     psPlaneTransform* toFPA;            ///< Transformation from chip to FPA coordinates
    83     psPlaneTransform* fromFPA;          ///< Transformation from FPA to chip coordinates
    84     #endif
    85     // Information
    86     psMetadata *concepts;               ///< Cache for PS concepts
    87     unsigned int conceptsRead;          ///< Which concepts have been read
    88     psMetadata *analysis;               ///< Chip-level analysis metadata
    89     psArray *cells;                     ///< The cells (referred to by name)
    90     pmFPA *parent;                      ///< Parent FPA
    91     bool process;                       ///< Do we bother about reading and working with this chip?
    92     bool file_exists;                   ///< Does the file for this chip exist (read case only)?
    93     bool data_exists;                   ///< Does the data for this chip exist (read case only)?
    94     pmHDU *hdu;                         ///< FITS data
    95     struct pmCell *mosaic;              ///< A mosaic cell
     82int row0;                           ///< Offset from the bottom of FPA.
     83// Astrometric transformations
     84psPlaneTransform* toFPA;            ///< Transformation from chip to FPA coordinates
     85psPlaneTransform* fromFPA;          ///< Transformation from FPA to chip coordinates
     86# endif
     87// Information
     88psMetadata *concepts;               ///< Cache for PS concepts
     89unsigned int conceptsRead;          ///< Which concepts have been read
     90psMetadata *analysis;               ///< Chip-level analysis metadata
     91psArray *cells;                     ///< The cells (referred to by name)
     92pmFPA *parent;                      ///< Parent FPA
     93bool process;                       ///< Do we bother about reading and working with this chip?
     94bool file_exists;                   ///< Does the file for this chip exist (read case only)?
     95bool data_exists;                   ///< Does the data for this chip exist (read case only)?
     96pmHDU *hdu;                         ///< FITS data
     97struct pmCell *mosaic;              ///< A mosaic cell
    9698}
    9799pmChip;
     
    108110typedef struct
    109111{
    110     psMetadata *concepts;               ///< Cache for PS concepts
    111     unsigned int conceptsRead;          ///< Which concepts have been read
    112     psMetadata *config;                 ///< Cell configuration info
    113     psMetadata *analysis;               ///< Cell-level analysis metadata
    114     psArray *readouts;                  ///< The readouts (referred to by number)
    115     pmChip *parent;                     ///< Parent chip
    116     bool process;                       ///< Do we bother about reading and working with this cell?
    117     bool file_exists;                   ///< Does the file for this cell exist (read case only)?
    118     bool data_exists;                   ///< Does the data for this cell exist (read case only)?
    119     pmHDU *hdu;                         ///< FITS data
     112psMetadata *concepts;               ///< Cache for PS concepts
     113unsigned int conceptsRead;          ///< Which concepts have been read
     114psMetadata *config;                 ///< Cell configuration info
     115psMetadata *analysis;               ///< Cell-level analysis metadata
     116psArray *readouts;                  ///< The readouts (referred to by number)
     117pmChip *parent;                     ///< Parent chip
     118bool process;                       ///< Do we bother about reading and working with this cell?
     119bool file_exists;                   ///< Does the file for this cell exist (read case only)?
     120bool data_exists;                   ///< Does the data for this cell exist (read case only)?
     121pmHDU *hdu;                         ///< FITS data
    120122}
    121123pmCell;
     
    133135typedef struct
    134136{
    135     int col0;                           ///< Column offset; non-zero if reading in columns bit by bit
    136     int row0;                           ///< Row offset; non-zero if reading in rows bit by bit
    137     psImage *image;                     ///< Imaging area of readout
    138     psImage *mask;                      ///< Mask of input image
    139     psImage *weight;                    ///< Weight of input image
    140     psList *bias;                       ///< Overscan images
    141     psMetadata *analysis;               ///< Readout-level analysis metadata
    142     pmCell *parent;                     ///< Parent cell
    143     bool process;                       ///< Do we bother about reading and working with this readout?
    144     bool file_exists;                   ///< Does the file for this readout exist (read case only)?
    145     bool data_exists;                   ///< Does the data for this readout exist (read case only)?
     137int col0;                           ///< Column offset; non-zero if reading in columns bit by bit
     138int row0;                           ///< Row offset; non-zero if reading in rows bit by bit
     139psImage *image;                     ///< Imaging area of readout
     140psImage *mask;                      ///< Mask of input image
     141psImage *weight;                    ///< Weight of input image
     142psList *bias;                       ///< Overscan images
     143psMetadata *analysis;               ///< Readout-level analysis metadata
     144pmCell *parent;                     ///< Parent cell
     145bool process;                       ///< Do we bother about reading and working with this readout?
     146bool file_exists;                   ///< Does the file for this readout exist (read case only)?
     147bool data_exists;                   ///< Does the data for this readout exist (read case only)?
    146148}
    147149pmReadout;
Note: See TracChangeset for help on using the changeset viewer.