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