Changeset 4309 for trunk/archive/scripts/src/papFocalPlane.h
- Timestamp:
- Jun 17, 2005, 2:48:18 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/archive/scripts/src/papFocalPlane.h (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/scripts/src/papFocalPlane.h
r4092 r4309 3 3 4 4 #include "pslib.h" 5 #include "papStuff.h" 6 7 // Temporary metadata types 8 #define PS_META_CHIP PS_META_UNKNOWN 9 #define PS_META_CELL PS_META_UNKNOWN 10 5 11 6 12 typedef struct { 7 13 // How to get information 8 psMetadata *defaults; // IPP concepts supplied with defaults9 psMetadata *database; // IPP concepts supplied from database lookup10 psMetadata *fits;// IPP concepts supplied from FITS headers11 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 12 18 // A source of information 19 psMetadata *values; // Important values (cached) 13 20 psMetadata *header; // The FITS header 14 21 psDB *db; // The database handle … … 17 24 psMetadata *chips; // The chips (referred to by name) 18 25 19 ps Image *image; // The pixel data, if it corresponds to this level20 } p sFPA;26 psArray *images; // The pixel data, if it corresponds to this level 27 } papFPA; 21 28 22 29 typedef struct { … … 28 35 psMetadata *cells; // The cells (referred to by name) 29 36 30 ps Image *image; // The pixel data, if it corresponds to this level31 } p sChip;37 psArray *images; // The pixel data, if it corresponds to this level 38 } papChip; 32 39 33 40 typedef struct { … … 39 46 psArray *readouts; // The readouts (referred to by number) 40 47 41 ps Image *image; // The pixel data, if it corresponds to this level42 } p sCell;48 psArray *images; // The pixel data, if it corresponds to this level 49 } papCell; 43 50 44 51 … … 53 60 psList *overscans; // Array of subimages containing the overscan region(s) 54 61 psMetadata* values; // readout-level metadata 55 } p sReadout;62 } papReadout; 56 63 57 64 58 65 // Look for a particular value for a given cell (referred to by FPA+chip+cell) 59 psMetadataItem *psCellGetValue( const psFPA *fpa, // The FPA that contains the cell66 psMetadataItem *psCellGetValue(papFPA *fpa, // The FPA that contains the cell 60 67 const char *chipName, // The name of the chip 61 68 const char *cellName, // The name of the cell … … 64 71 65 72 // Type-specific functions provided as a convenience to the user 66 float psCellGetValueF32( const psFPA *fpa, // The FPA that contains the cell73 float psCellGetValueF32(papFPA *fpa, // The FPA that contains the cell 67 74 const char *chipName, // The name of the chip 68 75 const char *cellName, // The name of the cell 69 76 const char *valueName // Name of value 70 77 ); 71 int psCellGetValueS32( const psFPA *fpa, // The FPA that contains the cell78 int psCellGetValueS32(papFPA *fpa, // The FPA that contains the cell 72 79 const char *chipName, // The name of the chip 73 80 const char *cellName, // The name of the cell 74 81 const char *valueName // Name of value 75 82 ); 76 double psCellGetValueF64( const psFPA *fpa, // The FPA that contains the cell83 double psCellGetValueF64(papFPA *fpa, // The FPA that contains the cell 77 84 const char *chipName, // The name of the chip 78 85 const char *cellName, // The name of the cell 79 86 const char *valueName // Name of value 80 87 ); 81 psString psCellGetValueString( const psFPA *fpa, // The FPA that contains the cell88 psString psCellGetValueString(papFPA *fpa, // The FPA that contains the cell 82 89 const char *chipName, // The name of the chip 83 90 const char *cellName, // The name of the cell … … 86 93 87 94 95 // 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 100 ); 101 void p_papFPAFree(papFPA *fpa); 102 103 papChip *papChipAlloc(papFPA *fpa, // FPA to which the chip belongs 104 const char *name // Name of the chip 105 ); 106 void p_papChipFree(papChip *chip); 107 108 papCell *papCellAlloc(papChip *chip, // Chip to which the cell belongs 109 const char *name, // Name of the cell 110 int nReadouts // Number of readouts contained 111 ); 112 void p_papCellFree(papCell *cell); 113 114 papReadout *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 119 ); 120 void p_papReadoutFree(papReadout *readout); 121 88 122 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
