1672 #define WCSSUB_LONGITUDE 0x1001 1673 #define WCSSUB_LATITUDE 0x1002 1674 #define WCSSUB_CUBEFACE 0x1004 1675 #define WCSSUB_CELESTIAL 0x1007 1676 #define WCSSUB_SPECTRAL 0x1008 1677 #define WCSSUB_STOKES 0x1010 1680 #define WCSCOMPARE_ANCILLARY 0x0001 1681 #define WCSCOMPARE_TILING 0x0002 1682 #define WCSCOMPARE_CRPIX 0x0004 1721 #define PVLEN (sizeof(struct pvcard)/sizeof(int)) 1731 #define PSLEN (sizeof(struct pscard)/sizeof(int)) 1788 char timesys[72], trefpos[72], trefdir[72], plephem[72];
1794 char dateobs[72], datebeg[72], dateavg[72], dateend[72];
1824 char lngtyp[8], lattyp[8];
1845 double *m_crpix, *
m_pc, *m_cdelt, *m_crval;
1846 char (*m_cunit)[72], (*m_ctype)[72];
1851 char (*m_cname)[72];
1858 #define WCSLEN (sizeof(struct wcsprm)/sizeof(int)) 1867 int wcsinit(
int alloc,
int naxis,
struct wcsprm *wcs,
int npvmax,
int npsmax,
1870 int wcssub(
int alloc,
const struct wcsprm *wcssrc,
int *nsub,
int axes[],
1874 const struct wcsprm *wcs2,
int *equal);
1886 int wcsp2s(
struct wcsprm *wcs,
int ncoord,
int nelem,
const double pixcrd[],
1887 double imgcrd[],
double phi[],
double theta[],
double world[],
1890 int wcss2p(
struct wcsprm *wcs,
int ncoord,
int nelem,
const double world[],
1891 double phi[],
double theta[],
double imgcrd[],
double pixcrd[],
1894 int wcsmix(
struct wcsprm *wcs,
int mixpix,
int mixcel,
const double vspan[],
1895 double vstep,
int viter,
double world[],
double phi[],
1896 double theta[],
double imgcrd[],
double pixcrd[]);
1903 #define wcscopy(alloc, wcssrc, wcsdst) wcssub(alloc, wcssrc, 0x0, 0x0, wcsdst) 1907 #define wcsini_errmsg wcs_errmsg 1908 #define wcssub_errmsg wcs_errmsg 1909 #define wcscopy_errmsg wcs_errmsg 1910 #define wcsfree_errmsg wcs_errmsg 1911 #define wcsprt_errmsg wcs_errmsg 1912 #define wcsset_errmsg wcs_errmsg 1913 #define wcsp2s_errmsg wcs_errmsg 1914 #define wcss2p_errmsg wcs_errmsg 1915 #define wcsmix_errmsg wcs_errmsg
int wcsfree(struct wcsprm *wcs)
Destructor for the wcsprm struct.
struct wtbarr * m_wtb
Definition: wcs.h:1854
double * m_czphs
Definition: wcs.h:1852
double * czphs
Definition: wcs.h:1783
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:1798
double * cd
Definition: wcs.h:1766
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:1850
struct pscard * ps
Definition: wcs.h:1762
double * cdelt
Definition: wcs.h:1744
int i
Definition: wcs.h:1715
double * cperi
Definition: wcs.h:1784
double tstop
Definition: wcs.h:1797
int npv
Definition: wcs.h:1756
struct tabprm * tab
Definition: wcs.h:1818
struct wcserr * err
Definition: wcs.h:1840
int npsmax
Definition: wcs.h:1761
Error message handling.
Definition: wcserr.h:223
int cubeface
Definition: wcs.h:1827
int flag
Definition: wcs.h:1737
double equinox
Definition: wcs.h:1806
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:1716
int wcsbchk(struct wcsprm *wcs, int bounds)
Enable/disable bounds checking.
double lonpole
Definition: wcs.h:1750
int nps
Definition: wcs.h:1760
struct pvcard * pv
Definition: wcs.h:1758
Spectral transformation parameters.
Definition: spc.h:802
struct tabprm * m_tab
Definition: wcs.h:1853
Celestial transformation parameters.
Definition: cel.h:392
Linear transformation parameters.
Definition: lin.h:631
wcs_errmsg_enum
Definition: wcs.h:1687
struct pscard * m_ps
Definition: wcs.h:1848
int wcsprt(const struct wcsprm *wcs)
Print routine for the wcsprm struct.
int ntab
Definition: wcs.h:1816
double * crota
Definition: wcs.h:1767
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:1844
double timepixr
Definition: wcs.h:1801
double restfrq
Definition: wcs.h:1753
int * types
Definition: wcs.h:1828
int wcssptr(struct wcsprm *wcs, int *i, char ctype[9])
Spectral axis translation.
int nwtb
Definition: wcs.h:1817
int wcsset(struct wcsprm *wcs)
Setup routine for the wcsprm struct.
Coordinate transformation parameters.
Definition: wcs.h:1734
int colnum
Definition: wcs.h:1777
double * m_pc
Definition: wcs.h:1845
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:1812
struct wtbarr * wtb
Definition: wcs.h:1819
double * crder
Definition: wcs.h:1781
double restwav
Definition: wcs.h:1754
int wcsnpv(int n)
Memory allocation for PVi_ma.
int naxis
Definition: wcs.h:1741
int m
Definition: wcs.h:1726
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:1825
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:1751
double velosys
Definition: wcs.h:1809
Tabular transformation parameters.
Definition: tab.h:546
int velref
Definition: wcs.h:1772
double timsyer
Definition: wcs.h:1800
int i
Definition: wcs.h:1725
const char * wcslib_version(int vers[3])
double * csyer
Definition: wcs.h:1782
Store for PVi_ma keyrecords.
Definition: wcs.h:1714
double * crpix
Definition: wcs.h:1742
double timeoffs
Definition: wcs.h:1792
int wcsini(int alloc, int naxis, struct wcsprm *wcs)
Default constructor for the wcsprm struct.
int npvmax
Definition: wcs.h:1757
double value
Definition: wcs.h:1717
Store for PSi_ma keyrecords.
Definition: wcs.h:1724
double * crval
Definition: wcs.h:1745
int * colax
Definition: wcs.h:1778
int altlin
Definition: wcs.h:1768
double * pc
Definition: wcs.h:1743
double mjdobs
Definition: wcs.h:1795
double * m_crota
Definition: wcs.h:1849
double jepoch
Definition: wcs.h:1796
struct pvcard * m_pv
Definition: wcs.h:1847
double zsource
Definition: wcs.h:1810
int wcsnps(int n)
Memory allocation for PSi_ma.