spxprm Struct Reference

Spectral variables and their derivatives. More...

#include <spx.h>


Data Fields

double restfrq
double restwav
int wavetype
int velotype
double freq
double afrq
double ener
double wavn
double vrad
double wave
double vopt
double zopt
double awav
double velo
double beta
double dfreqafrq
double dafrqfreq
double dfreqener
double denerfreq
double dfreqwavn
double dwavnfreq
double dfreqvrad
double dvradfreq
double dfreqwave
double dwavefreq
double dfreqawav
double dawavfreq
double dfreqvelo
double dvelofreq
double dwavevopt
double dvoptwave
double dwavezopt
double dzoptwave
double dwaveawav
double dawavwave
double dwavevelo
double dvelowave
double dawavvelo
double dveloawav
double dvelobeta
double dbetavelo
struct wcserrerr
void * padding


Detailed Description

The spxprm struct contains the value of all spectral variables and their derivatives. It is used solely by specx() which constructs it from information provided via its function arguments.

This struct should be considered read-only, no members need ever be set nor should ever be modified by the user.


Field Documentation

(Returned) Rest frequency [Hz].

(Returned) Rest wavelength [m].

(Returned) True if wave types have been computed, and ...

(Returned) ... true if velocity types have been computed; types are defined below.

If one or other of spxprm::restfrq and spxprm::restwav is given (non-zero) then all spectral variables may be computed. If both are given, restfrq is used. If restfrq and restwav are both zero, only wave characteristic xor velocity type spectral variables may be computed depending on the variable given. These flags indicate what is available.

double spxprm::freq

(Returned) Frequency [Hz] (wavetype).

double spxprm::afrq

(Returned) Angular frequency [rad/s] (wavetype).

double spxprm::ener

(Returned) Photon energy [J] (wavetype).

double spxprm::wavn

(Returned) Wave number [/m] (wavetype).

double spxprm::vrad

(Returned) Radio velocity [m/s] (velotype).

double spxprm::wave

(Returned) Vacuum wavelength [m] (wavetype).

double spxprm::vopt

(Returned) Optical velocity [m/s] (velotype).

double spxprm::zopt

(Returned) Redshift [dimensionless] (velotype).

double spxprm::awav

(Returned) Air wavelength [m] (wavetype).

double spxprm::velo

(Returned) Relativistic velocity [m/s] (velotype).

double spxprm::beta

(Returned) Relativistic beta [dimensionless] (velotype).

(Returned) Derivative of frequency with respect to angular frequency [/rad] (constant, $= 1 / 2 \pi$), and ...

(Returned) ... vice versa [rad] (constant, $= 2 \pi$, always available).

(Returned) Derivative of frequency with respect to photon energy [/J/s] (constant, $= 1/h$), and ...

(Returned) ... vice versa [Js] (constant, $= h$, Planck's constant, always available).

(Returned) Derivative of frequency with respect to wave number [m/s] (constant, $= c$, the speed of light in vacuuo), and ...

(Returned) ... vice versa [s/m] (constant, $= 1/c$, always available).

(Returned) Derivative of frequency with respect to radio velocity [/m], and ...

(Returned) ... vice versa [m] (wavetype && velotype).

(Returned) Derivative of frequency with respect to vacuum wavelength [/m/s], and ...

(Returned) ... vice versa [m s] (wavetype).

(Returned) Derivative of frequency with respect to air wavelength, [/m/s], and ...

(Returned) ... vice versa [m s] (wavetype).

(Returned) Derivative of frequency with respect to relativistic velocity [/m], and ...

(Returned) ... vice versa [m] (wavetype && velotype).

(Returned) Derivative of vacuum wavelength with respect to optical velocity [s], and ...

(Returned) ... vice versa [/s] (wavetype && velotype).

(Returned) Derivative of vacuum wavelength with respect to redshift [m], and ...

(Returned) ... vice versa [/m] (wavetype && velotype).

(Returned) Derivative of vacuum wavelength with respect to air wavelength [dimensionless], and ...

(Returned) ... vice versa [dimensionless] (wavetype).

(Returned) Derivative of vacuum wavelength with respect to relativistic velocity [s], and ...

(Returned) ... vice versa [/s] (wavetype && velotype).

(Returned) Derivative of air wavelength with respect to relativistic velocity [s], and ...

(Returned) ... vice versa [/s] (wavetype && velotype).

(Returned) Derivative of relativistic velocity with respect to relativistic beta [m/s] (constant, $= c$, the speed of light in vacuu0), and ...

(Returned) ... vice versa [s/m] (constant, $= 1/c$, always available).

struct wcserr * spxprm::err [read]

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

(An unused variable inserted for alignment purposes only.)

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


Generated on Tue Jan 29 16:31:03 2013 for WCSLIB 4.17 by  doxygen 1.5.6