1530 #define WCSSUB_LONGITUDE 0x1001 1531 #define WCSSUB_LATITUDE 0x1002 1532 #define WCSSUB_CUBEFACE 0x1004 1533 #define WCSSUB_CELESTIAL 0x1007 1534 #define WCSSUB_SPECTRAL 0x1008 1535 #define WCSSUB_STOKES 0x1010 1538 #define WCSCOMPARE_ANCILLARY 0x0001 1539 #define WCSCOMPARE_TILING 0x0002 1540 #define WCSCOMPARE_CRPIX 0x0004 1579 #define PVLEN (sizeof(struct pvcard)/sizeof(int)) 1589 #define PSLEN (sizeof(struct pscard)/sizeof(int)) 1595 #define wtbarr wtbarr_s 1717 #define WCSLEN (sizeof(struct wcsprm)/sizeof(int)) 1726 int wcsinit(
int alloc,
int naxis,
struct wcsprm *wcs,
int npvmax,
int npsmax,
1729 int wcssub(
int alloc,
const struct wcsprm *wcssrc,
int *nsub,
int axes[],
1733 const struct wcsprm *wcs2,
int *equal);
1745 int wcsp2s(
struct wcsprm *wcs,
int ncoord,
int nelem,
const double pixcrd[],
1746 double imgcrd[],
double phi[],
double theta[],
double world[],
1749 int wcss2p(
struct wcsprm *wcs,
int ncoord,
int nelem,
const double world[],
1750 double phi[],
double theta[],
double imgcrd[],
double pixcrd[],
1753 int wcsmix(
struct wcsprm *wcs,
int mixpix,
int mixcel,
const double vspan[],
1754 double vstep,
int viter,
double world[],
double phi[],
1755 double theta[],
double imgcrd[],
double pixcrd[]);
1762 #define wcscopy(alloc, wcssrc, wcsdst) wcssub(alloc, wcssrc, 0x0, 0x0, wcsdst) 1766 #define wcsini_errmsg wcs_errmsg 1767 #define wcssub_errmsg wcs_errmsg 1768 #define wcscopy_errmsg wcs_errmsg 1769 #define wcsfree_errmsg wcs_errmsg 1770 #define wcsprt_errmsg wcs_errmsg 1771 #define wcsset_errmsg wcs_errmsg 1772 #define wcsp2s_errmsg wcs_errmsg 1773 #define wcss2p_errmsg wcs_errmsg 1774 #define wcsmix_errmsg wcs_errmsg
char dateobs[72]
Definition: wcs.h:1662
int wcsfree(struct wcsprm *wcs)
Destructor for the wcsprm struct.
char radesys[72]
Definition: wcs.h:1667
struct wtbarr * m_wtb
Definition: wcs.h:1713
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:173
double * m_crval
Definition: wcs.h:1704
double * cd
Definition: wcs.h:1645
int wcsinit(int alloc, int naxis, struct wcsprm *wcs, int npvmax, int npsmax, int ndpmax)
Default constructor for the wcsprm struct.
int * m_colax
Definition: wcs.h:1709
struct pscard * ps
Definition: wcs.h:1641
double * cdelt
Definition: wcs.h:1623
int i
Definition: wcs.h:1573
int npv
Definition: wcs.h:1635
struct tabprm * tab
Definition: wcs.h:1680
char ttype[72]
Definition: getwcstab.h:177
struct wcserr * err
Definition: wcs.h:1698
int lng
Definition: wcs.h:1686
char(* m_cunit)[72]
Definition: wcs.h:1705
int npsmax
Definition: wcs.h:1640
char alt[4]
Definition: wcs.h:1654
char(* m_cname)[72]
Definition: wcs.h:1710
Error message handling.
Definition: wcserr.h:225
int i
Definition: getwcstab.h:171
struct spcprm spc
Definition: wcs.h:1694
int cubeface
Definition: wcs.h:1688
int flag
Definition: wcs.h:1616
double equinox
Definition: wcs.h:1663
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:1574
int wcsbchk(struct wcsprm *wcs, int bounds)
Enable/disable bounds checking.
double obsgeo[3]
Definition: wcs.h:1666
double lonpole
Definition: wcs.h:1629
int nps
Definition: wcs.h:1639
struct pvcard * pv
Definition: wcs.h:1637
int m
Definition: getwcstab.h:172
Spectral transformation parameters.
Definition: spc.h:797
struct tabprm * m_tab
Definition: wcs.h:1712
Celestial transformation parameters.
Definition: cel.h:392
Linear transformation parameters.
Definition: lin.h:631
wcs_errmsg_enum
Definition: wcs.h:1545
struct pscard * m_ps
Definition: wcs.h:1707
int wcsprt(const struct wcsprm *wcs)
Print routine for the wcsprm struct.
char(* cunit)[72]
Definition: wcs.h:1626
int ntab
Definition: wcs.h:1678
double * crota
Definition: wcs.h:1646
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:1703
double * m_cd
Definition: wcs.h:1708
long row
Definition: getwcstab.h:178
double restfrq
Definition: wcs.h:1632
char specsys[72]
Definition: wcs.h:1668
int * types
Definition: wcs.h:1689
int wcssptr(struct wcsprm *wcs, int *i, char ctype[9])
Spectral axis translation.
char value[72]
Definition: wcs.h:1585
int nwtb
Definition: wcs.h:1679
char dateavg[72]
Definition: wcs.h:1661
char ssysobs[72]
Definition: wcs.h:1669
char(* cname)[72]
Definition: wcs.h:1658
double ** arrayp
Definition: getwcstab.h:181
int wcsset(struct wcsprm *wcs)
Setup routine for the wcsprm struct.
Coordinate transformation parameters.
Definition: wcs.h:1613
int colnum
Definition: wcs.h:1655
double * m_pc
Definition: wcs.h:1704
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:1673
struct wtbarr * wtb
Definition: wcs.h:1681
double * crder
Definition: wcs.h:1659
double restwav
Definition: wcs.h:1633
double * m_crder
Definition: wcs.h:1711
char lngtyp[8]
Definition: wcs.h:1685
int wcsnpv(int n)
Memory allocation for PVi_ma.
int naxis
Definition: wcs.h:1620
int m
Definition: wcs.h:1584
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:1686
const char * wcs_errmsg[]
Status return messages.
Extraction of coordinate lookup tables from BINTABLE.
Definition: getwcstab.h:170
int wcsperr(const struct wcsprm *wcs, const char *prefix)
Print error messages from a wcsprm struct.
double latpole
Definition: wcs.h:1630
double * m_crpix
Definition: wcs.h:1704
double velosys
Definition: wcs.h:1670
double * m_csyer
Definition: wcs.h:1711
Tabular transformation parameters.
Definition: tab.h:546
int velref
Definition: wcs.h:1651
int i
Definition: wcs.h:1583
const char * wcslib_version(int vers[3])
double * csyer
Definition: wcs.h:1660
void * m_padding
Definition: wcs.h:1702
int lat
Definition: wcs.h:1686
Store for PVi_ma keyrecords.
Definition: wcs.h:1572
double * crpix
Definition: wcs.h:1621
double mjdavg
Definition: wcs.h:1664
struct celprm cel
Definition: wcs.h:1693
int wcsini(int alloc, int naxis, struct wcsprm *wcs)
Default constructor for the wcsprm struct.
char extnam[72]
Definition: getwcstab.h:174
double * m_cdelt
Definition: wcs.h:1704
int npvmax
Definition: wcs.h:1636
double value
Definition: wcs.h:1575
Store for PSi_ma keyrecords.
Definition: wcs.h:1582
int ndim
Definition: getwcstab.h:179
double * crval
Definition: wcs.h:1624
int * colax
Definition: wcs.h:1656
int altlin
Definition: wcs.h:1647
struct linprm lin
Definition: wcs.h:1692
char(* ctype)[72]
Definition: wcs.h:1627
double * pc
Definition: wcs.h:1622
double mjdobs
Definition: wcs.h:1665
int extver
Definition: getwcstab.h:175
double * m_crota
Definition: wcs.h:1708
int * dimlen
Definition: getwcstab.h:180
char ssyssrc[72]
Definition: wcs.h:1672
char lattyp[8]
Definition: wcs.h:1685
struct pvcard * m_pv
Definition: wcs.h:1706
int m_flag
Definition: wcs.h:1703
int extlev
Definition: getwcstab.h:176
double zsource
Definition: wcs.h:1671
void * padding
Definition: wcs.h:1690
char wcsname[72]
Definition: wcs.h:1674
int wcsnps(int n)
Memory allocation for PSi_ma.