Go to the documentation of this file.
664 #define PRJX2S_ARGS struct prjprm *prj, int nx, int ny, int sxy, int spt, \
665 const double x[], const double y[], double phi[], double theta[], int stat[]
668 #define PRJS2X_ARGS struct prjprm *prj, int nx, int ny, int sxy, int spt, \
669 const double phi[], const double theta[], double x[], double y[], int stat[]
712 #define PRJLEN (sizeof(struct prjprm)/sizeof(int))
720 int prjbchk(
double tol,
int nphi,
int ntheta,
int spt,
double phi[],
721 double theta[],
int stat[]);
841 #define prjini_errmsg prj_errmsg
842 #define prjprt_errmsg prj_errmsg
843 #define prjset_errmsg prj_errmsg
844 #define prjx2s_errmsg prj_errmsg
845 #define prjs2x_errmsg prj_errmsg
int cops2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the conic perspective (COP) projection.
int coox2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the conic orthomorphic (COO) projection.
int szpx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the slant zenithal perspective (SZP) projection.
int hpxx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the HEALPix (HPX) projection.
int hpxset(struct prjprm *prj)
Set up a prjprm struct for the HEALPix (HPX) projection.
int cods2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the conic equidistant (COD) projection.
int category
Definition: prj.h:688
int zeaset(struct prjprm *prj)
Set up a prjprm struct for the zenithal/azimuthal equal area (ZEA) projection.
int merset(struct prjprm *prj)
Set up a prjprm struct for Mercator's (MER) projection.
void * padding
Definition: prj.h:703
int prjini(struct prjprm *prj)
Default constructor for the prjprm struct.
int stgset(struct prjprm *prj)
Set up a prjprm struct for the stereographic (STG) projection.
double phi0
Definition: prj.h:682
int aitx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the Hammer-Aitoff (AIT) projection.
const char prj_codes[28][4]
Recognized three-letter projection codes.
int molx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for Mollweide's (MOL) projection.
int sinset(struct prjprm *prj)
Set up a prjprm struct for the orthographic/synthesis (SIN) projection.
int cscs2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the COBE spherical cube (CSC) projection.
int global
Definition: prj.h:693
int cooset(struct prjprm *prj)
Set up a prjprm struct for the conic orthomorphic (COO) projection.
int parset(struct prjprm *prj)
Set up a prjprm struct for the parabolic (PAR) projection.
int carset(struct prjprm *prj)
Set up a prjprm struct for the plate carrée (CAR) projection.
int prjprt(const struct prjprm *prj)
Print routine for the prjprm struct.
int m
Definition: prj.h:705
int prjperr(const struct prjprm *prj, const char *prefix)
Print error messages from a prjprm struct.
int zpnx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the zenithal/azimuthal polynomial (ZPN) projection.
int bons2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for Bonne's (BON) projection.
const int CONIC
Identifier for conic projections.
int copset(struct prjprm *prj)
Set up a prjprm struct for the conic perspective (COP) projection.
int airx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for Airy's (AIR) projection.
const int POLYCONIC
Identifier for polyconic projections.
Definition: prj.h:648
int tanx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the gnomonic (TAN) projection.
int conformal
Definition: prj.h:692
const int QUADCUBE
Identifier for quadcube projections.
Definition: prj.h:649
int xphset(struct prjprm *prj)
int hpxs2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the HEALPix (HPX) projection.
int cscset(struct prjprm *prj)
Set up a prjprm struct for the COBE spherical cube (CSC) projection.
int sins2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the orthographic/synthesis (SIN) projection.
@ PRJERR_BAD_PARAM
Definition: prj.h:641
int bounds
Definition: prj.h:683
int coos2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the conic orthomorphic (COO) projection.
int tscs2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the tangential spherical cube (TSC) projection.
Projection parameters.
Definition: prj.h:672
int coeset(struct prjprm *prj)
Set up a prjprm struct for the conic equal area (COE) projection.
int azpset(struct prjprm *prj)
Set up a prjprm struct for the zenithal/azimuthal perspective (AZP) projection.
int sfls2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the Sanson-Flamsteed (SFL) projection.
@ PRJERR_BAD_WORLD
Definition: prj.h:644
int tscx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the tangential spherical cube (TSC) projection.
int ceas2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the cylindrical equal area (CEA) projection.
int zpns2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the zenithal/azimuthal polynomial (ZPN) projection.
const int prj_ncode
The number of recognized three-letter projection codes.
int cscx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the COBE spherical cube (CSC) projection.
int pcox2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the polyconic (PCO) projection.
int szps2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the slant zenithal perspective (SZP) projection.
int arcx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the zenithal/azimuthal equidistant (ARC) projection.
int copx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the conic perspective (COP) projection.
int codset(struct prjprm *prj)
Set up a prjprm struct for the conic equidistant (COD) projection.
int zpnset(struct prjprm *prj)
Set up a prjprm struct for the zenithal/azimuthal polynomial (ZPN) projection.
int carx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the plate carrée (CAR) projection.
char name[40]
Definition: prj.h:687
int azpx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the zenithal/azimuthal perspective (AZP) projection.
const char * prj_errmsg[]
Status return messages.
int mols2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for Mollweide's (MOL) projection.
int stgx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the stereographic (STG) projection.
int zeas2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the zenithal/azimuthal equal area (ZEA) projection.
prj_errmsg_enum
Definition: prj.h:638
int cyps2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the cylindrical perspective (CYP) projection.
const int ZENITHAL
Identifier for zenithal/azimuthal projections.
Definition: prj.h:649
int arcset(struct prjprm *prj)
Set up a prjprm struct for the zenithal/azimuthal equidistant (ARC) projection.
@ PRJERR_NULL_POINTER
Definition: prj.h:640
const int CONVENTIONAL
Identifier for conventional projections.
Definition: prj.h:648
int merx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for Mercator's (MER) projection.
double r0
Definition: prj.h:680
int stgs2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the stereographic (STG) projection.
const int PSEUDOCYLINDRICAL
Identifier for pseudocylindrical projections.
Definition: prj.h:649
double pv[PVN]
Definition: prj.h:681
int tscset(struct prjprm *prj)
Set up a prjprm struct for the tangential spherical cube (TSC) projection.
int(* prjx2s)(PRJX2S_ARGS)
Definition: prj.h:707
double theta0
Definition: prj.h:682
int divergent
Definition: prj.h:694
int coes2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the conic equal area (COE) projection.
int pcoset(struct prjprm *prj)
Set up a prjprm struct for the polyconic (PCO) projection.
char code[4]
Definition: prj.h:679
int cypx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the cylindrical perspective (CYP) projection.
int sflset(struct prjprm *prj)
Set up a prjprm struct for the Sanson-Flamsteed (SFL) projection.
int sflx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the Sanson-Flamsteed (SFL) projection.
const char prj_categories[9][32]
Projection categories.
#define PVN
Total number of projection parameters.
Definition: prj.h:634
double y0
Definition: prj.h:695
int prjs2x(PRJS2X_ARGS)
Generic spherical-to-Cartesian projection.
int pcos2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the polyconic (PCO) projection.
int prjfree(struct prjprm *prj)
Destructor for the prjprm struct.
int molset(struct prjprm *prj)
Set up a prjprm struct for Mollweide's (MOL) projection.
int ceaset(struct prjprm *prj)
Set up a prjprm struct for the cylindrical equal area (CEA) projection.
int prjset(struct prjprm *prj)
Generic setup routine for the prjprm struct.
int azps2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the zenithal/azimuthal perspective (AZP) projection.
const int HEALPIX
Identifier for the HEALPix projection.
Definition: prj.h:649
int airs2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for Airy's (AIR) projection.
int prjx2s(PRJX2S_ARGS)
Generic Cartesian-to-spherical deprojection.
int qscx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the quadrilateralized spherical cube (QSC) projection.
int coex2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the conic equal area (COE) projection.
int aits2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the Hammer-Aitoff (AIT) projection.
int mers2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for Mercator's (MER) projection.
int zeax2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the zenithal/azimuthal equal area (ZEA) projection.
int codx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the conic equidistant (COD) projection.
struct wcserr * err
Definition: prj.h:699
int qscset(struct prjprm *prj)
Set up a prjprm struct for the quadrilateralized spherical cube (QSC) projection.
@ PRJERR_BAD_PIX
Definition: prj.h:642
int szpset(struct prjprm *prj)
Set up a prjprm struct for the slant zenithal perspective (SZP) projection.
Error message handling.
Definition: wcserr.h:223
double w[10]
Definition: prj.h:704
int(* prjs2x)(PRJS2X_ARGS)
Definition: prj.h:708
int n
Definition: prj.h:705
#define PRJS2X_ARGS
For use in declaring projection function prototypes.
Definition: prj.h:668
const int CYLINDRICAL
Identifier for cylindrical projections.
Definition: prj.h:648
int cars2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the plate carrée (CAR) projection.
int bonx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for Bonne's (BON) projection.
int prjbchk(double tol, int nphi, int ntheta, int spt, double phi[], double theta[], int stat[])
Bounds checking on native coordinates.
int equiareal
Definition: prj.h:691
int tanset(struct prjprm *prj)
Set up a prjprm struct for the gnomonic (TAN) projection.
int flag
Definition: prj.h:675
double x0
Definition: prj.h:695
int pvrange
Definition: prj.h:689
int bonset(struct prjprm *prj)
Set up a prjprm struct for Bonne's (BON) projection.
int arcs2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the zenithal/azimuthal equidistant (ARC) projection.
int aitset(struct prjprm *prj)
Set up a prjprm struct for the Hammer-Aitoff (AIT) projection.
#define PRJX2S_ARGS
For use in declaring deprojection function prototypes.
Definition: prj.h:664
int cypset(struct prjprm *prj)
Set up a prjprm struct for the cylindrical perspective (CYP) projection.
int tans2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the gnomonic (TAN) projection.
int pars2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the parabolic (PAR) projection.
int parx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the parabolic (PAR) projection.
@ PRJERR_SUCCESS
Definition: prj.h:639
int ceax2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the cylindrical equal area (CEA) projection.
int airset(struct prjprm *prj)
Set up a prjprm struct for Airy's (AIR) projection.
int simplezen
Definition: prj.h:690
int sinx2s(PRJX2S_ARGS)
Cartesian-to-spherical transformation for the orthographic/synthesis (SIN) projection.
int qscs2x(PRJS2X_ARGS)
Spherical-to-Cartesian transformation for the quadrilateralized spherical cube (QSC) projection.