Changeset 1407 for trunk/psLib/src/astronomy/psCoord.h
- Timestamp:
- Aug 6, 2004, 2:06:06 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/astronomy/psCoord.h (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/astronomy/psCoord.h
r1393 r1407 1 1 2 /** @file psCoord.h 2 3 * … … 10 11 * @author George Gusciora, MHPCC 11 12 * 12 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $13 * @date $Date: 2004-08-0 5 19:38:51$13 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-08-07 00:06:06 $ 14 15 * 15 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii 16 17 */ 17 18 18 # ifndef PS_COORD_H19 # define PS_COORD_H20 21 # include "psType.h"22 # include "psImage.h"23 # include "psArray.h"24 # include "psList.h"25 # include "psFunctions.h"26 # include "psTime.h"19 #ifndef PS_COORD_H 20 # define PS_COORD_H 21 22 # include "psType.h" 23 # include "psImage.h" 24 # include "psArray.h" 25 # include "psList.h" 26 # include "psFunctions.h" 27 # include "psTime.h" 27 28 28 29 /// @addtogroup CoordinateTransform … … 38 39 typedef struct 39 40 { 40 double x; ///< x position41 double y; ///< y position42 double xErr; ///< Error in x position43 double yErr; ///< Error in y position41 double x; // /< x position 42 double y; // /< y position 43 double xErr; // /< Error in x position 44 double yErr; // /< Error in y position 44 45 } 45 46 psPlane; … … 54 55 typedef struct 55 56 { 56 double r; ///< RA57 double d; ///< Dec58 double rErr; ///< Error in RA59 double dErr; ///< Error in Dec57 double r; // /< RA 58 double d; // /< Dec 59 double rErr; // /< Error in RA 60 double dErr; // /< Error in Dec 60 61 } 61 62 psSphere; … … 71 72 typedef struct 72 73 { 73 psDPolynomial2D *x; ///< 2D polynomial transform of X coordinates74 psDPolynomial2D *y; ///< 2D polynomial transform of Y coordinates74 psDPolynomial2D *x; // /< 2D polynomial transform of X coordinates 75 psDPolynomial2D *y; // /< 2D polynomial transform of Y coordinates 75 76 } 76 77 psPlaneTransform; … … 90 91 typedef struct 91 92 { 92 psDPolynomial4D *x; ///< 4D polynomial transform of X coordinates93 psDPolynomial4D *y; ///< 4D polynomial transform of Y coordinates93 psDPolynomial4D *x; // /< 4D polynomial transform of X coordinates 94 psDPolynomial4D *y; // /< 4D polynomial transform of Y coordinates 94 95 } 95 96 psPlaneDistort; … … 107 108 typedef struct 108 109 { 109 double sinPhi; ///< sin of North Pole lattitude110 double cosPhi; ///< cos of North Pole lattitude111 double Xo; ///< First PT of Ares lon112 double xo; ///< First PT of Ares equiv lon110 double sinPhi; // /< sin of North Pole lattitude 111 double cosPhi; // /< cos of North Pole lattitude 112 double Xo; // /< First PT of Ares lon 113 double xo; // /< First PT of Ares equiv lon 113 114 } 114 115 psSphereTransform; … … 120 121 */ 121 122 typedef enum { 122 PS_PROJ_TAN, ///< Tangent projection123 PS_PROJ_SIN, ///< Sine projection124 PS_PROJ_AIT, ///< Aitoff projection125 PS_PROJ_PAR, ///< Par projection126 PS_PROJ_GLS, ///< GLS projection127 PS_PROJ_CAR, ///< CAR projection128 PS_PROJ_MER, ///< MER projection129 PS_PROJ_NTYPE ///< Number of types; must be last.123 PS_PROJ_TAN, // /< Tangent projection 124 PS_PROJ_SIN, // /< Sine projection 125 PS_PROJ_AIT, // /< Aitoff projection 126 PS_PROJ_PAR, // /< Par projection 127 PS_PROJ_GLS, // /< GLS projection 128 PS_PROJ_CAR, // /< CAR projection 129 PS_PROJ_MER, // /< MER projection 130 PS_PROJ_NTYPE // /< Number of types; must be last. 130 131 } psProjectionType; 131 132 … … 137 138 typedef struct 138 139 { 139 double R; ///< Coordinates of projection center140 double D; ///< Coordinates of projection center141 double Xs; ///< plate-scale in X direction142 double Ys; ///< plate-scale in Y direction143 psProjectionType type; ///< Projection type140 double R; // /< Coordinates of projection center 141 double D; // /< Coordinates of projection center 142 double Xs; // /< plate-scale in X direction 143 double Ys; // /< plate-scale in Y direction 144 psProjectionType type; // /< Projection type 144 145 } 145 146 psProjection; … … 151 152 */ 152 153 typedef enum { 153 PS_SPHERICAL, ///< offset corresponds to an angular offset154 PS_LINEAR ///< offset corresponds to a linear offset154 PS_SPHERICAL, // /< offset corresponds to an angular offset 155 PS_LINEAR // /< offset corresponds to a linear offset 155 156 } psSphereOffsetMode; 156 157 … … 161 162 */ 162 163 typedef enum { 163 PS_ARCSEC, ///< Arcseconds164 PS_ARCMIN, ///< Arcminutes165 PS_DEGREE, ///< Degrees166 PS_RADIAN ///< Radians164 PS_ARCSEC, // /< Arcseconds 165 PS_ARCMIN, // /< Arcminutes 166 PS_DEGREE, // /< Degrees 167 PS_RADIAN // /< Radians 167 168 } psSphereOffsetUnit; 168 169 … … 170 171 * 171 172 */ 172 psPlane *psPlaneTransformApply( 173 psPlane *out, ///< a psPlane to recycle. If NULL, a new one is generated. 174 const psPlaneTransform *transform, ///< the transform to apply 175 const psPlane *coords ///< the coordinate to apply the transform above. 176 ); 173 psPlane *psPlaneTransformApply(psPlane * out, // /< a psPlane to recycle. If NULL, a new one is generated. 174 const psPlaneTransform * transform, // /< the transform to apply 175 const psPlane * coords // /< the coordinate to apply the transform above. 176 ); 177 177 178 178 /** Applies the psPlaneDistort transform to a specified coordinate 179 179 * 180 180 */ 181 psPlane *psPlaneDistortApply( 182 psPlane *out, ///< a psPlane to recycle. If NULL, a new one is generated. 183 const psPlaneDistort *transform, ///< the transform to apply 184 const psPlane *coords, ///< the coordinate to apply the transform above. 185 float term3, ///< third term -- maybe magnitude 186 float term4 ///< forth term -- maybe color 187 ); 181 psPlane *psPlaneDistortApply(psPlane * out, // /< a psPlane to recycle. If NULL, a new one is generated. 182 const psPlaneDistort * transform, // /< the transform to apply 183 const psPlane * coords, // /< the coordinate to apply the transform above. 184 float term3, // /< third term -- maybe magnitude 185 float term4 // /< forth term -- maybe color 186 ); 188 187 189 188 /** Allocator for psSphereTransform 190 189 * 191 190 */ 192 psSphereTransform *psSphereTransformAlloc( 193 double NPlat, ///< north pole latitude 194 double Xo, ///< First PT of Ares lon 195 double xo ///< First PT of Ares equiv lon 196 ); 197 191 psSphereTransform *psSphereTransformAlloc(double NPlat, // /< north pole latitude 192 double Xo, // /< First PT of Ares lon 193 double xo // /< First PT of Ares equiv lon 194 ); 198 195 199 196 /** Applies the psSphereTransform transform for a specified coordinate 200 197 * 201 198 */ 202 psSphere *psSphereTransformApply( 203 psSphere *out, ///< a psSphere to recycle. If NULL, a new one is generated. 204 const psSphereTransform *transform,///< the transform to apply 205 const psSphere *coord ///< the coordinate to apply the transform above.x 206 ); 207 208 psSphereTransform *psSphereTransformICRStoEcliptic( 209 psTime time 210 ); 211 212 psSphereTransform *psSphereTransformEcliptictoICRS( 213 psTime time 214 ); 215 216 psSphereTransform *psSphereTransformICRStoGalatic( void ); 217 218 psSphereTransform *psSphereTransformGalatictoICRS( void ); 219 220 psPlane *psProject( 221 const psSphere *coord, 222 const psProjection *projection 223 ); 224 225 psSphere *psDeproject( 226 const psPlane *coord, 227 const psProjection *projection 228 ); 229 230 psSphere *psSphereGetOffset( 231 const psSphere *restrict position1, 232 const psSphere *restrict position2, 233 psSphereOffsetMode mode, 234 psSphereOffsetUnit unit 235 ); 236 237 psSphere *psSphereSetOffset( 238 const psSphere *restrict position, 239 const psSphere *restrict offset, 240 psSphereOffsetMode mode, 241 psSphereOffsetUnit unit 242 ); 199 psSphere *psSphereTransformApply(psSphere * out, // /< a psSphere to recycle. If NULL, a new one is 200 // generated. 201 const psSphereTransform * transform, // /< the transform to apply 202 const psSphere * coord // /< the coordinate to apply the transform above.x 203 ); 204 205 psSphereTransform *psSphereTransformICRStoEcliptic(psTime time); 206 207 psSphereTransform *psSphereTransformEcliptictoICRS(psTime time); 208 209 psSphereTransform *psSphereTransformICRStoGalatic(void); 210 211 psSphereTransform *psSphereTransformGalatictoICRS(void); 212 213 psPlane *psProject(const psSphere * coord, const psProjection * projection); 214 215 psSphere *psDeproject(const psPlane * coord, const psProjection * projection); 216 217 psSphere *psSphereGetOffset(const psSphere * restrict position1, 218 const psSphere * restrict position2, 219 psSphereOffsetMode mode, psSphereOffsetUnit unit); 220 221 psSphere *psSphereSetOffset(const psSphere * restrict position, 222 const psSphere * restrict offset, 223 psSphereOffsetMode mode, psSphereOffsetUnit unit); 243 224 244 225 /// @}
Note:
See TracChangeset
for help on using the changeset viewer.
