IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 24, 2005, 3:05:59 PM (21 years ago)
Author:
Paul Price
Message:

Retrieval of concepts seems to be working.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/scripts/src/papFocalPlane.h

    r4309 r4386  
    99#define PS_META_CELL PS_META_UNKNOWN
    1010
    11 
    1211typedef struct {
    13     // How to get information
    14     const psMetadata *defaults;         // IPP concepts supplied with defaults
    15     const psMetadata *database;         // IPP concepts supplied from database lookup
    16     const psMetadata *fits;             // IPP concepts supplied from FITS headers
    17    
    18     // A source of information
     12    // Astrometric transformations
     13    psPlaneDistort* fromTangentPlane;   // Transformation from tangent plane to focal plane
     14    psPlaneDistort* toTangentPlane;     // Transformation from focal plane to tangent plane
     15    psProjection *projection;           // Projection from tangent plane to sky
     16    // Information
    1917    psMetadata *values;                 // Important values (cached)
    20     psMetadata *header;                 // The FITS header
    21     psDB *db;                           // The database handle
    22 
    23     // Lower levels
     18    const psMetadata *camera;           // Camera configuration
     19    psDB *db;                           // Database
    2420    psMetadata *chips;                  // The chips (referred to by name)
    25 
    26     psArray *images;                    // The pixel data, if it corresponds to this level
     21    // FITS data
     22    psArray *pixels;                    // The pixel data, if it corresponds to this level
     23    psMetadata *header;                 // The FITS header, if it corresponds to this level
    2724} papFPA;
    2825
    2926typedef struct {
    30     // Sources of information
     27    // Offset specifying position on focal plane
     28    const int col0;                     // Offset from the left of FPA
     29    const int row0;                     // Offset from the bottom of FPA
     30    // Astrometric transformations
     31    psPlaneTransform* toFPA;            // Transformation from chip to FPA coordinates
     32    psPlaneTransform* fromFPA;          // Transformation from FPA to chip coordinates
     33    // Information
    3134    psMetadata *values;                 // Important values (cached)
    32     psMetadata *header;                 // The FITS header
    33 
    34     // Lower levels
    3535    psMetadata *cells;                  // The cells (referred to by name)
    36 
    37     psArray *images;                    // The pixel data, if it corresponds to this level
     36    // FITS data
     37    psArray *pixels;                    // The pixel data, if it corresponds to this level
     38    psMetadata *header;                 // The FITS header, if it corresponds to this level
    3839} papChip;
    3940
    4041typedef struct {
    41     // Sources of information
     42    // Offset specifying position on chip
     43    const int col0;                     // Offset from the left of chip
     44    const int row0;                     // Offset from the bottom of chip
     45    // Astrometric transformations
     46    psPlaneTransform* toChip;           // Transformations from cell to chip coordinates
     47    psPlaneTransform* fromChip;         // Transformations from cell to chip coordinates
     48    psPlaneTransform* toFPA;            // Transformations from cell to FPA coordinates
     49    psPlaneTransform* toTP;             // Transformations from cell to FPA coordinates
     50    psPlaneTransform* toSky;            // Transformations from cell to tangent plane coordinates
     51    // Information
    4252    psMetadata *values;                 // Important values (cached)
    43     psMetadata *header;                 // The FITS header
    44 
    45     // Lower levels
    4653    psArray *readouts;                  // The readouts (referred to by number)
    47 
    48     psArray *images;                    // The pixel data, if it corresponds to this level
     54    // FITS data
     55    psArray *pixels;                    // The pixel data, if it corresponds to this level
     56    psMetadata *header;                 // The FITS header, if it corresponds to this level
    4957} papCell;
    5058
    5159
    5260typedef struct {
     61    // Details for position on the cell
    5362    const int col0;                     // Offset from the left of cell.
    5463    const int row0;                     // Offset from the bottom of cell.
     
    5766    const unsigned int colBins;         // Amount of binning in x-dimension
    5867    const unsigned int rowBins;         // Amount of binning in y-dimension
    59     psImage* image;                     // The pixels
     68    // Information
     69    psImage *image;                     // The pixels
    6070    psList *overscans;                  // Array of subimages containing the overscan region(s)
    61     psMetadata* values;                 // readout-level metadata
     71    psMetadata *values;                 // readout-level metadata
    6272} papReadout;
    6373
     
    6878                               const char *cellName, // The name of the cell
    6979                               const char *valueName // Name of value
    70                                );
     80    );
    7181
    7282// Type-specific functions provided as a convenience to the user
     
    94104
    95105// Allocators and deallocators
    96 papFPA *papFPAAlloc(psMetadata *fits, // FITS translation info
    97                     psMetadata *database, // Database lookup info
    98                     psMetadata *defaults, // Defaults info
    99                     psDB *db            // Database handle
     106papFPA *papFPAAlloc(const psMetadata *camera, // Camera configuration
     107                    psDB *db            // Database
    100108    );
    101109void p_papFPAFree(papFPA *fpa);
    102110
    103 papChip *papChipAlloc(papFPA *fpa,              // FPA to which the chip belongs
     111papChip *papChipAlloc(papFPA *fpa,      // FPA to which the chip belongs
    104112                    const char *name    // Name of the chip
    105113    );
     
    107115
    108116papCell *papCellAlloc(papChip *chip,    // Chip to which the cell belongs
    109                     const char *name,   // Name of the cell
    110                     int nReadouts       // Number of readouts contained
     117                      const char *name, // Name of the cell
     118                      int nReadouts     // Number of readouts contained
    111119    );
    112120void p_papCellFree(papCell *cell);
    113121
    114122papReadout *papReadoutAlloc(papCell *cell,      // Cell to which the readout belongs
    115                           int readoutNum, // Number of the readout
    116                           psImage *image, // The pixels
    117                           psList *overscans, // The overscan images
    118                           int col0, int row0, int colParity, int rowParity, int colBin, int rowBin // Data
     123                            int readoutNum, // Number of the readout
     124                            psImage *image, // The pixels
     125                            psList *overscans, // The overscan images
     126                            int col0, int row0, int colParity, int rowParity, int colBin, int rowBin // Data
    119127    );
    120128void p_papReadoutFree(papReadout *readout);
Note: See TracChangeset for help on using the changeset viewer.