1968 #define wtbarr wtbarr_s
1971 #define WCSSUB_LONGITUDE 0x1001
1972 #define WCSSUB_LATITUDE 0x1002
1973 #define WCSSUB_CUBEFACE 0x1004
1974 #define WCSSUB_CELESTIAL 0x1007
1975 #define WCSSUB_SPECTRAL 0x1008
1976 #define WCSSUB_STOKES 0x1010
1979 #define WCSCOMPARE_ANCILLARY 0x0001
1980 #define WCSCOMPARE_TILING 0x0002
1981 #define WCSCOMPARE_CRPIX 0x0004
2019 #define PVLEN (sizeof(struct pvcard)/sizeof(int))
2029 #define PSLEN (sizeof(struct pscard)/sizeof(int))
2041 #define AUXLEN (sizeof(struct auxprm)/sizeof(int))
2174 #define WCSLEN (sizeof(struct wcsprm)/sizeof(int))
2192 const struct wcsprm *wcs2,
int *equal);
2210 int wcsp2s(
struct wcsprm *wcs,
int ncoord,
int nelem,
const double pixcrd[],
2211 double imgcrd[],
double phi[],
double theta[],
double world[],
2214 int wcss2p(
struct wcsprm *wcs,
int ncoord,
int nelem,
const double world[],
2215 double phi[],
double theta[],
double imgcrd[],
double pixcrd[],
2218 int wcsmix(
struct wcsprm *wcs,
int mixpix,
int mixcel,
const double vspan[2],
2219 double vstep,
int viter,
double world[],
double phi[],
2220 double theta[],
double imgcrd[],
double pixcrd[]);
2222 int wcsccs(
struct wcsprm *wcs,
double lng2p1,
double lat2p1,
double lng1p2,
2223 const char *clng,
const char *clat,
const char *radesys,
2224 double equinox,
const char *alt);
2231 #define wcscopy(alloc, wcssrc, wcsdst) wcssub(alloc, wcssrc, 0x0, 0x0, wcsdst)
2235 #define wcsini_errmsg wcs_errmsg
2236 #define wcssub_errmsg wcs_errmsg
2237 #define wcscopy_errmsg wcs_errmsg
2238 #define wcsfree_errmsg wcs_errmsg
2239 #define wcsprt_errmsg wcs_errmsg
2240 #define wcsset_errmsg wcs_errmsg
2241 #define wcsp2s_errmsg wcs_errmsg
2242 #define wcss2p_errmsg wcs_errmsg
2243 #define wcsmix_errmsg wcs_errmsg
Additional auxiliary parameters.
Definition: wcs.h:2032
double dsun_obs
Definition: wcs.h:2034
double hglt_obs
Definition: wcs.h:2037
double hgln_obs
Definition: wcs.h:2036
double crln_obs
Definition: wcs.h:2035
double rsun_ref
Definition: wcs.h:2033
Celestial transformation parameters.
Definition: cel.h:423
Linear transformation parameters.
Definition: lin.h:659
Store for PSi_ma keyrecords.
Definition: wcs.h:2022
int i
Definition: wcs.h:2023
int m
Definition: wcs.h:2024
char value[72]
Definition: wcs.h:2025
Store for PVi_ma keyrecords.
Definition: wcs.h:2012
double value
Definition: wcs.h:2015
int i
Definition: wcs.h:2013
int m
Definition: wcs.h:2014
Spectral transformation parameters.
Definition: spc.h:832
Tabular transformation parameters.
Definition: tab.h:573
Error message handling.
Definition: wcserr.h:243
Coordinate transformation parameters.
Definition: wcs.h:2044
char timeunit[72]
Definition: wcs.h:2100
struct pscard * m_ps
Definition: wcs.h:2163
char timesys[72]
Definition: wcs.h:2099
struct pvcard * pv
Definition: wcs.h:2068
char dateref[72]
Definition: wcs.h:2101
double mjdavg
Definition: wcs.h:2106
int lng
Definition: wcs.h:2140
double * czphs
Definition: wcs.h:2094
char(* m_cname)[72]
Definition: wcs.h:2166
double zsource
Definition: wcs.h:2121
double * m_crder
Definition: wcs.h:2167
int npv
Definition: wcs.h:2066
double timrder
Definition: wcs.h:2111
char trefpos[72]
Definition: wcs.h:2099
double telapse
Definition: wcs.h:2109
double * m_csyer
Definition: wcs.h:2167
double tstart
Definition: wcs.h:2108
double * csyer
Definition: wcs.h:2093
double * m_crpix
Definition: wcs.h:2160
double * cperi
Definition: wcs.h:2095
double mjdend
Definition: wcs.h:2106
char wcsname[72]
Definition: wcs.h:2097
struct tabprm * tab
Definition: wcs.h:2133
struct linprm lin
Definition: wcs.h:2145
double * pc
Definition: wcs.h:2053
int flag
Definition: wcs.h:2047
struct auxprm * aux
Definition: wcs.h:2127
int npsmax
Definition: wcs.h:2071
double * m_cdelt
Definition: wcs.h:2160
double timeoffs
Definition: wcs.h:2103
double * crder
Definition: wcs.h:2092
int nps
Definition: wcs.h:2070
int * m_colax
Definition: wcs.h:2165
double * m_crval
Definition: wcs.h:2160
double timepixr
Definition: wcs.h:2112
double * m_crota
Definition: wcs.h:2164
double * m_cperi
Definition: wcs.h:2167
int m_flag
Definition: wcs.h:2159
char lngtyp[8]
Definition: wcs.h:2139
double restwav
Definition: wcs.h:2064
double latpole
Definition: wcs.h:2061
int m_naxis
Definition: wcs.h:2159
char radesys[72]
Definition: wcs.h:2116
double * m_pc
Definition: wcs.h:2160
struct pvcard * m_pv
Definition: wcs.h:2162
int naxis
Definition: wcs.h:2051
double * m_czphs
Definition: wcs.h:2167
int * colax
Definition: wcs.h:2089
double * crval
Definition: wcs.h:2055
double * m_cd
Definition: wcs.h:2164
double tstop
Definition: wcs.h:2108
double obsgeo[6]
Definition: wcs.h:2114
double timsyer
Definition: wcs.h:2111
int nwtb
Definition: wcs.h:2132
char ssyssrc[72]
Definition: wcs.h:2122
double equinox
Definition: wcs.h:2117
int altlin
Definition: wcs.h:2078
struct wtbarr * wtb
Definition: wcs.h:2134
int npvmax
Definition: wcs.h:2067
char(* cname)[72]
Definition: wcs.h:2091
double jepoch
Definition: wcs.h:2107
int ntab
Definition: wcs.h:2131
char ssysobs[72]
Definition: wcs.h:2119
struct pscard * ps
Definition: wcs.h:2072
int colnum
Definition: wcs.h:2088
char datebeg[72]
Definition: wcs.h:2105
double velangl
Definition: wcs.h:2123
double mjdbeg
Definition: wcs.h:2106
char(* cunit)[72]
Definition: wcs.h:2057
double bepoch
Definition: wcs.h:2107
double mjdref[2]
Definition: wcs.h:2102
char trefdir[72]
Definition: wcs.h:2099
char plephem[72]
Definition: wcs.h:2099
char dateobs[72]
Definition: wcs.h:2105
double * crpix
Definition: wcs.h:2052
int * types
Definition: wcs.h:2143
int lat
Definition: wcs.h:2140
int spec
Definition: wcs.h:2140
char specsys[72]
Definition: wcs.h:2118
double mjdobs
Definition: wcs.h:2106
double xposure
Definition: wcs.h:2109
int velref
Definition: wcs.h:2082
struct celprm cel
Definition: wcs.h:2146
struct wtbarr * m_wtb
Definition: wcs.h:2170
char dateend[72]
Definition: wcs.h:2105
struct auxprm * m_aux
Definition: wcs.h:2168
double restfrq
Definition: wcs.h:2063
double * cdelt
Definition: wcs.h:2054
int cubeface
Definition: wcs.h:2142
struct tabprm * m_tab
Definition: wcs.h:2169
char obsorbit[72]
Definition: wcs.h:2115
char(* ctype)[72]
Definition: wcs.h:2058
char lattyp[8]
Definition: wcs.h:2139
char dateavg[72]
Definition: wcs.h:2105
char alt[4]
Definition: wcs.h:2087
struct spcprm spc
Definition: wcs.h:2147
double timedel
Definition: wcs.h:2112
double * crota
Definition: wcs.h:2077
char(* m_cunit)[72]
Definition: wcs.h:2161
double velosys
Definition: wcs.h:2120
struct wcserr * err
Definition: wcs.h:2155
double lonpole
Definition: wcs.h:2060
double * cd
Definition: wcs.h:2076
Extraction of coordinate lookup tables from BINTABLE.
Definition: getwcstab.h:167
int i
Definition: getwcstab.h:168
wcs_errmsg_enum
Definition: wcs.h:1986
@ WCSERR_BAD_WORLD
Definition: wcs.h:2000
@ WCSERR_BAD_PIX
Definition: wcs.h:1998
@ WCSERR_SINGULAR_MTX
Definition: wcs.h:1990
@ WCSERR_NON_SEPARABLE
Definition: wcs.h:2006
@ WCSERR_BAD_CTYPE
Definition: wcs.h:1991
@ WCSERR_MEMORY
Definition: wcs.h:1989
@ WCSERR_BAD_WORLD_COORD
Definition: wcs.h:2002
@ WCSERR_BAD_COORD_TRANS
Definition: wcs.h:1994
@ WCSERR_NO_SOLUTION
Definition: wcs.h:2003
@ WCSERR_BAD_SUBIMAGE
Definition: wcs.h:2005
@ WCSERR_SUCCESS
Definition: wcs.h:1987
@ WCSERR_UNSET
Definition: wcs.h:2007
@ WCSERR_NULL_POINTER
Definition: wcs.h:1988
@ WCSERR_ILL_COORD_TRANS
Definition: wcs.h:1996
@ WCSERR_BAD_PARAM
Definition: wcs.h:1993
int wcsmix(struct wcsprm *wcs, int mixpix, int mixcel, const double vspan[2], double vstep, int viter, double world[], double phi[], double theta[], double imgcrd[], double pixcrd[])
Hybrid coordinate transformation.
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.
int wcsini(int alloc, int naxis, struct wcsprm *wcs)
Default constructor for the wcsprm struct.
const char * wcslib_version(int vers[3])
int wcssize(const struct wcsprm *wcs, int sizes[2])
Compute the size of a wcsprm struct.
int wcsnpv(int n)
Memory allocation for PVi_ma.
int wcsfree(struct wcsprm *wcs)
Destructor for the wcsprm struct.
int auxsize(const struct auxprm *aux, int sizes[2])
Compute the size of a auxprm struct.
int wcssptr(struct wcsprm *wcs, int *i, char ctype[9])
Spectral axis translation.
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 wcscompare(int cmp, double tol, const struct wcsprm *wcs1, const struct wcsprm *wcs2, int *equal)
Compare two wcsprm structs for equality.
int wcsccs(struct wcsprm *wcs, double lng2p1, double lat2p1, double lng1p2, const char *clng, const char *clat, const char *radesys, double equinox, const char *alt)
Change celestial coordinate system.
int wcssub(int alloc, const struct wcsprm *wcssrc, int *nsub, int axes[], struct wcsprm *wcsdst)
Subimage extraction routine for the wcsprm struct.
int wcsperr(const struct wcsprm *wcs, const char *prefix)
Print error messages from a wcsprm struct.
int wcsauxi(int alloc, struct wcsprm *wcs)
Default constructor for the auxprm struct.
int wcsinit(int alloc, int naxis, struct wcsprm *wcs, int npvmax, int npsmax, int ndpmax)
Default constructor for the wcsprm struct.
int wcstrim(struct wcsprm *wcs)
Free unused arrays in the wcsprm struct.
int wcsprt(const struct wcsprm *wcs)
Print routine for the wcsprm struct.
const char * wcs_errmsg[]
Status return messages.
int wcsset(struct wcsprm *wcs)
Setup routine for the wcsprm struct.
int wcsnps(int n)
Memory allocation for PSi_ma.
int wcsbchk(struct wcsprm *wcs, int bounds)
Enable/disable bounds checking.