Changeset 16396
- Timestamp:
- Feb 11, 2008, 3:52:56 PM (18 years ago)
- Location:
- trunk/psModules/src/camera
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPA.c
r15973 r16396 268 268 tmpReadout->col0 = 0; 269 269 270 tmpReadout->imageScan = 0; 271 tmpReadout->maskScan = 0; 272 tmpReadout->weightScan = 0; 273 270 274 return(tmpReadout); 271 275 } -
trunk/psModules/src/camera/pmFPA.h
r15973 r16396 6 6 * @author Eugene Magnier, IfA 7 7 * 8 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $9 * @date $Date: 2008-0 1-02 20:32:25$8 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2008-02-12 01:52:56 $ 10 10 * Copyright 2005-2006 Institute for Astronomy, University of Hawaii 11 11 */ … … 16 16 /// @addtogroup Camera Camera Layout 17 17 /// @{ 18 19 #define FPA_ASTROM 1 ///< Include astrometry information in the structures?20 18 21 19 // Return chip position, given FPA position; calculations are all done in pixel units … … 42 40 /// astrometric transformations. The astrometric transformations encode how to transform from the tangent 43 41 /// plane to the sky, and back. 44 typedef struct 45 { 46 #if FPA_ASTROM 42 typedef struct { 47 43 // Astrometric transformations 48 44 psPlaneTransform *fromTPA; ///< Transformation from tangent plane to focal plane, or NULL 49 45 psPlaneTransform *toTPA; ///< Transformation from focal plane to tangent plane, or NULL 50 46 psProjection *toSky; ///< Projection from tangent plane to sky, or NULL 51 #endif52 47 // Information 53 48 psMetadata *concepts; ///< FPA-level concepts … … 57 52 psArray *chips; ///< The component chips 58 53 pmHDU *hdu; ///< FITS header data unit of interest, or NULL 59 } 60 pmFPA; 54 } pmFPA; 61 55 62 56 /// A chip (contiguous detector element) … … 67 61 /// interest, and astrometric transformations. The astrometric transformations provide transforms between the 68 62 /// chip and FPA coordinates and back. 69 typedef struct 70 { 71 #if FPA_ASTROM 63 typedef struct { 72 64 // Astrometric transformations 73 65 psPlaneTransform *toFPA; ///< Transformation from chip to FPA coordinates, or NULL 74 66 psPlaneTransform *fromFPA; ///< Transformation from FPA to chip coordinates, or NULL 75 #endif76 67 // Information 77 68 psMetadata *concepts; ///< Chip-level concepts … … 84 75 bool data_exists; ///< Does the data for this chip exist (read case only)? 85 76 pmHDU *hdu; ///< FITS header data unit of interest, 86 } 87 pmChip; 77 } pmChip; 88 78 89 79 /// A cell (smallest logical unit) … … 104 94 * 105 95 */ 106 typedef struct 107 { 96 typedef struct { 108 97 psMetadata *concepts; ///< Cell-level concepts 109 98 unsigned int conceptsRead; ///< Which concepts have been read; see pmConceptsSource … … 116 105 bool data_exists; ///< Does the data for this cell exist (read case only)? 117 106 pmHDU *hdu; ///< FITS header data unit of interest 118 } 119 pmCell; 107 } pmCell; 120 108 121 109 /// A readout (individual read of a cell) … … 127 115 /// sections (prescans or overscans, or otherwise), a summary of analysis tasks that have been performed, 128 116 /// status flags, and the offsets used for reading a FITS file incrementally. 129 typedef struct 130 { 117 typedef struct { 131 118 int col0; ///< Column offset; non-zero if reading in columns incrementally 132 119 int row0; ///< Row offset; non-zero if reading in rows incrementally … … 140 127 bool file_exists; ///< Does the file for this readout exist (read case only)? 141 128 bool data_exists; ///< Does the data for this readout exist (read case only)? 142 } 143 pmReadout;129 int imageScan, maskScan, weightScan;///< Separate tracking numbers for reading images incrementally 130 } pmReadout; 144 131 145 132 /// Free all readouts within a cell -
trunk/psModules/src/camera/pmFPAWrite.c
r15633 r16396 123 123 return false; 124 124 } 125 125 126 // Write a cell image/mask/weight 126 127 static bool cellWrite(pmCell *cell, // Cell to write
Note:
See TracChangeset
for help on using the changeset viewer.
