Changeset 270
- Timestamp:
- Mar 19, 2004, 5:37:29 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/archive/pslib/include/psAstrom.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/pslib/include/psAstrom.h
r257 r270 113 113 psCoordXform *cellToChip; ///< Transformations from cell coordinates to chip coordinates 114 114 psCoordXform *cellToFPA; ///< Transformations from cell coordinates to FPA coordinates 115 psCoordXform *cellToSky; ///< Quick and Dirty transformations from cell coordinates to sky 115 116 116 117 struct psChip *parentChip; ///< chip which contains this cell … … 119 120 /** a Frame: a collection of pixels */ 120 121 typedef struct { 121 int x0, y0;//!< Offset from the lower-left corner122 const int x0, y0; //!< Offset from the lower-left corner 122 123 psImage *image; ///< imaging area of cell 123 124 psDlist *objects; ///< objects derived from cell … … 136 137 /** returns Chip in FPA which contains the given FPA coordinate */ 137 138 psChip * 138 psChipInFPA (psFPA *fpa, ///< FPA description 139 psCoord *coord ///< coordinate in FPA 139 psChipInFPA (psChip *out, //!< Chip to return, or NULL 140 const psFPA *fpa, ///< FPA description 141 const psCoord *coord ///< coordinate in FPA 140 142 ); 141 143 142 144 /** returns Cell in Chip which contains the given chip coordinate */ 143 145 psCell * 144 psCellInChip (psChip *chip, ///< chip description 145 psCoord *coord ///< coordinate in chip 146 ); 146 psCellInChip(psCell *out, //!< Cell to return, or NULL 147 const psChip *chip, ///< chip description 148 const psCoord *coord ///< coordinate in chip 149 ); 150 151 /** Return the cell in FPA which contains the given FPA coordinates */ 152 psCell * 153 psCellInFPA(psCell *out, //!< Cell to return, or NULL 154 const psFPA *fpa, //!< FPA description 155 const psCoord *coord //!< Coordinate in FPA 156 ); 157 158 159 /** Convert (RA,Dec) to cell and cell coordinates */ 160 psCoord * 161 psCoordSkyToCell(psCoord *out, //!< Coordinates to return, or NULL 162 psCell *cell, //!< Cell to return 163 const psFPA *fpa //!< FPA description 164 ); 165 166 /** Convert cell and cell coordinate to (RA,Dec) */ 167 psCoord * 168 psCoordCellToSky(psCoord *out, //!< Coordinates to return, or NULL 169 const psCell *cell, //!< Cell to get coordinates for 170 const psCoord *coord //!< cell coordinates to transform 171 ); 172 173 /** Quick and dirty cell to (RA,Dec) --- employs cellToSky transformation */ 174 psCoord * 175 psCoordCellToSkyQuick(psCoord *out, //!< Coordinates to return, or NULL 176 const psCell *cell, //!< Cell description 177 const psCoord *coord //!< cell coordinates to transform 178 ); 147 179 148 180 /** Convert (RA,Dec) to tangent plane coords */ 149 181 psCoord * 150 psCoordSkyToTP(psExposure *exp, //!< Exposure description 151 psCoord *coord //!< input Sky coordinate 182 psCoordSkyToTP(psCoord *out, //!< Coordinates to return, or NULL 183 const psExposure *exp, //!< Exposure description 184 const psCoord *coord //!< input Sky coordinate 152 185 ); 153 186 154 187 /** Convert tangent plane coords to focal plane coordinates */ 155 188 psCoord * 156 psCoordTPtoFPA(psFPA *fpa, //!< FPA description 157 psCoord *coord //!< input TP coordinate 189 psCoordTPtoFPA(psCoord *out, //!< Coordinates to return, or NULL 190 const psFPA *fpa, //!< FPA description 191 const psCoord *coord //!< input TP coordinate 158 192 ); 159 193 160 194 /** converts the specified FPA coord to the coord on the given Chip */ 161 195 psCoord * 162 psCoordFPAtoChip (ps FPA *fpa, ///< FPA description163 psChip *chip,///< Chip of interest164 psCoord *coord ///< input FPA coordinate196 psCoordFPAtoChip (psCoord *out, //!< Coordinates to return, or NULL 197 const psChip *chip, ///< Chip of interest 198 const psCoord *coord ///< input FPA coordinate 165 199 ); 166 200 167 201 /** converts the specified Chip coord to the coord on the given Cell */ 168 202 psCoord * 169 psCoordChiptoCell (psC hip *chip, ///< Chip description170 psCell *cell, ///< Cell of interest171 psCoord *coord ///< input Chip coordinate203 psCoordChiptoCell (psCoord *out, //!< Coordinates to return, or NULL 204 const psCell *cell, ///< Cell of interest 205 const psCoord *coord ///< input Chip coordinate 172 206 ); 173 207 174 208 /** converts the specified Cell coord to the coord on the parent Chip */ 175 209 psCoord * 176 psCoordCelltoChip (psCell *cell, ///< Cell description 177 psCoord *coord ///< input Cell coordinate 210 psCoordCelltoChip (psCoord *out, //!< Coordinates to return, or NULL 211 const psCell *cell, ///< Cell description 212 const psCoord *coord ///< input Cell coordinate 178 213 ); 179 214 180 215 /** converts the specified Chip coord to the coord on the parent FPA */ 181 216 psCoord * 182 psCoordChiptoFPA (psChip *chip, ///< Chip description 183 psCoord *coord ///< input Chip coordinate 217 psCoordChiptoFPA (psCoord *out, //!< Coordinates to return, or NULL 218 const psChip *chip, ///< Chip description 219 const psCoord *coord ///< input Chip coordinate 184 220 ); 185 221 186 222 /** Convert focal plane coords to tangent plane coordinates */ 187 223 psCoord * 188 psCoordFPAToTP(psFPA *fpa, //!< FPA description 189 psCoord *coord //!< input FPA coordinate 224 psCoordFPAToTP(psCoord *out, //!< Coordinates to return, or NULL 225 const psFPA *fpa, //!< FPA description 226 const psCoord *coord //!< input FPA coordinate 190 227 ); 191 228 192 229 /** Convert tangent plane coords to (RA,Dec) */ 193 230 psCoord * 194 psCoordTPtoSky(psExposure *exp, //!< Exposure description 195 psCoord *coord //!< input TP coordinate 196 ); 231 psCoordTPtoSky(psCoord *out, //!< Coordinates to return, or NULL 232 const psExposure *exp, //!< Exposure description 233 const psCoord *coord //!< input TP coordinate 234 ); 235 236 /** Convert Cell coords to FPA coordinates */ 237 psCoord * 238 psCoordCellToFPA(psCoord *out, //!< Coordinates to return, or NULL 239 const psCell *cell, //!< Cell description 240 const psCoord *coord //!< Input cell coordinates 241 ); 197 242 198 243 /** Get the airmass for a given position and sidereal time */ 199 244 float 200 psGetAirmass( psCoord *coord,//!< Position on the sky245 psGetAirmass(const psCoord *coord, //!< Position on the sky 201 246 double siderealTime //!< Sidereal time 202 247 ); … … 204 249 /** Get the parallactic angle for a given position and sidereal time */ 205 250 float 206 psGetParallactic( psCoord *coord, //!< Position on the sky251 psGetParallactic(const psCoord *coord, //!< Position on the sky 207 252 double siderealTime //!< Sidereal time 208 253 ); … … 211 256 float 212 257 psGetRefraction(float colour, //!< Colour of object 213 psPhotSystem colorPlus, // 258 psPhotSystem colorPlus, ///< Colour reference 214 259 psPhotSystem colorMinus, ///< Colour reference 215 psExposure *exp//!< Telescope pointing information, for airmass, temp and pressure260 const psExposure *exp //!< Telescope pointing information, for airmass, temp and pressure 216 261 ); 217 262
Note:
See TracChangeset
for help on using the changeset viewer.
