501 #define SPXLEN (sizeof(struct spxprm)/sizeof(int)) 504 int specx(
const char *type,
double spec,
double restfrq,
double restwav,
510 #define SPX_ARGS double param, int nspec, int instep, int outstep, \ 511 const double inspec[], double outspec[], int stat[] int wavnfreq(SPX_ARGS)
Convert wave number to frequency (vector).
double dawavwave
Definition: spx.h:477
double dwaveawav
Definition: spx.h:477
double dvelowave
Definition: spx.h:477
int waveawav(SPX_ARGS)
Convert vacuum wavelength to air wavelength (vector).
double dvelobeta
Definition: spx.h:477
double wave
Definition: spx.h:463
int freqawav(SPX_ARGS)
Convert frequency to air wavelength (vector).
Error message handling.
Definition: wcserr.h:225
double dzoptwave
Definition: spx.h:477
#define SPX_ARGS
For use in declaring spectral conversion function prototypes.
Definition: spx.h:510
double velo
Definition: spx.h:463
int wavevopt(SPX_ARGS)
Convert vacuum wavelength to optical velocity (vector).
double beta
Definition: spx.h:463
double dwavnfreq
Definition: spx.h:477
int enerfreq(SPX_ARGS)
Convert photon energy to frequency (vector).
double dfreqener
Definition: spx.h:477
int voptwave(SPX_ARGS)
Convert optical velocity to vacuum wavelength (vector).
double dfreqvelo
Definition: spx.h:477
int awavvelo(SPX_ARGS)
Convert air wavelength to relativistic velocity (vector).
int afrqfreq(SPX_ARGS)
Convert angular frequency to frequency (vector).
double dvelofreq
Definition: spx.h:477
double dafrqfreq
Definition: spx.h:477
double dwavevopt
Definition: spx.h:477
double dvoptwave
Definition: spx.h:477
int freqener(SPX_ARGS)
Convert frequency to photon energy (vector).
double dbetavelo
Definition: spx.h:477
int veloawav(SPX_ARGS)
Convert relativistic velocity to air wavelength (vector).
double dveloawav
Definition: spx.h:477
int wavefreq(SPX_ARGS)
Convert vacuum wavelength to frequency (vector).
int velobeta(SPX_ARGS)
Convert relativistic velocity to relativistic beta (vector).
double dfreqwave
Definition: spx.h:477
double dvradfreq
Definition: spx.h:477
int specx(const char *type, double spec, double restfrq, double restwav, struct spxprm *specs)
Spectral cross conversions (scalar).
int wavetype
Definition: spx.h:458
double dwavevelo
Definition: spx.h:477
struct wcserr * err
Definition: spx.h:493
int vradfreq(SPX_ARGS)
Convert radio velocity to frequency (vector).
double awav
Definition: spx.h:463
int spxperr(const struct spxprm *spx, const char *prefix)
Print error messages from a spxprm struct.
double dfreqvrad
Definition: spx.h:477
double ener
Definition: spx.h:463
double wavn
Definition: spx.h:463
double dawavfreq
Definition: spx.h:477
int betavelo(SPX_ARGS)
Convert relativistic beta to relativistic velocity (vector).
double dwavefreq
Definition: spx.h:477
double dawavvelo
Definition: spx.h:477
double vrad
Definition: spx.h:463
spx_errmsg
Definition: spx.h:446
double denerfreq
Definition: spx.h:477
int zoptwave(SPX_ARGS)
Convert redshift to vacuum wavelength (vector).
double afrq
Definition: spx.h:463
Spectral variables and their derivatives.
Definition: spx.h:455
int awavwave(SPX_ARGS)
Convert air wavelength to vacuum wavelength (vector).
int velowave(SPX_ARGS)
Convert relativistic velocity to vacuum wavelength (vector).
int freqvrad(SPX_ARGS)
Convert frequency to radio velocity (vector).
double zopt
Definition: spx.h:463
void * padding
Definition: spx.h:497
int velotype
Definition: spx.h:458
int freqvelo(SPX_ARGS)
Convert frequency to relativistic velocity (vector).
double vopt
Definition: spx.h:463
int freqwavn(SPX_ARGS)
Convert frequency to wave number (vector).
double restwav
Definition: spx.h:456
int wavevelo(SPX_ARGS)
Conversions between wavelength and velocity types (vector).
double dfreqawav
Definition: spx.h:477
double restfrq
Definition: spx.h:456
int freqafrq(SPX_ARGS)
Convert frequency to angular frequency (vector).
double dwavezopt
Definition: spx.h:477
int velofreq(SPX_ARGS)
Convert relativistic velocity to frequency (vector).
int awavfreq(SPX_ARGS)
Convert air wavelength to frequency (vector).
double dfreqwavn
Definition: spx.h:477
double dfreqafrq
Definition: spx.h:477
int freqwave(SPX_ARGS)
Convert frequency to vacuum wavelength (vector).
double freq
Definition: spx.h:463
int wavezopt(SPX_ARGS)
Convert vacuum wavelength to redshift (vector).