Files | |
| file | psCoord.h |
| Contains basic coordinate transformation definitions and operations. | |
| file | psSphereOps.h |
| Contains spherical rotation and offset operations. | |
Data Structures | |
| struct | psPlane |
| Euclidiean Coordinate System. More... | |
| struct | psSphere |
| Angular Coordinate System. More... | |
| struct | psCube |
| 3-Dimensional Euclidean Coordinate System More... | |
| struct | psPlaneTransform |
| 2D Polynomial Transform More... | |
| struct | psPlaneDistort |
| 4D Polynomial Transform More... | |
| struct | psProjection |
| Parameter set for projection/deprojection. More... | |
| struct | psSphereRot |
| Spherical Rotation Definition. More... | |
Enumerations | |
| enum | psProjectionType { PS_PROJ_TAN, PS_PROJ_SIN, PS_PROJ_AIT, PS_PROJ_PAR, PS_PROJ_NTYPE } |
| Projection type for projection/deprojection. More... | |
| enum | psSphereOffsetMode { PS_SPHERICAL, PS_LINEAR } |
| Mode for Offset calculation between two sky positions. More... | |
| enum | psSphereOffsetUnit { PS_ARCSEC, PS_ARCMIN, PS_DEGREE, PS_RADIAN } |
| The units of the offset. More... | |
Functions | |
| psPlane * | psPlaneAlloc (void) |
| Allocates a psPlane. | |
| psSphere * | psSphereAlloc (void) |
| Allocates a psSphere. | |
| psCube * | psCubeAlloc (void) |
| Allocates a psCube. | |
| psPlaneTransform * | psPlaneTransformAlloc (int n1, int n2) |
| Allocates a psPlaneTransform transform. | |
| psPlane * | psPlaneTransformApply (psPlane *out, const psPlaneTransform *transform, const psPlane *coords) |
| Applies the psPlaneTransform transform to a specified coordinate. | |
| psPlaneDistort * | psPlaneDistortAlloc (int n1, int n2, int n3, int n4) |
| Allocates a psPlaneDistort transform. | |
| psPlane * | psPlaneDistortApply (psPlane *out, const psPlaneDistort *distort, const psPlane *coords, float mag, float color) |
| Applies the psPlaneDistort transform to a specified coordinate. | |
| psProjection * | psProjectionAlloc (double R, double D, double Xs, double Ys, psProjectionType type) |
| Allocates memory for a psProjection structure. | |
| bool | psMemCheckPlane (psPtr ptr) |
| Checks the type of a particular pointer. | |
| bool | psMemCheckSphere (psPtr ptr) |
| Checks the type of a particular pointer. | |
| bool | psMemCheckCube (psPtr ptr) |
| Checks the type of a particular pointer. | |
| bool | psMemCheckPlaneTransform (psPtr ptr) |
| Checks the type of a particular pointer. | |
| bool | psMemCheckPlaneDistort (psPtr ptr) |
| Checks the type of a particular pointer. | |
| bool | psMemCheckProjection (psPtr ptr) |
| Checks the type of a particular pointer. | |
| psPlane * | psProject (const psSphere *coord, const psProjection *projection) |
| Projects a spherical coordinate to a linear coordinate system. | |
| psSphere * | psDeproject (const psPlane *coord, const psProjection *projection) |
| Reverse projection of a linear coordinate to a spherical coordinate system. | |
| psPlaneTransform * | p_psPlaneTransformLinearInvert (psPlaneTransform *transform) |
| Takes a given transform and inverts it linearly if possible. | |
| psS32 | p_psIsProjectionLinear (psPlaneTransform *transform) |
| Takes a transform and tests whether or not it is a linear projection. | |
| psPlaneTransform * | psPlaneTransformInvert (psPlaneTransform *out, const psPlaneTransform *in, psRegion region, int nSamples) |
| inverts a given transformation. | |
| psPlaneTransform * | psPlaneTransformCombine (psPlaneTransform *out, const psPlaneTransform *trans1, const psPlaneTransform *trans2, psRegion region, int nSamples) |
| Creates a single transformation that has the effect of performing trans1 followed by trans2. | |
| bool | psPlaneTransformFit (psPlaneTransform *trans, const psArray *source, const psArray *dest, int nRejIter, float sigmaClip) |
| takes two arrays containing matched coordinates and returns the best-fitting transformation. | |
| psSphere * | psCubeToSphere (const psCube *cube) |
| Converts from a 3-dimensional coordinate system to an angular coordinate system. | |
| psCube * | psSphereToCube (const psSphere *sphere) |
| Converts from an angular coordinate system to a 3-dimensional coordinate system. | |
| psPlane * | psPlaneTransformDeriv (psPlane *out, const psPlaneTransform *transformation, const psPlane *coord) |
| Calculates the derivative of the specified psPlaneTransform with respect to x and y. | |
| psSphereRot * | psSphereRotAlloc (double alphaP, double deltaP, double phiP) |
| Allocator for psSphereRot. | |
| bool | psMemCheckSphereRot (psPtr ptr) |
| Checks the type of a particular pointer. | |
| psSphereRot * | psSphereRotQuat (double q0, double q1, double q2, double q3) |
| Allocator for psSphereRot given quaternions. | |
| psSphere * | psSphereRotApply (psSphere *out, const psSphereRot *transform, const psSphere *coord) |
| Applies the psSphereTransform transform for a specified coordinate. | |
| psSphereRot * | psSphereRotCombine (psSphereRot *out, const psSphereRot *rot1, const psSphereRot *rot2) |
| Combines two rotations. | |
| psSphereRot * | psSphereRotInvert (psSphereRot *rot) |
| Inverts the rotation. | |
| psSphere * | psSphereGetOffset (const psSphere *position1, const psSphere *position2, psSphereOffsetMode mode, psSphereOffsetUnit unit) |
| Determines the offset (RA,Dec) on the sky between two positions. | |
| psSphere * | psSphereSetOffset (const psSphere *position, const psSphere *offset, psSphereOffsetMode mode, psSphereOffsetUnit unit) |
| Applies the given offset to a coordinate. | |
| psSphereRot * | psSphereRotICRSToEcliptic (const psTime *time) |
| Creates the appropriate transform for converting from ICRS to Ecliptic coordinate systems. | |
| psSphereRot * | psSphereRotEclipticToICRS (const psTime *time) |
| Creates the appropriate transform for converting from Ecliptic to ICRS coordinate systems. | |
| psSphereRot * | psSphereRotICRSToGalactic (void) |
| Creates the appropriate transform for converting from ICRS to Galactic coordinate systems. | |
| psSphereRot * | psSphereRotGalacticToICRS (void) |
| Creates the appropriate transform for converting from Galactic to ICRS coordinate systems. | |
| psSphere * | psSpherePrecess (psSphere *coords, const psTime *fromTime, const psTime *toTime) |
| Generates the complete spherical rotation to account for precession between two times. | |
|
|
Projection type for projection/deprojection.
|
|
|
Mode for Offset calculation between two sky positions.
Definition at line 46 of file psSphereOps.h. |
|
|
The units of the offset.
Definition at line 56 of file psSphereOps.h. |
|
|
Takes a transform and tests whether or not it is a linear projection.
|
|
|
Takes a given transform and inverts it linearly if possible.
|
|
|
Allocates a psCube.
|
|
|
Converts from a 3-dimensional coordinate system to an angular coordinate system.
|
|
||||||||||||
|
Reverse projection of a linear coordinate to a spherical coordinate system.
|
|
|
Checks the type of a particular pointer. Uses the appropriate deallocation function in psMemBlock to check the ptr datatype.
|
|
|
Checks the type of a particular pointer. Uses the appropriate deallocation function in psMemBlock to check the ptr datatype.
|
|
|
Checks the type of a particular pointer. Uses the appropriate deallocation function in psMemBlock to check the ptr datatype.
|
|
|
Checks the type of a particular pointer. Uses the appropriate deallocation function in psMemBlock to check the ptr datatype.
|
|
|
Checks the type of a particular pointer. Uses the appropriate deallocation function in psMemBlock to check the ptr datatype.
|
|
|
Checks the type of a particular pointer. Uses the appropriate deallocation function in psMemBlock to check the ptr datatype.
|
|
|
Checks the type of a particular pointer. Uses the appropriate deallocation function in psMemBlock to check the ptr datatype.
|
|
|
Allocates a psPlane.
|
|
||||||||||||||||||||
|
Allocates a psPlaneDistort transform.
|
|
||||||||||||||||||||||||
|
Applies the psPlaneDistort transform to a specified coordinate.
|
|
||||||||||||
|
Allocates a psPlaneTransform transform.
|
|
||||||||||||||||
|
Applies the psPlaneTransform transform to a specified coordinate.
|
|
||||||||||||||||||||||||
|
Creates a single transformation that has the effect of performing trans1 followed by trans2. psPlaneTransformCombine takes two transformations (trans1 and trans2) and returns a single transformation that has the effect of performing trans1 followed by trans2. In the event that the input transformation is linear, an exact solution may be calculated; otherwise nSamples samples in each axis, covering the region specified by region shall be used as a grid to fit the best inverse transformation. The function shall return NULL if it was unable to generate the transformation; otherwise it shall return the transformation.
|
|
||||||||||||||||
|
Calculates the derivative of the specified psPlaneTransform with respect to x and y.
|
|
||||||||||||||||||||||||
|
takes two arrays containing matched coordinates and returns the best-fitting transformation. psPlaneTransformFit takes two arrays containing matched coordinates (i.e., coordinates in the source array correspond to the coordinates in the dest array) and returns the best-fitting transformation. The source and dest will contain psCoords. In the event that the number of coordinates in each is not identical, the function shall generate a warning, and extra coordinates in the longer of the two shall be ignored. The trans transform may not be NULL, since it specifies the desired order, polynomial type and any polynomial terms to mask. nRejIter rejection iterations shall be performed, wherein coordinates lying more than sigmaClip standard deviations from the fit shall be rejected.
|
|
||||||||||||||||||||
|
inverts a given transformation. It may assume that the input transformation is one-to-one, and that the inverse transformation may be specified through using polynomials of the same type and order as the forward transformation. In the event that the input transformation is linear, an exact solution may be calculated; otherwise nSamples samples in each axis, covering the region specified by region shall be used as a grid to fit the best inverse transformation. The function shall return NULL if it was unable to generate the inverse transformation; otherwise it shall return the inverse transformation. In the event that out is NULL, a new psPlaneTransform shall be allocated and returned.
|
|
||||||||||||
|
Projects a spherical coordinate to a linear coordinate system.
|
|
||||||||||||||||||||||||
|
Allocates memory for a psProjection structure.
|
|
|
Allocates a psSphere.
|
|
||||||||||||||||||||
|
Determines the offset (RA,Dec) on the sky between two positions. Both an offset mode and an offset unit may be defined. The mode may be either PS_SPHERICAL, in which case the specified offset corresponds to an offset in angles, or it may be PS_LINEAR, in which case the offset corresponds to a linear offset in a local projection. The offset unit may be in one of PS_ARCSEC, PS_ARCMIN, PS_DEGREE, and PS_RADIAN, which specifies the units of the offset only.
|
|
||||||||||||||||
|
Generates the complete spherical rotation to account for precession between two times. The equinoxes shall be Julian equinoxes.
|
|
||||||||||||||||
|
Allocator for psSphereRot.
|
|
||||||||||||||||
|
Applies the psSphereTransform transform for a specified coordinate.
|
|
||||||||||||||||
|
Combines two rotations. Combines two rotations to produce a single rotation which is the equivalent of applying the first rotation and then the second. The output rotation may be supplied, or will be allocated if NULL.
|
|
|
Creates the appropriate transform for converting from Ecliptic to ICRS coordinate systems.
|
|
|
Creates the appropriate transform for converting from Galactic to ICRS coordinate systems.
|
|
|
Creates the appropriate transform for converting from ICRS to Ecliptic coordinate systems.
|
|
|
Creates the appropriate transform for converting from ICRS to Galactic coordinate systems.
|
|
|
Inverts the rotation.
|
|
||||||||||||||||||||
|
Allocator for psSphereRot given quaternions. Normalizes a given quaternion and returns the cooresponding newly allocated psSphereRot object.
|
|
||||||||||||||||||||
|
Applies the given offset to a coordinate. Both an offset mode and an offset unit may be defined. The mode may be either PS_SPHERICAL, in which case the specified offset corresponds to an offset in angles, or it may be PS_LINEAR, in which case the offset corresponds to a linear offset in a local projection. The offset unit may be in one of PS_ARCSEC, PS_ARCMIN, PS_DEGREE, and PS_RADIAN, which specifies the units of the offset only.
|
|
|
Converts from an angular coordinate system to a 3-dimensional coordinate system.
|
1.4.2