1383 #define WCSSUB_LONGITUDE 0x1001
1384 #define WCSSUB_LATITUDE 0x1002
1385 #define WCSSUB_CUBEFACE 0x1004
1386 #define WCSSUB_CELESTIAL 0x1007
1387 #define WCSSUB_SPECTRAL 0x1008
1388 #define WCSSUB_STOKES 0x1010
1391 #define WCSCOMPARE_ANCILLARY 0x0001
1392 #define WCSCOMPARE_TILING 0x0002
1393 #define WCSCOMPARE_CRPIX 0x0004
1442 #define wtbarr wtbarr_s
1564 #define WCSLEN (sizeof(struct wcsprm)/sizeof(int))
1573 int wcssub(
int alloc,
const struct wcsprm *wcssrc,
int *nsub,
int axes[],
1577 const struct wcsprm *wcs2,
int *equal);
1589 int wcsp2s(
struct wcsprm *wcs,
int ncoord,
int nelem,
const double pixcrd[],
1590 double imgcrd[],
double phi[],
double theta[],
double world[],
1593 int wcss2p(
struct wcsprm *wcs,
int ncoord,
int nelem,
const double world[],
1594 double phi[],
double theta[],
double imgcrd[],
double pixcrd[],
1597 int wcsmix(
struct wcsprm *wcs,
int mixpix,
int mixcel,
const double vspan[],
1598 double vstep,
int viter,
double world[],
double phi[],
1599 double theta[],
double imgcrd[],
double pixcrd[]);
1604 #define wcscopy(alloc, wcssrc, wcsdst) wcssub(alloc, wcssrc, 0x0, 0x0, wcsdst)
1608 #define wcsini_errmsg wcs_errmsg
1609 #define wcssub_errmsg wcs_errmsg
1610 #define wcscopy_errmsg wcs_errmsg
1611 #define wcsfree_errmsg wcs_errmsg
1612 #define wcsprt_errmsg wcs_errmsg
1613 #define wcsset_errmsg wcs_errmsg
1614 #define wcsp2s_errmsg wcs_errmsg
1615 #define wcss2p_errmsg wcs_errmsg
1616 #define wcsmix_errmsg wcs_errmsg
char dateobs[72]
Definition: wcs.h:1509
int wcsfree(struct wcsprm *wcs)
Destructor for the wcsprm struct.
char radesys[72]
Definition: wcs.h:1514
struct wtbarr * m_wtb
Definition: wcs.h:1560
int wcssub(int alloc, const struct wcsprm *wcssrc, int *nsub, int axes[], struct wcsprm *wcsdst)
Subimage extraction routine for the wcsprm struct.
int kind
Definition: getwcstab.h:169
double * m_crval
Definition: wcs.h:1551
double * cd
Definition: wcs.h:1492
int * m_colax
Definition: wcs.h:1556
struct pscard * ps
Definition: wcs.h:1488
double * cdelt
Definition: wcs.h:1470
int i
Definition: wcs.h:1426
int npv
Definition: wcs.h:1482
struct tabprm * tab
Definition: wcs.h:1527
char ttype[72]
Definition: getwcstab.h:173
struct wcserr * err
Definition: wcs.h:1545
int lng
Definition: wcs.h:1533
char(* m_cunit)[72]
Definition: wcs.h:1552
int npsmax
Definition: wcs.h:1487
char alt[4]
Definition: wcs.h:1501
char(* m_cname)[72]
Definition: wcs.h:1557
Error message handling.
Definition: wcserr.h:221
int i
Definition: getwcstab.h:167
struct spcprm spc
Definition: wcs.h:1541
int cubeface
Definition: wcs.h:1535
int flag
Definition: wcs.h:1463
double equinox
Definition: wcs.h:1510
int wcss2p(struct wcsprm *wcs, int ncoord, int nelem, const double world[], double phi[], double theta[], double imgcrd[], double pixcrd[], int stat[])
World-to-pixel transformation.
int m
Definition: wcs.h:1427
int wcsbchk(struct wcsprm *wcs, int bounds)
Enable/disable bounds checking.
double obsgeo[3]
Definition: wcs.h:1513
double lonpole
Definition: wcs.h:1476
int nps
Definition: wcs.h:1486
struct pvcard * pv
Definition: wcs.h:1484
int m
Definition: getwcstab.h:168
Spectral transformation parameters.
Definition: spc.h:774
struct tabprm * m_tab
Definition: wcs.h:1559
Celestial transformation parameters.
Definition: cel.h:371
Linear transformation parameters.
Definition: lin.h:381
wcs_errmsg_enum
Definition: wcs.h:1398
struct pscard * m_ps
Definition: wcs.h:1554
int wcsprt(const struct wcsprm *wcs)
Print routine for the wcsprm struct.
char(* cunit)[72]
Definition: wcs.h:1473
int ntab
Definition: wcs.h:1525
double * crota
Definition: wcs.h:1493
int wcscompare(int cmp, double tol, const struct wcsprm *wcs1, const struct wcsprm *wcs2, int *equal)
Compare two wcsprm structs for equality.
int m_naxis
Definition: wcs.h:1550
double * m_cd
Definition: wcs.h:1555
long row
Definition: getwcstab.h:174
double restfrq
Definition: wcs.h:1479
char specsys[72]
Definition: wcs.h:1515
int * types
Definition: wcs.h:1536
int wcssptr(struct wcsprm *wcs, int *i, char ctype[9])
Spectral axis translation.
char value[72]
Definition: wcs.h:1435
int nwtb
Definition: wcs.h:1526
char dateavg[72]
Definition: wcs.h:1508
char ssysobs[72]
Definition: wcs.h:1516
char(* cname)[72]
Definition: wcs.h:1505
double ** arrayp
Definition: getwcstab.h:177
int wcsset(struct wcsprm *wcs)
Setup routine for the wcsprm struct.
Coordinate transformation parameters.
Definition: wcs.h:1460
int colnum
Definition: wcs.h:1502
double * m_pc
Definition: wcs.h:1551
int wcsp2s(struct wcsprm *wcs, int ncoord, int nelem, const double pixcrd[], double imgcrd[], double phi[], double theta[], double world[], int stat[])
Pixel-to-world transformation.
double velangl
Definition: wcs.h:1520
struct wtbarr * wtb
Definition: wcs.h:1528
double * crder
Definition: wcs.h:1506
double restwav
Definition: wcs.h:1480
double * m_crder
Definition: wcs.h:1558
char lngtyp[8]
Definition: wcs.h:1532
int wcsnpv(int n)
Memory allocation for PVi_ma.
int naxis
Definition: wcs.h:1467
int m
Definition: wcs.h:1434
int wcsmix(struct wcsprm *wcs, int mixpix, int mixcel, const double vspan[], double vstep, int viter, double world[], double phi[], double theta[], double imgcrd[], double pixcrd[])
Hybrid coordinate transformation.
int spec
Definition: wcs.h:1533
const char * wcs_errmsg[]
Status return messages.
Extraction of coordinate lookup tables from BINTABLE.
Definition: getwcstab.h:166
int wcsperr(const struct wcsprm *wcs, const char *prefix)
Print error messages from a wcsprm struct.
double latpole
Definition: wcs.h:1477
double * m_crpix
Definition: wcs.h:1551
double velosys
Definition: wcs.h:1517
double * m_csyer
Definition: wcs.h:1558
Tabular transformation parameters.
Definition: tab.h:526
int velref
Definition: wcs.h:1498
int i
Definition: wcs.h:1433
double * csyer
Definition: wcs.h:1507
void * m_padding
Definition: wcs.h:1549
int lat
Definition: wcs.h:1533
Store for PVi_ma keyrecords.
Definition: wcs.h:1425
double * crpix
Definition: wcs.h:1468
double mjdavg
Definition: wcs.h:1511
struct celprm cel
Definition: wcs.h:1540
int wcsini(int alloc, int naxis, struct wcsprm *wcs)
Default constructor for the wcsprm struct.
char extnam[72]
Definition: getwcstab.h:170
double * m_cdelt
Definition: wcs.h:1551
int npvmax
Definition: wcs.h:1483
double value
Definition: wcs.h:1428
Store for PSi_ma keyrecords.
Definition: wcs.h:1432
int ndim
Definition: getwcstab.h:175
double * crval
Definition: wcs.h:1471
int * colax
Definition: wcs.h:1503
int altlin
Definition: wcs.h:1494
struct linprm lin
Definition: wcs.h:1539
char(* ctype)[72]
Definition: wcs.h:1474
double * pc
Definition: wcs.h:1469
double mjdobs
Definition: wcs.h:1512
int extver
Definition: getwcstab.h:171
double * m_crota
Definition: wcs.h:1555
int * dimlen
Definition: getwcstab.h:176
char ssyssrc[72]
Definition: wcs.h:1519
char lattyp[8]
Definition: wcs.h:1532
struct pvcard * m_pv
Definition: wcs.h:1553
int m_flag
Definition: wcs.h:1550
int extlev
Definition: getwcstab.h:172
double zsource
Definition: wcs.h:1518
void * padding
Definition: wcs.h:1537
char wcsname[72]
Definition: wcs.h:1521
int wcsnps(int n)
Memory allocation for PSi_ma.