Go to the documentation of this file.
338 #ifndef WCSLIB_WCSUNITS
339 #define WCSLIB_WCSUNITS
371 #define WCSUNITS_PLANE_ANGLE 0
372 #define WCSUNITS_SOLID_ANGLE 1
373 #define WCSUNITS_CHARGE 2
374 #define WCSUNITS_MOLE 3
375 #define WCSUNITS_TEMPERATURE 4
376 #define WCSUNITS_LUMINTEN 5
377 #define WCSUNITS_MASS 6
378 #define WCSUNITS_LENGTH 7
379 #define WCSUNITS_TIME 8
380 #define WCSUNITS_BEAM 9
381 #define WCSUNITS_BIN 10
382 #define WCSUNITS_BIT 11
383 #define WCSUNITS_COUNT 12
384 #define WCSUNITS_MAGNITUDE 13
385 #define WCSUNITS_PIXEL 14
386 #define WCSUNITS_SOLRATIO 15
387 #define WCSUNITS_VOXEL 16
389 #define WCSUNITS_NTYPE 17
392 int wcsunitse(
const char have[],
const char want[],
double *scale,
393 double *offset,
double *power,
struct wcserr **err);
397 int wcsulexe(
const char unitstr[],
int *func,
double *scale,
401 int wcsunits(
const char have[],
const char want[],
double *scale,
402 double *offset,
double *power);
404 int wcsulex(
const char unitstr[],
int *func,
double *scale,
int wcsutrn(int ctrl, char unitstr[])
const char * wcsunits_errmsg[]
Status return messages.
@ UNITSERR_UNBAL_PAREN
Definition: wcsunits.h:359
int wcsulex(const char unitstr[], int *func, double *scale, double units[WCSUNITS_NTYPE])
@ UNITSERR_PARSER_ERROR
Definition: wcsunits.h:361
@ UNITSERR_UNBAL_BRACKET
Definition: wcsunits.h:358
@ UNITSERR_UNSAFE_TRANS
Definition: wcsunits.h:365
const char * wcsunits_types[]
Names of physical quantities.
#define WCSUNITS_NTYPE
Number of entries in the units array.
Definition: wcsunits.h:389
@ UNITSERR_BAD_UNIT_SPEC
Definition: wcsunits.h:362
int wcsunitse(const char have[], const char want[], double *scale, double *offset, double *power, struct wcserr **err)
FITS units specification conversion.
@ UNITSERR_FUNCTION_CONTEXT
Definition: wcsunits.h:356
@ UNITSERR_DANGLING_BINOP
Definition: wcsunits.h:353
@ UNITSERR_CONSEC_BINOPS
Definition: wcsunits.h:360
int wcsutrne(int ctrl, char unitstr[], struct wcserr **err)
Translation of non-standard unit specifications.
@ UNITSERR_BAD_EXPON_SYMBOL
Definition: wcsunits.h:357
const char * wcsunits_units[]
Names of units.
int wcsulexe(const char unitstr[], int *func, double *scale, double units[WCSUNITS_NTYPE], struct wcserr **err)
FITS units specification parser.
@ UNITSERR_BAD_NUM_MULTIPLIER
Definition: wcsunits.h:352
int wcsunits(const char have[], const char want[], double *scale, double *offset, double *power)
Error message handling.
Definition: wcserr.h:223
@ UNITSERR_SUCCESS
Definition: wcsunits.h:351
@ UNITSERR_BAD_FUNCS
Definition: wcsunits.h:364
wcsunits_errmsg_enum
Definition: wcsunits.h:350
@ UNITSERR_BAD_INITIAL_SYMBOL
Definition: wcsunits.h:354