WCSLIB 4.18
prj.h
Go to the documentation of this file.
1 /*============================================================================
2 
3  WCSLIB 4.18 - an implementation of the FITS WCS standard.
4  Copyright (C) 1995-2013, Mark Calabretta
5 
6  This file is part of WCSLIB.
7 
8  WCSLIB is free software: you can redistribute it and/or modify it under the
9  terms of the GNU Lesser General Public License as published by the Free
10  Software Foundation, either version 3 of the License, or (at your option)
11  any later version.
12 
13  WCSLIB is distributed in the hope that it will be useful, but WITHOUT ANY
14  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15  FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
16  more details.
17 
18  You should have received a copy of the GNU Lesser General Public License
19  along with WCSLIB. If not, see http://www.gnu.org/licenses.
20 
21  Direct correspondence concerning WCSLIB to mark@calabretta.id.au
22 
23  Author: Mark Calabretta, Australia Telescope National Facility, CSIRO.
24  http://www.atnf.csiro.au/people/Mark.Calabretta
25  $Id: prj.h,v 4.18 2013/07/13 10:00:04 mcalabre Exp $
26 *=============================================================================
27 *
28 * WCSLIB 4.18 - C routines that implement the spherical map projections
29 * recognized by the FITS World Coordinate System (WCS) standard. Refer to
30 *
31 * "Representations of world coordinates in FITS",
32 * Greisen, E.W., & Calabretta, M.R. 2002, A&A, 395, 1061 (Paper I)
33 *
34 * "Representations of celestial coordinates in FITS",
35 * Calabretta, M.R., & Greisen, E.W. 2002, A&A, 395, 1077 (Paper II)
36 *
37 * Refer to the README file provided with WCSLIB for an overview of the
38 * library.
39 *
40 *
41 * Summary of the prj routines
42 * ---------------------------
43 * These routines implement the spherical map projections defined by the FITS
44 * WCS standard. They are based on the prjprm struct which contains all
45 * information needed for the computations. The struct contains some members
46 * that must be set by the user, and others that are maintained by these
47 * routines, somewhat like a C++ class but with no encapsulation.
48 *
49 * Routine prjini() is provided to initialize the prjprm struct with default
50 * values, prjfree() reclaims any memory that may have been allocated to store
51 * an error message, and prjprt() prints its contents.
52 *
53 * Setup routines for each projection with names of the form ???set(), where
54 * "???" is the down-cased three-letter projection code, compute intermediate
55 * values in the prjprm struct from parameters in it that were supplied by the
56 * user. The struct always needs to be set by the projection's setup routine
57 * but that need not be called explicitly - refer to the explanation of
58 * prjprm::flag.
59 *
60 * Each map projection is implemented via separate functions for the spherical
61 * projection, ???s2x(), and deprojection, ???x2s().
62 *
63 * A set of driver routines, prjset(), prjx2s(), and prjs2x(), provides a
64 * generic interface to the specific projection routines which they invoke
65 * via pointers-to-functions stored in the prjprm struct.
66 *
67 * In summary, the routines are:
68 * - prjini() Initialization routine for the prjprm struct.
69 * - prjprt() Routine to print the prjprm struct.
70 *
71 * - prjset(), prjx2s(), prjs2x(): Generic driver routines
72 *
73 * - azpset(), azpx2s(), azps2x(): AZP (zenithal/azimuthal perspective)
74 * - szpset(), szpx2s(), szps2x(): SZP (slant zenithal perspective)
75 * - tanset(), tanx2s(), tans2x(): TAN (gnomonic)
76 * - stgset(), stgx2s(), stgs2x(): STG (stereographic)
77 * - sinset(), sinx2s(), sins2x(): SIN (orthographic/synthesis)
78 * - arcset(), arcx2s(), arcs2x(): ARC (zenithal/azimuthal equidistant)
79 * - zpnset(), zpnx2s(), zpns2x(): ZPN (zenithal/azimuthal polynomial)
80 * - zeaset(), zeax2s(), zeas2x(): ZEA (zenithal/azimuthal equal area)
81 * - airset(), airx2s(), airs2x(): AIR (Airy)
82 * - cypset(), cypx2s(), cyps2x(): CYP (cylindrical perspective)
83 * - ceaset(), ceax2s(), ceas2x(): CEA (cylindrical equal area)
84 * - carset(), carx2s(), cars2x(): CAR (Plate carree)
85 * - merset(), merx2s(), mers2x(): MER (Mercator)
86 * - sflset(), sflx2s(), sfls2x(): SFL (Sanson-Flamsteed)
87 * - parset(), parx2s(), pars2x(): PAR (parabolic)
88 * - molset(), molx2s(), mols2x(): MOL (Mollweide)
89 * - aitset(), aitx2s(), aits2x(): AIT (Hammer-Aitoff)
90 * - copset(), copx2s(), cops2x(): COP (conic perspective)
91 * - coeset(), coex2s(), coes2x(): COE (conic equal area)
92 * - codset(), codx2s(), cods2x(): COD (conic equidistant)
93 * - cooset(), coox2s(), coos2x(): COO (conic orthomorphic)
94 * - bonset(), bonx2s(), bons2x(): BON (Bonne)
95 * - pcoset(), pcox2s(), pcos2x(): PCO (polyconic)
96 * - tscset(), tscx2s(), tscs2x(): TSC (tangential spherical cube)
97 * - cscset(), cscx2s(), cscs2x(): CSC (COBE spherical cube)
98 * - qscset(), qscx2s(), qscs2x(): QSC (quadrilateralized spherical cube)
99 * - hpxset(), hpxx2s(), hpxs2x(): HPX (HEALPix)
100 * - xphset(), xphx2s(), xphs2x(): XPH (HEALPix polar, aka "butterfly")
101 *
102 * Argument checking (projection routines):
103 * ----------------------------------------
104 * The values of phi and theta (the native longitude and latitude) normally lie
105 * in the range [-180,180] for phi, and [-90,90] for theta. However, all
106 * projection routines will accept any value of phi and will not normalize it.
107 *
108 * The projection routines do not explicitly check that theta lies within the
109 * range [-90,90]. They do check for any value of theta that produces an
110 * invalid argument to the projection equations (e.g. leading to division by
111 * zero). The projection routines for AZP, SZP, TAN, SIN, ZPN, and COP also
112 * return error 2 if (phi,theta) corresponds to the overlapped (far) side of
113 * the projection but also return the corresponding value of (x,y). This
114 * strict bounds checking may be relaxed at any time by setting prjprm::bounds
115 * to 0 (rather than 1); the projections need not be reinitialized.
116 *
117 * Argument checking (deprojection routines):
118 * ------------------------------------------
119 * Error checking on the projected coordinates (x,y) is limited to that
120 * required to ascertain whether a solution exists. Where a solution does
121 * exist no check is made that the value of phi and theta obtained lie within
122 * the ranges [-180,180] for phi, and [-90,90] for theta.
123 *
124 * Accuracy:
125 * ---------
126 * No warranty is given for the accuracy of these routines (refer to the
127 * copyright notice); intending users must satisfy for themselves their
128 * adequacy for the intended purpose. However, closure to a precision of at
129 * least 1E-10 degree of longitude and latitude has been verified for typical
130 * projection parameters on the 1 degree graticule of native longitude and
131 * latitude (to within 5 degrees of any latitude where the projection may
132 * diverge). Refer to the tprj1.c and tprj2.c test routines that accompany
133 * this software.
134 *
135 *
136 * prjini() - Default constructor for the prjprm struct
137 * ----------------------------------------------------
138 * prjini() sets all members of a prjprm struct to default values. It should
139 * be used to initialize every prjprm struct.
140 *
141 * Returned:
142 * prj struct prjprm*
143 * Projection parameters.
144 *
145 * Function return value:
146 * int Status return value:
147 * 0: Success.
148 * 1: Null prjprm pointer passed.
149 *
150 *
151 * prjfree() - Destructor for the prjprm struct
152 * --------------------------------------------
153 * prjfree() frees any memory that may have been allocated to store an error
154 * message in the prjprm struct.
155 *
156 * Given:
157 * prj struct prjprm*
158 * Projection parameters.
159 *
160 * Function return value:
161 * int Status return value:
162 * 0: Success.
163 * 1: Null prjprm pointer passed.
164 *
165 *
166 * prjprt() - Print routine for the prjprm struct
167 * ----------------------------------------------
168 * prjprt() prints the contents of a prjprm struct using wcsprintf(). Mainly
169 * intended for diagnostic purposes.
170 *
171 * Given:
172 * prj const struct prjprm*
173 * Projection parameters.
174 *
175 * Function return value:
176 * int Status return value:
177 * 0: Success.
178 * 1: Null prjprm pointer passed.
179 *
180 *
181 * prjset() - Generic setup routine for the prjprm struct
182 * ------------------------------------------------------
183 * prjset() sets up a prjprm struct according to information supplied within
184 * it.
185 *
186 * Note that this routine need not be called directly; it will be invoked by
187 * prjx2s() and prjs2x() if prj.flag is anything other than a predefined magic
188 * value.
189 *
190 * The one important distinction between prjset() and the setup routines for
191 * the specific projections is that the projection code must be defined in the
192 * prjprm struct in order for prjset() to identify the required projection.
193 * Once prjset() has initialized the prjprm struct, prjx2s() and prjs2x() use
194 * the pointers to the specific projection and deprojection routines contained
195 * therein.
196 *
197 * Given and returned:
198 * prj struct prjprm*
199 * Projection parameters.
200 *
201 * Function return value:
202 * int Status return value:
203 * 0: Success.
204 * 1: Null prjprm pointer passed.
205 * 2: Invalid projection parameters.
206 *
207 * For returns > 1, a detailed error message is set in
208 * prjprm::err if enabled, see wcserr_enable().
209 *
210 *
211 * prjx2s() - Generic Cartesian-to-spherical deprojection
212 * ------------------------------------------------------
213 * Deproject Cartesian (x,y) coordinates in the plane of projection to native
214 * spherical coordinates (phi,theta).
215 *
216 * The projection is that specified by prjprm::code.
217 *
218 * Given and returned:
219 * prj struct prjprm*
220 * Projection parameters.
221 *
222 * Given:
223 * nx,ny int Vector lengths.
224 *
225 * sxy,spt int Vector strides.
226 *
227 * x,y const double[]
228 * Projected coordinates.
229 *
230 * Returned:
231 * phi,theta double[] Longitude and latitude (phi,theta) of the projected
232 * point in native spherical coordinates [deg].
233 *
234 * stat int[] Status return value for each vector element:
235 * 0: Success.
236 * 1: Invalid value of (x,y).
237 *
238 * Function return value:
239 * int Status return value:
240 * 0: Success.
241 * 1: Null prjprm pointer passed.
242 * 2: Invalid projection parameters.
243 * 3: One or more of the (x,y) coordinates were
244 * invalid, as indicated by the stat vector.
245 *
246 * For returns > 1, a detailed error message is set in
247 * prjprm::err if enabled, see wcserr_enable().
248 *
249 *
250 * prjs2x() - Generic spherical-to-Cartesian projection
251 * ----------------------------------------------------
252 * Project native spherical coordinates (phi,theta) to Cartesian (x,y)
253 * coordinates in the plane of projection.
254 *
255 * The projection is that specified by prjprm::code.
256 *
257 * Given and returned:
258 * prj struct prjprm*
259 * Projection parameters.
260 *
261 * Given:
262 * nphi,
263 * ntheta int Vector lengths.
264 *
265 * spt,sxy int Vector strides.
266 *
267 * phi,theta const double[]
268 * Longitude and latitude (phi,theta) of the projected
269 * point in native spherical coordinates [deg].
270 *
271 * Returned:
272 * x,y double[] Projected coordinates.
273 *
274 * stat int[] Status return value for each vector element:
275 * 0: Success.
276 * 1: Invalid value of (phi,theta).
277 *
278 * Function return value:
279 * int Status return value:
280 * 0: Success.
281 * 1: Null prjprm pointer passed.
282 * 2: Invalid projection parameters.
283 * 4: One or more of the (phi,theta) coordinates
284 * were, invalid, as indicated by the stat vector.
285 *
286 * For returns > 1, a detailed error message is set in
287 * prjprm::err if enabled, see wcserr_enable().
288 *
289 *
290 * ???set() - Specific setup routines for the prjprm struct
291 * --------------------------------------------------------
292 * Set up a prjprm struct for a particular projection according to information
293 * supplied within it.
294 *
295 * Given and returned:
296 * prj struct prjprm*
297 * Projection parameters.
298 *
299 * Function return value:
300 * int Status return value:
301 * 0: Success.
302 * 1: Null prjprm pointer passed.
303 * 2: Invalid projection parameters.
304 *
305 * For returns > 1, a detailed error message is set in
306 * prjprm::err if enabled, see wcserr_enable().
307 *
308 *
309 * ???x2s() - Specific Cartesian-to-spherical deprojection routines
310 * ----------------------------------------------------------------
311 * Transform (x,y) coordinates in the plane of projection to native spherical
312 * coordinates (phi,theta).
313 *
314 * Given and returned:
315 * prj struct prjprm*
316 * Projection parameters.
317 *
318 * Given:
319 * nx,ny int Vector lengths.
320 *
321 * sxy,spt int Vector strides.
322 *
323 * x,y const double[]
324 * Projected coordinates.
325 *
326 * Returned:
327 * phi,theta double[] Longitude and latitude of the projected point in
328 * native spherical coordinates [deg].
329 *
330 * stat int[] Status return value for each vector element:
331 * 0: Success.
332 * 1: Invalid value of (x,y).
333 *
334 * Function return value:
335 * int Status return value:
336 * 0: Success.
337 * 1: Null prjprm pointer passed.
338 * 2: Invalid projection parameters.
339 * 3: One or more of the (x,y) coordinates were
340 * invalid, as indicated by the stat vector.
341 *
342 * For returns > 1, a detailed error message is set in
343 * prjprm::err if enabled, see wcserr_enable().
344 *
345 *
346 * ???s2x() - Specific spherical-to-Cartesian projection routines
347 *---------------------------------------------------------------
348 * Transform native spherical coordinates (phi,theta) to (x,y) coordinates in
349 * the plane of projection.
350 *
351 * Given and returned:
352 * prj struct prjprm*
353 * Projection parameters.
354 *
355 * Given:
356 * nphi,
357 * ntheta int Vector lengths.
358 *
359 * spt,sxy int Vector strides.
360 *
361 * phi,theta const double[]
362 * Longitude and latitude of the projected point in
363 * native spherical coordinates [deg].
364 *
365 * Returned:
366 * x,y double[] Projected coordinates.
367 *
368 * stat int[] Status return value for each vector element:
369 * 0: Success.
370 * 1: Invalid value of (phi,theta).
371 *
372 * Function return value:
373 * int Status return value:
374 * 0: Success.
375 * 1: Null prjprm pointer passed.
376 * 2: Invalid projection parameters.
377 * 4: One or more of the (phi,theta) coordinates
378 * were, invalid, as indicated by the stat vector.
379 *
380 * For returns > 1, a detailed error message is set in
381 * prjprm::err if enabled, see wcserr_enable().
382 *
383 *
384 * prjprm struct - Projection parameters
385 * -------------------------------------
386 * The prjprm struct contains all information needed to project or deproject
387 * native spherical coordinates. It consists of certain members that must be
388 * set by the user ("given") and others that are set by the WCSLIB routines
389 * ("returned"). Some of the latter are supplied for informational purposes
390 * while others are for internal use only.
391 *
392 * int flag
393 * (Given and returned) This flag must be set to zero whenever any of the
394 * following prjprm struct members are set or changed:
395 *
396 * - prjprm::code,
397 * - prjprm::r0,
398 * - prjprm::pv[],
399 * - prjprm::phi0,
400 * - prjprm::theta0.
401 *
402 * This signals the initialization routine (prjset() or ???set()) to
403 * recompute the returned members of the prjprm struct. flag will then be
404 * reset to indicate that this has been done.
405 *
406 * Note that flag need not be reset when prjprm::bounds is changed.
407 *
408 * char code[4]
409 * (Given) Three-letter projection code defined by the FITS standard.
410 *
411 * double r0
412 * (Given) The radius of the generating sphere for the projection, a linear
413 * scaling parameter. If this is zero, it will be reset to its default
414 * value of 180/pi (the value for FITS WCS).
415 *
416 * double pv[30]
417 * (Given) Projection parameters. These correspond to the PVi_ma keywords
418 * in FITS, so pv[0] is PVi_0a, pv[1] is PVi_1a, etc., where i denotes the
419 * latitude-like axis. Many projections use pv[1] (PVi_1a), some also use
420 * pv[2] (PVi_2a) and SZP uses pv[3] (PVi_3a). ZPN is currently the only
421 * projection that uses any of the others.
422 *
423 * Usage of the pv[] array as it applies to each projection is described in
424 * the prologue to each trio of projection routines in prj.c.
425 *
426 * double phi0
427 * (Given) The native longitude, phi_0 [deg], and ...
428 * double theta0
429 * (Given) ... the native latitude, theta_0 [deg], of the reference point,
430 * i.e. the point (x,y) = (0,0). If undefined (set to a magic value by
431 * prjini()) the initialization routine will set this to a
432 * projection-specific default.
433 *
434 * int bounds
435 * (Given) Controls strict bounds checking for the AZP, SZP, TAN, SIN, ZPN,
436 * and COP projections; set to zero to disable checking.
437 *
438 * The remaining members of the prjprm struct are maintained by the setup
439 * routines and must not be modified elsewhere:
440 *
441 * char name[40]
442 * (Returned) Long name of the projection.
443 *
444 * Provided for information only, not used by the projection routines.
445 *
446 * int category
447 * (Returned) Projection category matching the value of the relevant global
448 * variable:
449 *
450 * - ZENITHAL,
451 * - CYLINDRICAL,
452 * - PSEUDOCYLINDRICAL,
453 * - CONVENTIONAL,
454 * - CONIC,
455 * - POLYCONIC,
456 * - QUADCUBE, and
457 * - HEALPIX.
458 *
459 * The category name may be identified via the prj_categories character
460 * array, e.g.
461 *
462 = struct prjprm prj;
463 = ...
464 = printf("%s\n", prj_categories[prj.category]);
465 *
466 * Provided for information only, not used by the projection routines.
467 *
468 * int pvrange
469 * (Returned) Range of projection parameter indices: 100 times the first
470 * allowed index plus the number of parameters, e.g. TAN is 0 (no
471 * parameters), SZP is 103 (1 to 3), and ZPN is 30 (0 to 29).
472 *
473 * Provided for information only, not used by the projection routines.
474 *
475 * int simplezen
476 * (Returned) True if the projection is a radially-symmetric zenithal
477 * projection.
478 *
479 * Provided for information only, not used by the projection routines.
480 *
481 * int equiareal
482 * (Returned) True if the projection is equal area.
483 *
484 * Provided for information only, not used by the projection routines.
485 *
486 * int conformal
487 * (Returned) True if the projection is conformal.
488 *
489 * Provided for information only, not used by the projection routines.
490 *
491 * int global
492 * (Returned) True if the projection can represent the whole sphere in a
493 * finite, non-overlapped mapping.
494 *
495 * Provided for information only, not used by the projection routines.
496 *
497 * int divergent
498 * (Returned) True if the projection diverges in latitude.
499 *
500 * Provided for information only, not used by the projection routines.
501 *
502 * double x0
503 * (Returned) The offset in x, and ...
504 * double y0
505 * (Returned) ... the offset in y used to force (x,y) = (0,0) at
506 * (phi_0,theta_0).
507 *
508 * struct wcserr *err
509 * (Returned) If enabled, when an error status is returned this struct
510 * contains detailed information about the error, see wcserr_enable().
511 *
512 * void *padding
513 * (An unused variable inserted for alignment purposes only.)
514 *
515 * double w[10]
516 * (Returned) Intermediate floating-point values derived from the
517 * projection parameters, cached here to save recomputation.
518 *
519 * Usage of the w[] array as it applies to each projection is described in
520 * the prologue to each trio of projection routines in prj.c.
521 *
522 * int n
523 * (Returned) Intermediate integer value (used only for the ZPN and HPX
524 * projections).
525 *
526 * int (*prjx2s)(PRJX2S_ARGS)
527 * (Returned) Pointer to the projection ...
528 * int (*prjs2x)(PRJ_ARGS)
529 * (Returned) ... and deprojection routines.
530 *
531 *
532 * Global variable: const char *prj_errmsg[] - Status return messages
533 * ------------------------------------------------------------------
534 * Error messages to match the status value returned from each function.
535 *
536 *===========================================================================*/
537 
538 #ifndef WCSLIB_PROJ
539 #define WCSLIB_PROJ
540 
541 #include "wcserr.h"
542 
543 #ifdef __cplusplus
544 extern "C" {
545 #endif
546 
547 
548 /* Total number of projection parameters; 0 to PVN-1. */
549 #define PVN 30
550 
551 extern const char *prj_errmsg[];
552 
554  PRJERR_SUCCESS = 0, /* Success. */
555  PRJERR_NULL_POINTER = 1, /* Null prjprm pointer passed. */
556  PRJERR_BAD_PARAM = 2, /* Invalid projection parameters. */
557  PRJERR_BAD_PIX = 3, /* One or more of the (x, y) coordinates were
558  invalid. */
559  PRJERR_BAD_WORLD = 4 /* One or more of the (phi, theta) coordinates
560  were invalid. */
561 };
562 
563 extern const int CONIC, CONVENTIONAL, CYLINDRICAL, POLYCONIC,
565 extern const char prj_categories[9][32];
566 
567 extern const int prj_ncode;
568 extern const char prj_codes[28][4];
569 
570 #ifdef PRJX2S_ARGS
571 #undef PRJX2S_ARGS
572 #endif
573 
574 #ifdef PRJS2X_ARGS
575 #undef PRJS2X_ARGS
576 #endif
577 
578 /* For use in declaring deprojection function prototypes. */
579 #define PRJX2S_ARGS struct prjprm *prj, int nx, int ny, int sxy, int spt, \
580 const double x[], const double y[], double phi[], double theta[], int stat[]
581 
582 /* For use in declaring projection function prototypes. */
583 #define PRJS2X_ARGS struct prjprm *prj, int nx, int ny, int sxy, int spt, \
584 const double phi[], const double theta[], double x[], double y[], int stat[]
585 
586 
587 struct prjprm {
588  /* Initialization flag (see the prologue above). */
589  /*------------------------------------------------------------------------*/
590  int flag; /* Set to zero to force initialization. */
591 
592  /* Parameters to be provided (see the prologue above). */
593  /*------------------------------------------------------------------------*/
594  char code[4]; /* Three-letter projection code. */
595  double r0; /* Radius of the generating sphere. */
596  double pv[PVN]; /* Projection parameters. */
597  double phi0, theta0; /* Fiducial native coordinates. */
598  int bounds; /* Enable strict bounds checking. */
599 
600  /* Information derived from the parameters supplied. */
601  /*------------------------------------------------------------------------*/
602  char name[40]; /* Projection name. */
603  int category; /* Projection category. */
604  int pvrange; /* Range of projection parameter indices. */
605  int simplezen; /* Is it a simple zenithal projection? */
606  int equiareal; /* Is it an equal area projection? */
607  int conformal; /* Is it a conformal projection? */
608  int global; /* Can it map the whole sphere? */
609  int divergent; /* Does the projection diverge in latitude? */
610  double x0, y0; /* Fiducial offsets. */
611 
612  /* Error handling */
613  /*------------------------------------------------------------------------*/
614  struct wcserr *err;
615 
616  /* Private */
617  /*------------------------------------------------------------------------*/
618  void *padding; /* (Dummy inserted for alignment purposes.) */
619  double w[10]; /* Intermediate values. */
620  int m, n; /* Intermediate values. */
621 
622  int (*prjx2s)(PRJX2S_ARGS); /* Pointers to the spherical projection and */
623  int (*prjs2x)(PRJS2X_ARGS); /* deprojection functions. */
624 };
625 
626 /* Size of the prjprm struct in int units, used by the Fortran wrappers. */
627 #define PRJLEN (sizeof(struct prjprm)/sizeof(int))
628 
629 
630 /* Use the preprocessor to help declare function prototypes (see above). */
631 int prjini(struct prjprm *prj);
632 int prjfree(struct prjprm *prj);
633 int prjprt(const struct prjprm *prj);
634 
635 int prjset(struct prjprm *prj);
636 int prjx2s(PRJX2S_ARGS);
637 int prjs2x(PRJS2X_ARGS);
638 
639 int azpset(struct prjprm *prj);
640 int azpx2s(PRJX2S_ARGS);
641 int azps2x(PRJS2X_ARGS);
642 
643 int szpset(struct prjprm *prj);
644 int szpx2s(PRJX2S_ARGS);
645 int szps2x(PRJS2X_ARGS);
646 
647 int tanset(struct prjprm *prj);
648 int tanx2s(PRJX2S_ARGS);
649 int tans2x(PRJS2X_ARGS);
650 
651 int stgset(struct prjprm *prj);
652 int stgx2s(PRJX2S_ARGS);
653 int stgs2x(PRJS2X_ARGS);
654 
655 int sinset(struct prjprm *prj);
656 int sinx2s(PRJX2S_ARGS);
657 int sins2x(PRJS2X_ARGS);
658 
659 int arcset(struct prjprm *prj);
660 int arcx2s(PRJX2S_ARGS);
661 int arcs2x(PRJS2X_ARGS);
662 
663 int zpnset(struct prjprm *prj);
664 int zpnx2s(PRJX2S_ARGS);
665 int zpns2x(PRJS2X_ARGS);
666 
667 int zeaset(struct prjprm *prj);
668 int zeax2s(PRJX2S_ARGS);
669 int zeas2x(PRJS2X_ARGS);
670 
671 int airset(struct prjprm *prj);
672 int airx2s(PRJX2S_ARGS);
673 int airs2x(PRJS2X_ARGS);
674 
675 int cypset(struct prjprm *prj);
676 int cypx2s(PRJX2S_ARGS);
677 int cyps2x(PRJS2X_ARGS);
678 
679 int ceaset(struct prjprm *prj);
680 int ceax2s(PRJX2S_ARGS);
681 int ceas2x(PRJS2X_ARGS);
682 
683 int carset(struct prjprm *prj);
684 int carx2s(PRJX2S_ARGS);
685 int cars2x(PRJS2X_ARGS);
686 
687 int merset(struct prjprm *prj);
688 int merx2s(PRJX2S_ARGS);
689 int mers2x(PRJS2X_ARGS);
690 
691 int sflset(struct prjprm *prj);
692 int sflx2s(PRJX2S_ARGS);
693 int sfls2x(PRJS2X_ARGS);
694 
695 int parset(struct prjprm *prj);
696 int parx2s(PRJX2S_ARGS);
697 int pars2x(PRJS2X_ARGS);
698 
699 int molset(struct prjprm *prj);
700 int molx2s(PRJX2S_ARGS);
701 int mols2x(PRJS2X_ARGS);
702 
703 int aitset(struct prjprm *prj);
704 int aitx2s(PRJX2S_ARGS);
705 int aits2x(PRJS2X_ARGS);
706 
707 int copset(struct prjprm *prj);
708 int copx2s(PRJX2S_ARGS);
709 int cops2x(PRJS2X_ARGS);
710 
711 int coeset(struct prjprm *prj);
712 int coex2s(PRJX2S_ARGS);
713 int coes2x(PRJS2X_ARGS);
714 
715 int codset(struct prjprm *prj);
716 int codx2s(PRJX2S_ARGS);
717 int cods2x(PRJS2X_ARGS);
718 
719 int cooset(struct prjprm *prj);
720 int coox2s(PRJX2S_ARGS);
721 int coos2x(PRJS2X_ARGS);
722 
723 int bonset(struct prjprm *prj);
724 int bonx2s(PRJX2S_ARGS);
725 int bons2x(PRJS2X_ARGS);
726 
727 int pcoset(struct prjprm *prj);
728 int pcox2s(PRJX2S_ARGS);
729 int pcos2x(PRJS2X_ARGS);
730 
731 int tscset(struct prjprm *prj);
732 int tscx2s(PRJX2S_ARGS);
733 int tscs2x(PRJS2X_ARGS);
734 
735 int cscset(struct prjprm *prj);
736 int cscx2s(PRJX2S_ARGS);
737 int cscs2x(PRJS2X_ARGS);
738 
739 int qscset(struct prjprm *prj);
740 int qscx2s(PRJX2S_ARGS);
741 int qscs2x(PRJS2X_ARGS);
742 
743 int hpxset(struct prjprm *prj);
744 int hpxx2s(PRJX2S_ARGS);
745 int hpxs2x(PRJS2X_ARGS);
746 
747 int xphset(struct prjprm *prj);
748 int xphx2s(PRJX2S_ARGS);
749 int xphs2x(PRJS2X_ARGS);
750 
751 
752 /* Deprecated. */
753 #define prjini_errmsg prj_errmsg
754 #define prjprt_errmsg prj_errmsg
755 #define prjset_errmsg prj_errmsg
756 #define prjx2s_errmsg prj_errmsg
757 #define prjs2x_errmsg prj_errmsg
758 
759 #ifdef __cplusplus
760 }
761 #endif
762 
763 #endif /* WCSLIB_PROJ */