Changeset 1511
- Timestamp:
- Aug 11, 2004, 6:16:38 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psAstrom.h (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psAstrom.h
r753 r1511 20 20 * 4 <--> 5: SLALib transformation using exposure parameters (psExposure or psGrommit) 21 21 */ 22 23 /** Observatory data */ 24 typedef struct { 25 const char *name; ///< Name of observatory 26 const double latitude; ///< Latitude of observatory, east positive 27 const double longitude; ///< Longitude of observatory 28 const double height; ///< Height of observatory 29 const double tlr; ///< Tropospheric Lapse Rate 30 } psObservatory; 31 32 psObservatory * 33 psObservatoryAlloc(const char *name, ///< Name of observatory 34 double latitude, ///< Latitude of observatory, east positive 35 double longitude, ///< Longitude of observatory 36 double height, ///< Height of observatory 37 double tlr ///< Tropospheric Lapse Rate 38 ); 22 39 23 40 /** Information needed (by SLALIB) to convert Apparent to Observed Position */ … … 37 54 } psGrommit; 38 55 56 /** Constructor */ 57 psGrommit * 58 psGrommitAlloc(double latitude, ///< geodetic latitude (radians) 59 double sinLat, double cosLat, ///< sine and cosine of geodetic latitude 60 double abberationMag, ///< magnitude of diurnal aberration vector 61 double height, ///< height (HM) 62 double temperature, ///< ambient temperature (TDK) 63 double pressure, ///< pressure (PMB) 64 double humidity, ///< relative humidity (RH) 65 double wavelength, ///< wavelength (WL) 66 double lapseRate, ///< lapse rate (TLR) 67 double refractA, double refractB, ///< refraction constants A and B (radians) 68 double longitudeOffset, ///< longitude + eqn of equinoxes + ``sidereal UT'' (radians) 69 double siderealTime ///< local apparent sidereal time (radians) 70 ); 71 39 72 /** Exposure information from the telescope */ 40 73 typedef struct { 41 // Telescope longitude, latitude and height are stored separately, since they don't change with pointing42 74 const double ra, dec; ///< Telescope boresight 43 75 const double ha; ///< Hour angle … … 45 77 const double az; ///< Azimuth 46 78 const double lst; ///< Local Sidereal Time 47 const float mjd; ///< MJDof observation79 const psTime *time; ///< Time of observation 48 80 const float rotAngle; ///< Rotator position angle 49 81 const float temp; ///< Air temperature, for estimating refraction … … 51 83 const float humidity; ///< Relative humidity, for calculating refraction 52 84 const float exptime; ///< Exposure time 85 const float wavelength; ///< Wavelength of observation 86 const psObservatory *observatory; ///< Observatory data: longitude, latitude, height etc. 53 87 /* Derived quantities */ 54 88 const float posAngle; ///< Position angle … … 60 94 } psExposure; 61 95 96 /** Constructor */ 97 psExposure * 98 psExposureAlloc(double ra, double dec, ///< Telescope boresight 99 double ha, ///< Hour angle 100 double zd, ///< Zenith distance 101 double az, ///< Azimuth 102 double lst, ///< Local Sidereal Time 103 const psTime *time, ///< Time of observation 104 float rotAngle, ///< Rotator position angle 105 float temp, ///< Temperature 106 float pressure, ///< Pressure 107 float humidity, ///< Relative humidity 108 float exptime, ///< Exposure time 109 float wavelength, ///< Wavelength of observation 110 const psObservatory *observatory ///< Observatory data 111 ); 62 112 63 113 /** The fixed pattern residual offsets. These are specified via a coarse grid of x and y offsets. */ … … 69 119 } psFixedPattern; 70 120 121 /** Constructor */ 122 psFixedPattern * 123 psFixedPatternAlloc(double x0, double y0, ///< Position of the lower-left corner of the grid on the focal plane 124 double xScale, double yScale, ///< Scale of the grid 125 const psImage *x, ///< Grid of offsets in x 126 const psImage *y ///< Grid of offsets in y 127 ); 128 71 129 72 130 /** a Focal plane array: a collection of chips. Not all chips in a camera need to be listed in an instance of … … 83 141 psFixedPattern *pattern; ///< Fixed pattern residual offsets 84 142 const psExposure *exp; ///< information about this exposure 143 const psGrommit *grommit; ///< Information for conversion from TP to Sky. 85 144 psPhotSystem colorPlus, colorMinus; ///< Colour reference 86 145 float rmsX, rmsY; ///< Dispersion in astrometric solution … … 88 147 } psFPA; 89 148 149 /** Constructor: makes an empty FPA */ 150 psFPA * 151 psFPAAlloc(int nAlloc, ///< Number of Cells to allocate 152 const psExposure *exp ///< information about this exposure 153 ); 154 155 90 156 /** a Chip: a collection of cells. Not all valid cells in a chip need to be listed in an 91 157 * instance of psChip. … … 101 167 struct psFPA *parentFPA; ///< FPA which contains this chip 102 168 } psChip; 169 170 /** Constructor */ 171 psChip * 172 psChipAlloc(int nCells, ///< Number of Cells assigned 173 psFPA *parentFPA ///< FPA which contains this chip 174 ); 175 103 176 104 177 /** a Cell: a collection of readouts. … … 109 182 struct psReadout *readouts; ///< Readouts from the cell 110 183 psMetadata *md; ///< Cell-level metadata 111 112 184 psPlaneTransform *cellToChip; ///< Transformations from cell coordinates to chip coordinates 113 185 psPlaneTransform *cellToFPA; ///< Transformations from cell coordinates to FPA coordinates 114 186 psPlaneTransform *cellToSky; ///< Quick and Dirty transformations from cell coordinates to sky 115 116 187 struct psChip *parentChip; ///< chip which contains this cell 117 188 } psCell; 189 190 /** Constructor */ 191 psCell * 192 psCellAlloc(int nReadouts, ///< number of readouts in this cell 193 struct psChip *parentChip ///< chip which contains this cell 194 ); 195 118 196 119 197 /** a Readout: a collection of pixels */ … … 127 205 128 206 207 /** Constructor */ 208 psReadout * 209 psReadoutAlloc(int x0, int y0, ///< Offset from the lower-left corner of the physical device 210 const psImage *image ///< imaging area of cell 211 ); 212 213 129 214 /** Functions **************************************************************/ 130 215 /** \addtogroup AstroGroup Astronomy-Specific Utilities … … 280 365 /*** Constructors / Destructors ******************************************************/ 281 366 282 /** Constructor */283 psExposure *284 psExposureAlloc(double ra, double dec, ///< Telescope boresight285 double ha, ///< Hour angle286 double zd, ///< Zenith distance287 double az, ///< Azimuth288 double lst, ///< Local Sidereal Time289 float mjd, ///< MJD290 float rotAngle, ///< Rotator position angle291 float temp, ///< Temperature292 float pressure, ///< Pressure293 float humidity, ///< Relative humidity294 float exptime) ///< Exposure time295 ;296 367 297 368 /** Destructor */
Note:
See TracChangeset
for help on using the changeset viewer.
