WCSLIB 8.2.2
Loading...
Searching...
No Matches
Data Fields
celprm Struct Reference

Celestial transformation parameters. More...

#include <cel.h>

Data Fields

int flag
 
int offset
 
double phi0
 
double theta0
 
double ref [4]
 
struct prjprm prj
 
double euler [5]
 
int latpreq
 
int isolat
 
struct wcserrerr
 
void * padding
 

Detailed Description

Celestial transformation parameters.

The celprm struct contains information required to transform celestial coordinates. It consists of certain members that must be set by the user (given) and others that are set by the WCSLIB routines (returned). Some of the latter are supplied for informational purposes and others are for internal use only.

Returned celprm struct members must not be modified by the user.

Field Documentation

◆ flag

int celprm::flag

(Given and returned) This flag must be set to zero whenever any of the following celprm struct members are set or changed:

This signals the initialization routine, celset(), to recompute the returned members of the celprm struct. celset() will reset flag to indicate that this has been done.

◆ offset

int celprm::offset

(Given) If true (non-zero), an offset will be applied to $(x,y)$ to force $(x,y)$ = (0,0) at the fiducial point, ( $\phi_0$, $\theta_0$). Default is 0 (false).

◆ phi0

double celprm::phi0

(Given) The native longitude, $\phi_0$ [deg], and ...

◆ theta0

double celprm::theta0

(Given) ... the native latitude, $\theta_0$ [deg], of the fiducial point, i.e. the point whose celestial coordinates are given in celprm::ref[1:2]. If undefined (set to a magic value by prjini()) the initialization routine, celset(), will set this to a projection-specific default.

◆ ref

double celprm::ref

(Given) The first pair of values should be set to the celestial longitude and latitude of the fiducial point [deg] - typically right ascension and declination. These are given by the CRVALia keywords in FITS.

(Given and returned) The second pair of values are the native longitude, $\phi_{\mathrm p}$ [deg], and latitude, $\theta_{\mathrm p}$ [deg], of the celestial pole (the latter is the same as the celestial latitude of the native pole, $\delta_{\mathrm p}$) and these are given by the FITS keywords LONPOLEa and LATPOLEa (or by PVi_2a and PVi_3a attached to the longitude axis which take precedence if defined).

LONPOLEa defaults to $\phi_0$ (see above) if the celestial latitude of the fiducial point of the projection is greater than or equal to the native latitude, otherwise $\phi_0$ + 180 [deg]. (This is the condition for the celestial latitude to increase in the same direction as the native latitude at the fiducial point.) ref[2] may be set to UNDEFINED (from wcsmath.h) or 999.0 to indicate that the correct default should be substituted.

$\theta_{\mathrm p}$, the native latitude of the celestial pole (or equally the celestial latitude of the native pole, $\delta_{\mathrm p}$) is often determined uniquely by CRVALia and LONPOLEa in which case LATPOLEa is ignored. However, in some circumstances there are two valid solutions for $\theta_{\mathrm p}$ and LATPOLEa is used to choose between them. LATPOLEa is set in ref[3] and the solution closest to this value is used to reset ref[3]. It is therefore legitimate, for example, to set ref[3] to +90.0 to choose the more northerly solution - the default if the LATPOLEa keyword is omitted from the FITS header. For the special case where the fiducial point of the projection is at native latitude zero, its celestial latitude is zero, and LONPOLEa = $\pm$ 90.0 then the celestial latitude of the native pole is not determined by the first three reference values and LATPOLEa specifies it completely.

The returned value, celprm::latpreq, specifies how LATPOLEa was actually used.

◆ prj

struct prjprm celprm::prj

(Given and returned) Projection parameters described in the prologue to prj.h.

◆ euler

double celprm::euler

(Returned) Euler angles and associated intermediaries derived from the coordinate reference values. The first three values are the $Z$-, $X$-, and $Z'$-Euler angles [deg], and the remaining two are the cosine and sine of the $X$-Euler angle.

◆ latpreq

int celprm::latpreq

(Returned) For informational purposes, this indicates how the LATPOLEa keyword was used

  • 0: Not required, $\theta_{\mathrm p}$ (== $\delta_{\mathrm p}$) was determined uniquely by the CRVALia and LONPOLEa keywords.
  • 1: Required to select between two valid solutions of $\theta_{\mathrm p}$.
  • 2: $\theta_{\mathrm p}$ was specified solely by LATPOLEa.

◆ isolat

int celprm::isolat

(Returned) True if the spherical rotation preserves the magnitude of the latitude, which occurs iff the axes of the native and celestial coordinates are coincident. It signals an opportunity to cache intermediate calculations common to all elements in a vector computation.

◆ err

struct wcserr * celprm::err

(Returned) If enabled, when an error status is returned, this struct contains detailed information about the error, see wcserr_enable().

◆ padding

void * celprm::padding

(An unused variable inserted for alignment purposes only.)

Global variable: const char *cel_errmsg[] - Status return messages Status messages to match the status value returned from each function.