WCSLIB 8.4
|
Spectral transformation parameters. More...
#include <spc.h>
Data Fields | |
int | flag |
char | type [8] |
char | code [4] |
double | crval |
double | restfrq |
double | restwav |
double | pv [7] |
double | w [6] |
int | isGrism |
int | padding1 |
struct wcserr * | err |
void * | padding2 |
int(* | spxX2P )(SPX_ARGS) |
int(* | spxP2S )(SPX_ARGS) |
int(* | spxS2P )(SPX_ARGS) |
int(* | spxP2X )(SPX_ARGS) |
Spectral transformation parameters.
The spcprm struct contains information required to transform spectral 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 while others are for internal use only.
int spcprm::flag |
(Given and returned) This flag must be set to zero (or 1, see spcset()) whenever any of the following spcprm members are set or changed:
This signals the initialization routine, spcset(), to recompute the returned members of the spcprm struct. spcset() will reset flag to indicate that this has been done.
char spcprm::type[8] |
(Given) Four-letter spectral variable type, e.g "ZOPT" for CTYPEia
= 'ZOPT-F2W'
. (Declared as char[8] for alignment reasons.)
char spcprm::code[4] |
(Given) Three-letter spectral algorithm code, e.g "F2W" for CTYPEia
= 'ZOPT-F2W'
.
double spcprm::crval |
(Given) Reference value (CRVALia
), SI units.
double spcprm::restfrq |
(Given) The rest frequency [Hz], and ...
double spcprm::restwav |
(Given) ... the rest wavelength in vacuo [m], only one of which need be given, the other should be set to zero. Neither are required if the
double spcprm::pv[7] |
(Given) Grism parameters for 'GRI
' and 'GRA
' algorithm codes:
The remaining members of the spcprm struct are maintained by spcset() and must not be modified elsewhere:
double spcprm::w[6] |
(Returned) Intermediate values:
The remainder are grism intermediates.
int spcprm::isGrism |
(Returned) Grism coordinates?
int spcprm::padding1 |
(An unused variable inserted for alignment purposes only.)
struct wcserr* spcprm::err |
(Returned) If enabled, when an error status is returned, this struct contains detailed information about the error, see wcserr_enable().
void* spcprm::padding2 |
(An unused variable inserted for alignment purposes only.)
int(* spcprm::spxX2P) (SPX_ARGS) |
(For internal use only) The first and ...
int(* spcprm::spxP2S) (SPX_ARGS) |
(For internal use only) ... the second of the pointers to the transformation functions in the two-step algorithm chain
int(* spcprm::spxS2P) (SPX_ARGS) |
(For internal use only) The first and ...