531#define SPXLEN (sizeof(struct spxprm)/sizeof(int))
534int specx(
const char *type,
double spec,
double restfrq,
double restwav,
540#define SPX_ARGS double param, int nspec, int instep, int outstep, \
541 const double inspec[], double outspec[], int stat[]
int wavevelo(SPX_ARGS)
Conversions between wavelength and velocity types (vector).
int betavelo(SPX_ARGS)
Convert relativistic beta to relativistic velocity (vector).
int awavfreq(SPX_ARGS)
Convert air wavelength to frequency (vector).
int specx(const char *type, double spec, double restfrq, double restwav, struct spxprm *specs)
Spectral cross conversions (scalar).
int freqawav(SPX_ARGS)
Convert frequency to air wavelength (vector).
int awavwave(SPX_ARGS)
Convert air wavelength to vacuum wavelength (vector).
int spxperr(const struct spxprm *spx, const char *prefix)
Print error messages from a spxprm struct.
int freqwave(SPX_ARGS)
Convert frequency to vacuum wavelength (vector).
int wavezopt(SPX_ARGS)
Convert vacuum wavelength to redshift (vector).
int veloawav(SPX_ARGS)
Convert relativistic velocity to air wavelength (vector).
int waveawav(SPX_ARGS)
Convert vacuum wavelength to air wavelength (vector).
int freqener(SPX_ARGS)
Convert frequency to photon energy (vector).
int wavnfreq(SPX_ARGS)
Convert wave number to frequency (vector).
int wavevopt(SPX_ARGS)
Convert vacuum wavelength to optical velocity (vector).
int wavefreq(SPX_ARGS)
Convert vacuum wavelength to frequency (vector).
int freqafrq(SPX_ARGS)
Convert frequency to angular frequency (vector).
int vradfreq(SPX_ARGS)
Convert radio velocity to frequency (vector).
#define SPX_ARGS
For use in declaring spectral conversion function prototypes.
Definition spx.h:540
int enerfreq(SPX_ARGS)
Convert photon energy to frequency (vector).
int velobeta(SPX_ARGS)
Convert relativistic velocity to relativistic beta (vector).
int velofreq(SPX_ARGS)
Convert relativistic velocity to frequency (vector).
int freqwavn(SPX_ARGS)
Convert frequency to wave number (vector).
int freqvelo(SPX_ARGS)
Convert frequency to relativistic velocity (vector).
int voptwave(SPX_ARGS)
Convert optical velocity to vacuum wavelength (vector).
int velowave(SPX_ARGS)
Convert relativistic velocity to vacuum wavelength (vector).
int afrqfreq(SPX_ARGS)
Convert angular frequency to frequency (vector).
spx_errmsg
Definition spx.h:476
@ SPXERR_BAD_SPEC_PARAMS
Definition spx.h:479
@ SPXERR_SUCCESS
Definition spx.h:477
@ SPXERR_BAD_SPEC_VAR
Definition spx.h:480
@ SPXERR_NULL_POINTER
Definition spx.h:478
@ SPXERR_BAD_INSPEC_COORD
Definition spx.h:481
int zoptwave(SPX_ARGS)
Convert redshift to vacuum wavelength (vector).
int freqvrad(SPX_ARGS)
Convert frequency to radio velocity (vector).
int awavvelo(SPX_ARGS)
Convert air wavelength to relativistic velocity (vector).
Spectral variables and their derivatives.
Definition spx.h:485
double dvelobeta
Definition spx.h:519
double vopt
Definition spx.h:499
double dvradfreq
Definition spx.h:510
double dwavezopt
Definition spx.h:515
double dfreqvelo
Definition spx.h:513
int wavetype
Definition spx.h:488
double denerfreq
Definition spx.h:508
double dwavevopt
Definition spx.h:514
double dwavnfreq
Definition spx.h:509
double vrad
Definition spx.h:497
double velo
Definition spx.h:502
double restfrq
Definition spx.h:486
double dveloawav
Definition spx.h:518
double afrq
Definition spx.h:494
double dvelofreq
Definition spx.h:513
double dafrqfreq
Definition spx.h:507
double beta
Definition spx.h:503
double dvoptwave
Definition spx.h:514
double dwavevelo
Definition spx.h:517
double dawavwave
Definition spx.h:516
double wave
Definition spx.h:498
double dawavvelo
Definition spx.h:518
double dzoptwave
Definition spx.h:515
double dwavefreq
Definition spx.h:511
void * padding
Definition spx.h:527
double zopt
Definition spx.h:500
double dfreqvrad
Definition spx.h:510
double dfreqwave
Definition spx.h:511
double wavn
Definition spx.h:496
double dfreqener
Definition spx.h:508
double dfreqawav
Definition spx.h:512
double dfreqafrq
Definition spx.h:507
struct wcserr * err
Definition spx.h:523
double ener
Definition spx.h:495
double dfreqwavn
Definition spx.h:509
double dawavfreq
Definition spx.h:512
double dbetavelo
Definition spx.h:519
double dvelowave
Definition spx.h:517
double restwav
Definition spx.h:486
int velotype
Definition spx.h:488
double awav
Definition spx.h:501
double dwaveawav
Definition spx.h:516
double freq
Definition spx.h:493
Error message handling.
Definition wcserr.h:243