Changeset 5564 for trunk/archive/scripts/src/phase2/pmFPA.h
- Timestamp:
- Nov 21, 2005, 5:00:14 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/archive/scripts/src/phase2/pmFPA.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/scripts/src/phase2/pmFPA.h
r5462 r5564 15 15 psArray *masks; // The mask data, if it corresponds to this level 16 16 psArray *weights; // The weight data, if it corresponds to this level 17 } p mPixelData;17 } p_pmHDU; 18 18 19 19 typedef struct { 20 20 // Astrometric transformations 21 psPlaneDistort* fromTangentPlane; // Transformation from tangent plane to focal plane22 psPlaneDistort* toTangentPlane; // Transformation from focal plane to tangent plane23 psProjection *projection; // Projection from tangent plane to sky21 psPlaneDistort* fromTangentPlane; // Transformation from tangent plane to focal plane 22 psPlaneDistort* toTangentPlane; // Transformation from focal plane to tangent plane 23 psProjection *projection; // Projection from tangent plane to sky 24 24 // Information 25 psMetadata *camera; // Camera configuration 26 psMetadata *concepts; // Values for concepts 27 psMetadata *phu; // Primary Header 28 psArray *chips; // The chips 29 pmPixelData *data; // FITS data 25 psMetadata *concepts; // Cache for PS concepts 26 psMetadata *analysis; // FPA-level analysis metadata 27 const psMetadata *camera; // Camera configuration 28 psArray *chips; // The chips 29 p_pmHDU *hdu; // FITS data 30 psMetadata *phu; // Primary Header 30 31 } pmFPA; 31 32 32 33 typedef struct { 33 34 // Offset specifying position on focal plane 34 const int col0; // Offset from the left of FPA35 const int row0; // Offset from the bottom of FPA35 int col0; // Offset from the left of FPA. 36 int row0; // Offset from the bottom of FPA. 36 37 // Astrometric transformations 37 psPlaneTransform* toFPA; // Transformation from chip to FPA coordinates38 psPlaneTransform* fromFPA; // Transformation from FPA to chip coordinates38 psPlaneTransform* toFPA; // Transformation from chip to FPA coordinates 39 psPlaneTransform* fromFPA; // Transformation from FPA to chip coordinates 39 40 // Information 40 psMetadata *concepts; // Values for concepts 41 psArray *cells; // The cells (referred to by name) 42 pmFPA *parent; // Parent FPA 43 bool valid; // Valid for reading in? 44 pmPixelData *data; // FITS data 41 psMetadata *concepts; // Cache for PS concepts 42 psMetadata *analysis; // Chip-level analysis metadata 43 psArray *cells; // The cells (referred to by name) 44 pmFPA *parent; // Parent FPA 45 bool valid; // Do we bother about reading and working with this chip? 46 p_pmHDU *hdu; // FITS data 45 47 } pmChip; 46 48 47 49 typedef struct { 48 50 // Offset specifying position on chip 49 const int col0; // Offset from the left of chip50 const int row0; // Offset from the bottom of chip51 int col0; // Offset from the left of chip. 52 int row0; // Offset from the bottom of chip. 51 53 // Astrometric transformations 52 psPlaneTransform* toChip; // Transformations from cell to chip coordinates 53 psPlaneTransform* fromChip; // Transformations from cell to chip coordinates 54 psPlaneTransform* toFPA; // Transformations from cell to FPA coordinates 55 psPlaneTransform* toTP; // Transformations from cell to FPA coordinates 56 psPlaneTransform* toSky; // Transformations from cell to tangent plane coordinates 54 psPlaneTransform* toChip; // Transformations from cell to chip coordinates 55 psPlaneTransform* toFPA; // Transformations from cell to FPA coordinates 56 psPlaneTransform* toSky; // Transformations from cell to sky coordinates 57 57 // Information 58 psMetadata *concepts; // Values for concepts 59 psMetadata *camera; // Camera information 60 psArray *readouts; // The readouts (referred to by number) 61 pmChip *parent; // Parent chip 62 bool valid; // Valid for operating on? 63 pmPixelData *data; // FITS data 58 psMetadata *concepts; // Cache for PS concepts 59 psMetadata *camera; // Camera information 60 psMetadata *analysis; // Cell-level analysis metadata 61 psArray *readouts; // The readouts (referred to by number) 62 pmChip *parent; // Parent chip 63 bool valid; // Do we bother about reading and working with this cell? 64 p_pmHDU *hdu; // FITS data 64 65 } pmCell; 65 66 67 typedef struct { 68 // Position on the cell 69 int col0; // Offset from the left of cell. 70 int row0; // Offset from the bottom of cell. 71 int colBins; // Amount of binning in x-dimension and parity (from sign) 72 int rowBins; // Amount of binning in y-dimension and parity (from sign) 73 // Information 74 psImage *image; // Imaging area of readout 75 psImage *mask; // Mask for image 76 psImage *weight; // Weight for image 77 psList *bias; // List of bias section (sub-)images 78 psMetadata *analysis; // Readout-level analysis metadata 79 pmCell *parent; // Parent cell 80 } pmReadout; 66 81 82 #if 0 67 83 typedef struct { 68 84 // Details for position on the cell … … 80 96 psImage *weight; // Weight image 81 97 } pmReadout; 82 98 #endif 83 99 84 100 psList *pmReadoutGetBias(pmReadout *readout // Readout for which to get the bias sections … … 87 103 88 104 // Allocators and deallocators 89 p mPixelData *pmPixelDataAlloc(const char *extname);90 void p_pm PixelDataFree(pmPixelData *pd);105 p_pmHDU *p_pmHDUAlloc(const char *extname); 106 void p_pmHDUFree(p_pmHDU *hdu); 91 107 pmFPA *pmFPAAlloc(const psMetadata *camera // Camera configuration 92 108 ); … … 107 123 psImage *image, // The pixels 108 124 psImage *mask,// The mask pixels 109 int col0, int row0, int col Parity, int rowParity, int colBin, int rowBin // Data125 int col0, int row0, int colBin, int rowBin // Data 110 126 ); 111 127 void p_pmReadoutFree(pmReadout *readout);
Note:
See TracChangeset
for help on using the changeset viewer.
