883#define SPCLEN (sizeof(struct spcprm)/sizeof(int)) 
  899           const double x[], 
double spec[], 
int stat[]);
 
  902           const double spec[], 
double x[], 
int stat[]);
 
  904int spctype(
const char ctype[9], 
char stype[], 
char scode[], 
char sname[],
 
  905            char units[], 
char *ptype, 
char *xtype, 
int *restreq,
 
  908int spcspxe(
const char ctypeS[9], 
double crvalS, 
double restfrq,
 
  909            double restwav, 
char *ptype, 
char *xtype, 
int *restreq,
 
  910            double *crvalX, 
double *dXdS, 
struct wcserr **err);
 
  912int spcxpse(
const char ctypeS[9], 
double crvalX, 
double restfrq,
 
  913            double restwav, 
char *ptype, 
char *xtype, 
int *restreq,
 
  914            double *crvalS, 
double *dSdX, 
struct wcserr **err);
 
  916int spctrne(
const char ctypeS1[9], 
double crvalS1, 
double cdeltS1,
 
  917            double restfrq, 
double restwav, 
char ctypeS2[9], 
double *crvalS2,
 
  918            double *cdeltS2, 
struct wcserr **err);
 
  920int spcaips(
const char ctypeA[9], 
int velref, 
char ctype[9], 
char specsys[9]);
 
  924#define spcini_errmsg spc_errmsg 
  925#define spcprt_errmsg spc_errmsg 
  926#define spcset_errmsg spc_errmsg 
  927#define spcx2s_errmsg spc_errmsg 
  928#define spcs2x_errmsg spc_errmsg 
  930int spctyp(
const char ctype[9], 
char stype[], 
char scode[], 
char sname[],
 
  931           char units[], 
char *ptype, 
char *xtype, 
int *restreq);
 
  932int spcspx(
const char ctypeS[9], 
double crvalS, 
double restfrq,
 
  933           double restwav, 
char *ptype, 
char *xtype, 
int *restreq,
 
  934           double *crvalX, 
double *dXdS);
 
  935int spcxps(
const char ctypeS[9], 
double crvalX, 
double restfrq,
 
  936           double restwav, 
char *ptype, 
char *xtype, 
int *restreq,
 
  937           double *crvalS, 
double *dSdX);
 
  938int spctrn(
const char ctypeS1[9], 
double crvalS1, 
double cdeltS1,
 
  939           double restfrq, 
double restwav, 
char ctypeS2[9], 
double *crvalS2,
 
int spcspxe(const char ctypeS[9], double crvalS, double restfrq, double restwav, char *ptype, char *xtype, int *restreq, double *crvalX, double *dXdS, struct wcserr **err)
Spectral keyword analysis.
int spcsize(const struct spcprm *spc, int sizes[2])
Compute the size of a spcprm struct.
int spcfree(struct spcprm *spc)
Destructor for the spcprm struct.
int spcini(struct spcprm *spc)
Default constructor for the spcprm struct.
int spcperr(const struct spcprm *spc, const char *prefix)
Print error messages from a spcprm struct.
int spctrn(const char ctypeS1[9], double crvalS1, double cdeltS1, double restfrq, double restwav, char ctypeS2[9], double *crvalS2, double *cdeltS2)
spc_errmsg_enum
Definition: spc.h:821
@ SPCERR_BAD_SPEC_PARAMS
Definition: spc.h:825
@ SPCERR_SUCCESS
Definition: spc.h:823
@ SPCERR_BAD_X
Definition: spc.h:826
@ SPCERR_NULL_POINTER
Definition: spc.h:824
@ SPCERR_BAD_SPEC
Definition: spc.h:828
@ SPCERR_NO_CHANGE
Definition: spc.h:822
int spctrne(const char ctypeS1[9], double crvalS1, double cdeltS1, double restfrq, double restwav, char ctypeS2[9], double *crvalS2, double *cdeltS2, struct wcserr **err)
Spectral keyword translation.
int spcspx(const char ctypeS[9], double crvalS, double restfrq, double restwav, char *ptype, char *xtype, int *restreq, double *crvalX, double *dXdS)
int spcprt(const struct spcprm *spc)
Print routine for the spcprm struct.
const char * spc_errmsg[]
Status return messages.
int spcxps(const char ctypeS[9], double crvalX, double restfrq, double restwav, char *ptype, char *xtype, int *restreq, double *crvalS, double *dSdX)
int spctyp(const char ctype[9], char stype[], char scode[], char sname[], char units[], char *ptype, char *xtype, int *restreq)
int spcaips(const char ctypeA[9], int velref, char ctype[9], char specsys[9])
Translate AIPS-convention spectral keywords.
int spcs2x(struct spcprm *spc, int nspec, int sspec, int sx, const double spec[], double x[], int stat[])
Transform spectral coordinates.
int spcx2s(struct spcprm *spc, int nx, int sx, int sspec, const double x[], double spec[], int stat[])
Transform to spectral coordinates.
int spctype(const char ctype[9], char stype[], char scode[], char sname[], char units[], char *ptype, char *xtype, int *restreq, struct wcserr **err)
Spectral CTYPEia keyword analysis.
int spcset(struct spcprm *spc)
Setup routine for the spcprm struct.
int spcxpse(const char ctypeS[9], double crvalX, double restfrq, double restwav, char *ptype, char *xtype, int *restreq, double *crvalS, double *dSdX, struct wcserr **err)
Spectral keyword synthesis.
#define SPX_ARGS
For use in declaring spectral conversion function prototypes.
Definition: spx.h:540
Spectral transformation parameters.
Definition: spc.h:832
int(* spxX2P)(SPX_ARGS)
Definition: spc.h:873
double crval
Definition: spc.h:842
char type[8]
Definition: spc.h:839
double restwav
Definition: spc.h:844
char code[4]
Definition: spc.h:840
int(* spxP2X)(SPX_ARGS)
Definition: spc.h:878
struct wcserr * err
Definition: spc.h:868
double restfrq
Definition: spc.h:843
int padding1
Definition: spc.h:864
double w[6]
Definition: spc.h:857
void * padding2
Definition: spc.h:872
int(* spxP2S)(SPX_ARGS)
Definition: spc.h:874
double pv[7]
Definition: spc.h:846
int isGrism
Definition: spc.h:863
int(* spxS2P)(SPX_ARGS)
Definition: spc.h:877
int flag
Definition: spc.h:835
Error message handling.
Definition: wcserr.h:243