1665 #define wtbarr wtbarr_s 1668 #define WCSSUB_LONGITUDE 0x1001 1669 #define WCSSUB_LATITUDE 0x1002 1670 #define WCSSUB_CUBEFACE 0x1004 1671 #define WCSSUB_CELESTIAL 0x1007 1672 #define WCSSUB_SPECTRAL 0x1008 1673 #define WCSSUB_STOKES 0x1010 1676 #define WCSCOMPARE_ANCILLARY 0x0001 1677 #define WCSCOMPARE_TILING 0x0002 1678 #define WCSCOMPARE_CRPIX 0x0004 1717 #define PVLEN (sizeof(struct pvcard)/sizeof(int)) 1727 #define PSLEN (sizeof(struct pscard)/sizeof(int)) 1784 char timesys[72], trefpos[72], trefdir[72], plephem[72];
1790 char dateobs[72], datebeg[72], dateavg[72], dateend[72];
1820 char lngtyp[8], lattyp[8];
1841 double *m_crpix, *
m_pc, *m_cdelt, *m_crval;
1842 char (*m_cunit)[72], (*m_ctype)[72];
1847 char (*m_cname)[72];
1854 #define WCSLEN (sizeof(struct wcsprm)/sizeof(int)) 1863 int wcsinit(
int alloc,
int naxis,
struct wcsprm *wcs,
int npvmax,
int npsmax,
1866 int wcssub(
int alloc,
const struct wcsprm *wcssrc,
int *nsub,
int axes[],
1870 const struct wcsprm *wcs2,
int *equal);
1882 int wcsp2s(
struct wcsprm *wcs,
int ncoord,
int nelem,
const double pixcrd[],
1883 double imgcrd[],
double phi[],
double theta[],
double world[],
1886 int wcss2p(
struct wcsprm *wcs,
int ncoord,
int nelem,
const double world[],
1887 double phi[],
double theta[],
double imgcrd[],
double pixcrd[],
1890 int wcsmix(
struct wcsprm *wcs,
int mixpix,
int mixcel,
const double vspan[],
1891 double vstep,
int viter,
double world[],
double phi[],
1892 double theta[],
double imgcrd[],
double pixcrd[]);
1899 #define wcscopy(alloc, wcssrc, wcsdst) wcssub(alloc, wcssrc, 0x0, 0x0, wcsdst) 1903 #define wcsini_errmsg wcs_errmsg 1904 #define wcssub_errmsg wcs_errmsg 1905 #define wcscopy_errmsg wcs_errmsg 1906 #define wcsfree_errmsg wcs_errmsg 1907 #define wcsprt_errmsg wcs_errmsg 1908 #define wcsset_errmsg wcs_errmsg 1909 #define wcsp2s_errmsg wcs_errmsg 1910 #define wcss2p_errmsg wcs_errmsg 1911 #define wcsmix_errmsg wcs_errmsg
int wcsfree(struct wcsprm *wcs)
Destructor for the wcsprm struct.
struct wtbarr * m_wtb
Definition: wcs.h:1850
double * m_czphs
Definition: wcs.h:1848
double * czphs
Definition: wcs.h:1779
int wcssub(int alloc, const struct wcsprm *wcssrc, int *nsub, int axes[], struct wcsprm *wcsdst)
Subimage extraction routine for the wcsprm struct.
double xposure
Definition: wcs.h:1794
double * cd
Definition: wcs.h:1762
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:1846
struct pscard * ps
Definition: wcs.h:1758
double * cdelt
Definition: wcs.h:1740
int i
Definition: wcs.h:1711
double * cperi
Definition: wcs.h:1780
double tstop
Definition: wcs.h:1793
int npv
Definition: wcs.h:1752
struct tabprm * tab
Definition: wcs.h:1814
struct wcserr * err
Definition: wcs.h:1836
int npsmax
Definition: wcs.h:1757
Error message handling.
Definition: wcserr.h:223
int cubeface
Definition: wcs.h:1823
int flag
Definition: wcs.h:1733
double equinox
Definition: wcs.h:1802
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:1712
int wcsbchk(struct wcsprm *wcs, int bounds)
Enable/disable bounds checking.
double lonpole
Definition: wcs.h:1746
int nps
Definition: wcs.h:1756
struct pvcard * pv
Definition: wcs.h:1754
Spectral transformation parameters.
Definition: spc.h:807
struct tabprm * m_tab
Definition: wcs.h:1849
Celestial transformation parameters.
Definition: cel.h:398
Linear transformation parameters.
Definition: lin.h:631
wcs_errmsg_enum
Definition: wcs.h:1683
struct pscard * m_ps
Definition: wcs.h:1844
int wcsprt(const struct wcsprm *wcs)
Print routine for the wcsprm struct.
int ntab
Definition: wcs.h:1812
double * crota
Definition: wcs.h:1763
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:1840
double timepixr
Definition: wcs.h:1797
double restfrq
Definition: wcs.h:1749
int * types
Definition: wcs.h:1824
int wcssptr(struct wcsprm *wcs, int *i, char ctype[9])
Spectral axis translation.
int nwtb
Definition: wcs.h:1813
int wcsset(struct wcsprm *wcs)
Setup routine for the wcsprm struct.
Coordinate transformation parameters.
Definition: wcs.h:1730
int colnum
Definition: wcs.h:1773
double * m_pc
Definition: wcs.h:1841
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:1808
struct wtbarr * wtb
Definition: wcs.h:1815
double * crder
Definition: wcs.h:1777
double restwav
Definition: wcs.h:1750
int wcsnpv(int n)
Memory allocation for PVi_ma.
int naxis
Definition: wcs.h:1737
int m
Definition: wcs.h:1722
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:1821
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:1747
double velosys
Definition: wcs.h:1805
Tabular transformation parameters.
Definition: tab.h:546
int velref
Definition: wcs.h:1768
double timsyer
Definition: wcs.h:1796
int i
Definition: wcs.h:1721
const char * wcslib_version(int vers[3])
double * csyer
Definition: wcs.h:1778
Store for PVi_ma keyrecords.
Definition: wcs.h:1710
double * crpix
Definition: wcs.h:1738
double timeoffs
Definition: wcs.h:1788
int wcsini(int alloc, int naxis, struct wcsprm *wcs)
Default constructor for the wcsprm struct.
int npvmax
Definition: wcs.h:1753
double value
Definition: wcs.h:1713
Store for PSi_ma keyrecords.
Definition: wcs.h:1720
double * crval
Definition: wcs.h:1741
int * colax
Definition: wcs.h:1774
int altlin
Definition: wcs.h:1764
double * pc
Definition: wcs.h:1739
double mjdobs
Definition: wcs.h:1791
double * m_crota
Definition: wcs.h:1845
double jepoch
Definition: wcs.h:1792
struct pvcard * m_pv
Definition: wcs.h:1843
double zsource
Definition: wcs.h:1806
int wcsnps(int n)
Memory allocation for PSi_ma.