1485 #define WCSSUB_LONGITUDE 0x1001
1486 #define WCSSUB_LATITUDE 0x1002
1487 #define WCSSUB_CUBEFACE 0x1004
1488 #define WCSSUB_CELESTIAL 0x1007
1489 #define WCSSUB_SPECTRAL 0x1008
1490 #define WCSSUB_STOKES 0x1010
1493 #define WCSCOMPARE_ANCILLARY 0x0001
1494 #define WCSCOMPARE_TILING 0x0002
1495 #define WCSCOMPARE_CRPIX 0x0004
1544 #define wtbarr wtbarr_s
1666 #define WCSLEN (sizeof(struct wcsprm)/sizeof(int))
1675 int wcssub(
int alloc,
const struct wcsprm *wcssrc,
int *nsub,
int axes[],
1679 const struct wcsprm *wcs2,
int *equal);
1691 int wcsp2s(
struct wcsprm *wcs,
int ncoord,
int nelem,
const double pixcrd[],
1692 double imgcrd[],
double phi[],
double theta[],
double world[],
1695 int wcss2p(
struct wcsprm *wcs,
int ncoord,
int nelem,
const double world[],
1696 double phi[],
double theta[],
double imgcrd[],
double pixcrd[],
1699 int wcsmix(
struct wcsprm *wcs,
int mixpix,
int mixcel,
const double vspan[],
1700 double vstep,
int viter,
double world[],
double phi[],
1701 double theta[],
double imgcrd[],
double pixcrd[]);
1708 #define wcscopy(alloc, wcssrc, wcsdst) wcssub(alloc, wcssrc, 0x0, 0x0, wcsdst)
1712 #define wcsini_errmsg wcs_errmsg
1713 #define wcssub_errmsg wcs_errmsg
1714 #define wcscopy_errmsg wcs_errmsg
1715 #define wcsfree_errmsg wcs_errmsg
1716 #define wcsprt_errmsg wcs_errmsg
1717 #define wcsset_errmsg wcs_errmsg
1718 #define wcsp2s_errmsg wcs_errmsg
1719 #define wcss2p_errmsg wcs_errmsg
1720 #define wcsmix_errmsg wcs_errmsg
char dateobs[72]
Definition: wcs.h:1611
int wcsfree(struct wcsprm *wcs)
Destructor for the wcsprm struct.
char radesys[72]
Definition: wcs.h:1616
struct wtbarr * m_wtb
Definition: wcs.h:1662
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:1653
double * cd
Definition: wcs.h:1594
int * m_colax
Definition: wcs.h:1658
struct pscard * ps
Definition: wcs.h:1590
double * cdelt
Definition: wcs.h:1572
int i
Definition: wcs.h:1528
int npv
Definition: wcs.h:1584
struct tabprm * tab
Definition: wcs.h:1629
char ttype[72]
Definition: getwcstab.h:173
struct wcserr * err
Definition: wcs.h:1647
int lng
Definition: wcs.h:1635
char(* m_cunit)[72]
Definition: wcs.h:1654
int npsmax
Definition: wcs.h:1589
char alt[4]
Definition: wcs.h:1603
char(* m_cname)[72]
Definition: wcs.h:1659
Error message handling.
Definition: wcserr.h:221
int i
Definition: getwcstab.h:167
struct spcprm spc
Definition: wcs.h:1643
int cubeface
Definition: wcs.h:1637
int flag
Definition: wcs.h:1565
double equinox
Definition: wcs.h:1612
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:1529
int wcsbchk(struct wcsprm *wcs, int bounds)
Enable/disable bounds checking.
double obsgeo[3]
Definition: wcs.h:1615
double lonpole
Definition: wcs.h:1578
int nps
Definition: wcs.h:1588
struct pvcard * pv
Definition: wcs.h:1586
int m
Definition: getwcstab.h:168
Spectral transformation parameters.
Definition: spc.h:773
struct tabprm * m_tab
Definition: wcs.h:1661
Celestial transformation parameters.
Definition: cel.h:392
Linear transformation parameters.
Definition: lin.h:599
wcs_errmsg_enum
Definition: wcs.h:1500
struct pscard * m_ps
Definition: wcs.h:1656
int wcsprt(const struct wcsprm *wcs)
Print routine for the wcsprm struct.
char(* cunit)[72]
Definition: wcs.h:1575
int ntab
Definition: wcs.h:1627
double * crota
Definition: wcs.h:1595
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:1652
double * m_cd
Definition: wcs.h:1657
long row
Definition: getwcstab.h:174
double restfrq
Definition: wcs.h:1581
char specsys[72]
Definition: wcs.h:1617
int * types
Definition: wcs.h:1638
int wcssptr(struct wcsprm *wcs, int *i, char ctype[9])
Spectral axis translation.
char value[72]
Definition: wcs.h:1537
int nwtb
Definition: wcs.h:1628
char dateavg[72]
Definition: wcs.h:1610
char ssysobs[72]
Definition: wcs.h:1618
char(* cname)[72]
Definition: wcs.h:1607
double ** arrayp
Definition: getwcstab.h:177
int wcsset(struct wcsprm *wcs)
Setup routine for the wcsprm struct.
Coordinate transformation parameters.
Definition: wcs.h:1562
int colnum
Definition: wcs.h:1604
double * m_pc
Definition: wcs.h:1653
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:1622
struct wtbarr * wtb
Definition: wcs.h:1630
double * crder
Definition: wcs.h:1608
double restwav
Definition: wcs.h:1582
double * m_crder
Definition: wcs.h:1660
char lngtyp[8]
Definition: wcs.h:1634
int wcsnpv(int n)
Memory allocation for PVi_ma.
int naxis
Definition: wcs.h:1569
int m
Definition: wcs.h:1536
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:1635
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:1579
double * m_crpix
Definition: wcs.h:1653
double velosys
Definition: wcs.h:1619
double * m_csyer
Definition: wcs.h:1660
Tabular transformation parameters.
Definition: tab.h:524
int velref
Definition: wcs.h:1600
int i
Definition: wcs.h:1535
const char * wcslib_version(int vers[3])
double * csyer
Definition: wcs.h:1609
void * m_padding
Definition: wcs.h:1651
int lat
Definition: wcs.h:1635
Store for PVi_ma keyrecords.
Definition: wcs.h:1527
double * crpix
Definition: wcs.h:1570
double mjdavg
Definition: wcs.h:1613
struct celprm cel
Definition: wcs.h:1642
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:1653
int npvmax
Definition: wcs.h:1585
double value
Definition: wcs.h:1530
Store for PSi_ma keyrecords.
Definition: wcs.h:1534
int ndim
Definition: getwcstab.h:175
double * crval
Definition: wcs.h:1573
int * colax
Definition: wcs.h:1605
int altlin
Definition: wcs.h:1596
struct linprm lin
Definition: wcs.h:1641
char(* ctype)[72]
Definition: wcs.h:1576
double * pc
Definition: wcs.h:1571
double mjdobs
Definition: wcs.h:1614
int extver
Definition: getwcstab.h:171
double * m_crota
Definition: wcs.h:1657
int * dimlen
Definition: getwcstab.h:176
char ssyssrc[72]
Definition: wcs.h:1621
char lattyp[8]
Definition: wcs.h:1634
struct pvcard * m_pv
Definition: wcs.h:1655
int m_flag
Definition: wcs.h:1652
int extlev
Definition: getwcstab.h:172
double zsource
Definition: wcs.h:1620
void * padding
Definition: wcs.h:1639
char wcsname[72]
Definition: wcs.h:1623
int wcsnps(int n)
Memory allocation for PSi_ma.