Changeset 4386 for trunk/archive/scripts/src/papFocalPlane.h
- Timestamp:
- Jun 24, 2005, 3:05:59 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/archive/scripts/src/papFocalPlane.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/scripts/src/papFocalPlane.h
r4309 r4386 9 9 #define PS_META_CELL PS_META_UNKNOWN 10 10 11 12 11 typedef 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 19 17 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 24 20 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 27 24 } papFPA; 28 25 29 26 typedef 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 31 34 psMetadata *values; // Important values (cached) 32 psMetadata *header; // The FITS header33 34 // Lower levels35 35 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 38 39 } papChip; 39 40 40 41 typedef 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 42 52 psMetadata *values; // Important values (cached) 43 psMetadata *header; // The FITS header44 45 // Lower levels46 53 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 49 57 } papCell; 50 58 51 59 52 60 typedef struct { 61 // Details for position on the cell 53 62 const int col0; // Offset from the left of cell. 54 63 const int row0; // Offset from the bottom of cell. … … 57 66 const unsigned int colBins; // Amount of binning in x-dimension 58 67 const unsigned int rowBins; // Amount of binning in y-dimension 59 psImage* image; // The pixels 68 // Information 69 psImage *image; // The pixels 60 70 psList *overscans; // Array of subimages containing the overscan region(s) 61 psMetadata *values; // readout-level metadata71 psMetadata *values; // readout-level metadata 62 72 } papReadout; 63 73 … … 68 78 const char *cellName, // The name of the cell 69 79 const char *valueName // Name of value 70 );80 ); 71 81 72 82 // Type-specific functions provided as a convenience to the user … … 94 104 95 105 // 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 106 papFPA *papFPAAlloc(const psMetadata *camera, // Camera configuration 107 psDB *db // Database 100 108 ); 101 109 void p_papFPAFree(papFPA *fpa); 102 110 103 papChip *papChipAlloc(papFPA *fpa, // FPA to which the chip belongs111 papChip *papChipAlloc(papFPA *fpa, // FPA to which the chip belongs 104 112 const char *name // Name of the chip 105 113 ); … … 107 115 108 116 papCell *papCellAlloc(papChip *chip, // Chip to which the cell belongs 109 const char *name, // Name of the cell110 int nReadouts // Number of readouts contained117 const char *name, // Name of the cell 118 int nReadouts // Number of readouts contained 111 119 ); 112 120 void p_papCellFree(papCell *cell); 113 121 114 122 papReadout *papReadoutAlloc(papCell *cell, // Cell to which the readout belongs 115 int readoutNum, // Number of the readout116 psImage *image, // The pixels117 psList *overscans, // The overscan images118 int col0, int row0, int colParity, int rowParity, int colBin, int rowBin // Data123 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 119 127 ); 120 128 void p_papReadoutFree(papReadout *readout);
Note:
See TracChangeset
for help on using the changeset viewer.
