1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>WCSLIB 4.8.2: prj.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="annotated.html"><span>Data Structures</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<h1>prj.h</h1><a href="prj_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*============================================================================</span>
<a name="l00002"></a>00002 <span class="comment"></span>
<a name="l00003"></a>00003 <span class="comment"> WCSLIB 4.8 - an implementation of the FITS WCS standard.</span>
<a name="l00004"></a>00004 <span class="comment"> Copyright (C) 1995-2011, Mark Calabretta</span>
<a name="l00005"></a>00005 <span class="comment"></span>
<a name="l00006"></a>00006 <span class="comment"> This file is part of WCSLIB.</span>
<a name="l00007"></a>00007 <span class="comment"></span>
<a name="l00008"></a>00008 <span class="comment"> WCSLIB is free software: you can redistribute it and/or modify it under the</span>
<a name="l00009"></a>00009 <span class="comment"> terms of the GNU Lesser General Public License as published by the Free</span>
<a name="l00010"></a>00010 <span class="comment"> Software Foundation, either version 3 of the License, or (at your option)</span>
<a name="l00011"></a>00011 <span class="comment"> any later version.</span>
<a name="l00012"></a>00012 <span class="comment"></span>
<a name="l00013"></a>00013 <span class="comment"> WCSLIB is distributed in the hope that it will be useful, but WITHOUT ANY</span>
<a name="l00014"></a>00014 <span class="comment"> WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span>
<a name="l00015"></a>00015 <span class="comment"> FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for</span>
<a name="l00016"></a>00016 <span class="comment"> more details.</span>
<a name="l00017"></a>00017 <span class="comment"></span>
<a name="l00018"></a>00018 <span class="comment"> You should have received a copy of the GNU Lesser General Public License</span>
<a name="l00019"></a>00019 <span class="comment"> along with WCSLIB. If not, see <http://www.gnu.org/licenses/>.</span>
<a name="l00020"></a>00020 <span class="comment"></span>
<a name="l00021"></a>00021 <span class="comment"> Correspondence concerning WCSLIB may be directed to:</span>
<a name="l00022"></a>00022 <span class="comment"> Internet email: mcalabre@atnf.csiro.au</span>
<a name="l00023"></a>00023 <span class="comment"> Postal address: Dr. Mark Calabretta</span>
<a name="l00024"></a>00024 <span class="comment"> Australia Telescope National Facility, CSIRO</span>
<a name="l00025"></a>00025 <span class="comment"> PO Box 76</span>
<a name="l00026"></a>00026 <span class="comment"> Epping NSW 1710</span>
<a name="l00027"></a>00027 <span class="comment"> AUSTRALIA</span>
<a name="l00028"></a>00028 <span class="comment"></span>
<a name="l00029"></a>00029 <span class="comment"> Author: Mark Calabretta, Australia Telescope National Facility</span>
<a name="l00030"></a>00030 <span class="comment"> http://www.atnf.csiro.au/~mcalabre/index.html</span>
<a name="l00031"></a>00031 <span class="comment"> $Id: prj.h,v 4.8.1.1 2011/08/15 08:07:06 cal103 Exp cal103 $</span>
<a name="l00032"></a>00032 <span class="comment">*=============================================================================</span>
<a name="l00033"></a>00033 <span class="comment">*</span>
<a name="l00034"></a>00034 <span class="comment">* WCSLIB 4.8 - C routines that implement the spherical map projections</span>
<a name="l00035"></a>00035 <span class="comment">* recognized by the FITS World Coordinate System (WCS) standard. Refer to</span>
<a name="l00036"></a>00036 <span class="comment">*</span>
<a name="l00037"></a>00037 <span class="comment">* "Representations of world coordinates in FITS",</span>
<a name="l00038"></a>00038 <span class="comment">* Greisen, E.W., & Calabretta, M.R. 2002, A&A, 395, 1061 (Paper I)</span>
<a name="l00039"></a>00039 <span class="comment">*</span>
<a name="l00040"></a>00040 <span class="comment">* "Representations of celestial coordinates in FITS",</span>
<a name="l00041"></a>00041 <span class="comment">* Calabretta, M.R., & Greisen, E.W. 2002, A&A, 395, 1077 (Paper II)</span>
<a name="l00042"></a>00042 <span class="comment">*</span>
<a name="l00043"></a>00043 <span class="comment">* Refer to the README file provided with WCSLIB for an overview of the</span>
<a name="l00044"></a>00044 <span class="comment">* library.</span>
<a name="l00045"></a>00045 <span class="comment">*</span>
<a name="l00046"></a>00046 <span class="comment">*</span>
<a name="l00047"></a>00047 <span class="comment">* Summary of the prj routines</span>
<a name="l00048"></a>00048 <span class="comment">* ---------------------------</span>
<a name="l00049"></a>00049 <span class="comment">* These routines implement the spherical map projections defined by the FITS</span>
<a name="l00050"></a>00050 <span class="comment">* WCS standard. They are based on the prjprm struct which contains all</span>
<a name="l00051"></a>00051 <span class="comment">* information needed for the computations. The struct contains some members</span>
<a name="l00052"></a>00052 <span class="comment">* that must be set by the user, and others that are maintained by these</span>
<a name="l00053"></a>00053 <span class="comment">* routines, somewhat like a C++ class but with no encapsulation.</span>
<a name="l00054"></a>00054 <span class="comment">*</span>
<a name="l00055"></a>00055 <span class="comment">* Routine prjini() is provided to initialize the prjprm struct with default</span>
<a name="l00056"></a>00056 <span class="comment">* values, prjfree() reclaims any memory that may have been allocated to store</span>
<a name="l00057"></a>00057 <span class="comment">* an error message, and prjprt() prints its contents.</span>
<a name="l00058"></a>00058 <span class="comment">*</span>
<a name="l00059"></a>00059 <span class="comment">* Setup routines for each projection with names of the form ???set(), where</span>
<a name="l00060"></a>00060 <span class="comment">* "???" is the down-cased three-letter projection code, compute intermediate</span>
<a name="l00061"></a>00061 <span class="comment">* values in the prjprm struct from parameters in it that were supplied by the</span>
<a name="l00062"></a>00062 <span class="comment">* user. The struct always needs to be set by the projection's setup routine</span>
<a name="l00063"></a>00063 <span class="comment">* but that need not be called explicitly - refer to the explanation of</span>
<a name="l00064"></a>00064 <span class="comment">* prjprm::flag.</span>
<a name="l00065"></a>00065 <span class="comment">*</span>
<a name="l00066"></a>00066 <span class="comment">* Each map projection is implemented via separate functions for the spherical</span>
<a name="l00067"></a>00067 <span class="comment">* projection, ???s2x(), and deprojection, ???x2s().</span>
<a name="l00068"></a>00068 <span class="comment">*</span>
<a name="l00069"></a>00069 <span class="comment">* A set of driver routines, prjset(), prjx2s(), and prjs2x(), provides a</span>
<a name="l00070"></a>00070 <span class="comment">* generic interface to the specific projection routines which they invoke</span>
<a name="l00071"></a>00071 <span class="comment">* via pointers-to-functions stored in the prjprm struct.</span>
<a name="l00072"></a>00072 <span class="comment">*</span>
<a name="l00073"></a>00073 <span class="comment">* In summary, the routines are:</span>
<a name="l00074"></a>00074 <span class="comment">* - prjini() Initialization routine for the prjprm struct.</span>
<a name="l00075"></a>00075 <span class="comment">* - prjprt() Routine to print the prjprm struct.</span>
<a name="l00076"></a>00076 <span class="comment">*</span>
<a name="l00077"></a>00077 <span class="comment">* - prjset(), prjx2s(), prjs2x(): Generic driver routines</span>
<a name="l00078"></a>00078 <span class="comment">*</span>
<a name="l00079"></a>00079 <span class="comment">* - azpset(), azpx2s(), azps2x(): AZP (zenithal/azimuthal perspective)</span>
<a name="l00080"></a>00080 <span class="comment">* - szpset(), szpx2s(), szps2x(): SZP (slant zenithal perspective)</span>
<a name="l00081"></a>00081 <span class="comment">* - tanset(), tanx2s(), tans2x(): TAN (gnomonic)</span>
<a name="l00082"></a>00082 <span class="comment">* - stgset(), stgx2s(), stgs2x(): STG (stereographic)</span>
<a name="l00083"></a>00083 <span class="comment">* - sinset(), sinx2s(), sins2x(): SIN (orthographic/synthesis)</span>
<a name="l00084"></a>00084 <span class="comment">* - arcset(), arcx2s(), arcs2x(): ARC (zenithal/azimuthal equidistant)</span>
<a name="l00085"></a>00085 <span class="comment">* - zpnset(), zpnx2s(), zpns2x(): ZPN (zenithal/azimuthal polynomial)</span>
<a name="l00086"></a>00086 <span class="comment">* - zeaset(), zeax2s(), zeas2x(): ZEA (zenithal/azimuthal equal area)</span>
<a name="l00087"></a>00087 <span class="comment">* - airset(), airx2s(), airs2x(): AIR (Airy)</span>
<a name="l00088"></a>00088 <span class="comment">* - cypset(), cypx2s(), cyps2x(): CYP (cylindrical perspective)</span>
<a name="l00089"></a>00089 <span class="comment">* - ceaset(), ceax2s(), ceas2x(): CEA (cylindrical equal area)</span>
<a name="l00090"></a>00090 <span class="comment">* - carset(), carx2s(), cars2x(): CAR (Plate carree)</span>
<a name="l00091"></a>00091 <span class="comment">* - merset(), merx2s(), mers2x(): MER (Mercator)</span>
<a name="l00092"></a>00092 <span class="comment">* - sflset(), sflx2s(), sfls2x(): SFL (Sanson-Flamsteed)</span>
<a name="l00093"></a>00093 <span class="comment">* - parset(), parx2s(), pars2x(): PAR (parabolic)</span>
<a name="l00094"></a>00094 <span class="comment">* - molset(), molx2s(), mols2x(): MOL (Mollweide)</span>
<a name="l00095"></a>00095 <span class="comment">* - aitset(), aitx2s(), aits2x(): AIT (Hammer-Aitoff)</span>
<a name="l00096"></a>00096 <span class="comment">* - copset(), copx2s(), cops2x(): COP (conic perspective)</span>
<a name="l00097"></a>00097 <span class="comment">* - coeset(), coex2s(), coes2x(): COE (conic equal area)</span>
<a name="l00098"></a>00098 <span class="comment">* - codset(), codx2s(), cods2x(): COD (conic equidistant)</span>
<a name="l00099"></a>00099 <span class="comment">* - cooset(), coox2s(), coos2x(): COO (conic orthomorphic)</span>
<a name="l00100"></a>00100 <span class="comment">* - bonset(), bonx2s(), bons2x(): BON (Bonne)</span>
<a name="l00101"></a>00101 <span class="comment">* - pcoset(), pcox2s(), pcos2x(): PCO (polyconic)</span>
<a name="l00102"></a>00102 <span class="comment">* - tscset(), tscx2s(), tscs2x(): TSC (tangential spherical cube)</span>
<a name="l00103"></a>00103 <span class="comment">* - cscset(), cscx2s(), cscs2x(): CSC (COBE spherical cube)</span>
<a name="l00104"></a>00104 <span class="comment">* - qscset(), qscx2s(), qscs2x(): QSC (quadrilateralized spherical cube)</span>
<a name="l00105"></a>00105 <span class="comment">* - hpxset(), hpxx2s(), hpxs2x(): HPX (HEALPix)</span>
<a name="l00106"></a>00106 <span class="comment">*</span>
<a name="l00107"></a>00107 <span class="comment">* Argument checking (projection routines):</span>
<a name="l00108"></a>00108 <span class="comment">* ----------------------------------------</span>
<a name="l00109"></a>00109 <span class="comment">* The values of phi and theta (the native longitude and latitude) normally lie</span>
<a name="l00110"></a>00110 <span class="comment">* in the range [-180,180] for phi, and [-90,90] for theta. However, all</span>
<a name="l00111"></a>00111 <span class="comment">* projection routines will accept any value of phi and will not normalize it.</span>
<a name="l00112"></a>00112 <span class="comment">*</span>
<a name="l00113"></a>00113 <span class="comment">* The projection routines do not explicitly check that theta lies within the</span>
<a name="l00114"></a>00114 <span class="comment">* range [-90,90]. They do check for any value of theta that produces an</span>
<a name="l00115"></a>00115 <span class="comment">* invalid argument to the projection equations (e.g. leading to division by</span>
<a name="l00116"></a>00116 <span class="comment">* zero). The projection routines for AZP, SZP, TAN, SIN, ZPN, and COP also</span>
<a name="l00117"></a>00117 <span class="comment">* return error 2 if (phi,theta) corresponds to the overlapped (far) side of</span>
<a name="l00118"></a>00118 <span class="comment">* the projection but also return the corresponding value of (x,y). This</span>
<a name="l00119"></a>00119 <span class="comment">* strict bounds checking may be relaxed at any time by setting prjprm::bounds</span>
<a name="l00120"></a>00120 <span class="comment">* to 0 (rather than 1); the projections need not be reinitialized.</span>
<a name="l00121"></a>00121 <span class="comment">*</span>
<a name="l00122"></a>00122 <span class="comment">* Argument checking (deprojection routines):</span>
<a name="l00123"></a>00123 <span class="comment">* ------------------------------------------</span>
<a name="l00124"></a>00124 <span class="comment">* Error checking on the projected coordinates (x,y) is limited to that</span>
<a name="l00125"></a>00125 <span class="comment">* required to ascertain whether a solution exists. Where a solution does</span>
<a name="l00126"></a>00126 <span class="comment">* exist no check is made that the value of phi and theta obtained lie within</span>
<a name="l00127"></a>00127 <span class="comment">* the ranges [-180,180] for phi, and [-90,90] for theta.</span>
<a name="l00128"></a>00128 <span class="comment">*</span>
<a name="l00129"></a>00129 <span class="comment">* Accuracy:</span>
<a name="l00130"></a>00130 <span class="comment">* ---------</span>
<a name="l00131"></a>00131 <span class="comment">* No warranty is given for the accuracy of these routines (refer to the</span>
<a name="l00132"></a>00132 <span class="comment">* copyright notice); intending users must satisfy for themselves their</span>
<a name="l00133"></a>00133 <span class="comment">* adequacy for the intended purpose. However, closure to a precision of at</span>
<a name="l00134"></a>00134 <span class="comment">* least 1E-10 degree of longitude and latitude has been verified for typical</span>
<a name="l00135"></a>00135 <span class="comment">* projection parameters on the 1 degree graticule of native longitude and</span>
<a name="l00136"></a>00136 <span class="comment">* latitude (to within 5 degrees of any latitude where the projection may</span>
<a name="l00137"></a>00137 <span class="comment">* diverge). Refer to the tprj1.c and tprj2.c test routines that accompany</span>
<a name="l00138"></a>00138 <span class="comment">* this software.</span>
<a name="l00139"></a>00139 <span class="comment">*</span>
<a name="l00140"></a>00140 <span class="comment">*</span>
<a name="l00141"></a>00141 <span class="comment">* prjini() - Default constructor for the prjprm struct</span>
<a name="l00142"></a>00142 <span class="comment">* ----------------------------------------------------</span>
<a name="l00143"></a>00143 <span class="comment">* prjini() sets all members of a prjprm struct to default values. It should</span>
<a name="l00144"></a>00144 <span class="comment">* be used to initialize every prjprm struct.</span>
<a name="l00145"></a>00145 <span class="comment">*</span>
<a name="l00146"></a>00146 <span class="comment">* Returned:</span>
<a name="l00147"></a>00147 <span class="comment">* prj struct prjprm*</span>
<a name="l00148"></a>00148 <span class="comment">* Projection parameters.</span>
<a name="l00149"></a>00149 <span class="comment">*</span>
<a name="l00150"></a>00150 <span class="comment">* Function return value:</span>
<a name="l00151"></a>00151 <span class="comment">* int Status return value:</span>
<a name="l00152"></a>00152 <span class="comment">* 0: Success.</span>
<a name="l00153"></a>00153 <span class="comment">* 1: Null prjprm pointer passed.</span>
<a name="l00154"></a>00154 <span class="comment">*</span>
<a name="l00155"></a>00155 <span class="comment">*</span>
<a name="l00156"></a>00156 <span class="comment">* prjfree() - Destructor for the prjprm struct</span>
<a name="l00157"></a>00157 <span class="comment">* --------------------------------------------</span>
<a name="l00158"></a>00158 <span class="comment">* prjfree() frees any memory that may have been allocated to store an error</span>
<a name="l00159"></a>00159 <span class="comment">* message in the prjprm struct.</span>
<a name="l00160"></a>00160 <span class="comment">*</span>
<a name="l00161"></a>00161 <span class="comment">* Given:</span>
<a name="l00162"></a>00162 <span class="comment">* prj struct prjprm*</span>
<a name="l00163"></a>00163 <span class="comment">* Projection parameters.</span>
<a name="l00164"></a>00164 <span class="comment">*</span>
<a name="l00165"></a>00165 <span class="comment">* Function return value:</span>
<a name="l00166"></a>00166 <span class="comment">* int Status return value:</span>
<a name="l00167"></a>00167 <span class="comment">* 0: Success.</span>
<a name="l00168"></a>00168 <span class="comment">* 1: Null prjprm pointer passed.</span>
<a name="l00169"></a>00169 <span class="comment">*</span>
<a name="l00170"></a>00170 <span class="comment">*</span>
<a name="l00171"></a>00171 <span class="comment">* prjprt() - Print routine for the prjprm struct</span>
<a name="l00172"></a>00172 <span class="comment">* ----------------------------------------------</span>
<a name="l00173"></a>00173 <span class="comment">* prjprt() prints the contents of a prjprm struct using wcsprintf(). Mainly</span>
<a name="l00174"></a>00174 <span class="comment">* intended for diagnostic purposes.</span>
<a name="l00175"></a>00175 <span class="comment">*</span>
<a name="l00176"></a>00176 <span class="comment">* Given:</span>
<a name="l00177"></a>00177 <span class="comment">* prj const struct prjprm*</span>
<a name="l00178"></a>00178 <span class="comment">* Projection parameters.</span>
<a name="l00179"></a>00179 <span class="comment">*</span>
<a name="l00180"></a>00180 <span class="comment">* Function return value:</span>
<a name="l00181"></a>00181 <span class="comment">* int Status return value:</span>
<a name="l00182"></a>00182 <span class="comment">* 0: Success.</span>
<a name="l00183"></a>00183 <span class="comment">* 1: Null prjprm pointer passed.</span>
<a name="l00184"></a>00184 <span class="comment">*</span>
<a name="l00185"></a>00185 <span class="comment">*</span>
<a name="l00186"></a>00186 <span class="comment">* prjset() - Generic setup routine for the prjprm struct</span>
<a name="l00187"></a>00187 <span class="comment">* ------------------------------------------------------</span>
<a name="l00188"></a>00188 <span class="comment">* prjset() sets up a prjprm struct according to information supplied within</span>
<a name="l00189"></a>00189 <span class="comment">* it.</span>
<a name="l00190"></a>00190 <span class="comment">*</span>
<a name="l00191"></a>00191 <span class="comment">* Note that this routine need not be called directly; it will be invoked by</span>
<a name="l00192"></a>00192 <span class="comment">* prjx2s() and prjs2x() if prj.flag is anything other than a predefined magic</span>
<a name="l00193"></a>00193 <span class="comment">* value.</span>
<a name="l00194"></a>00194 <span class="comment">*</span>
<a name="l00195"></a>00195 <span class="comment">* The one important distinction between prjset() and the setup routines for</span>
<a name="l00196"></a>00196 <span class="comment">* the specific projections is that the projection code must be defined in the</span>
<a name="l00197"></a>00197 <span class="comment">* prjprm struct in order for prjset() to identify the required projection.</span>
<a name="l00198"></a>00198 <span class="comment">* Once prjset() has initialized the prjprm struct, prjx2s() and prjs2x() use</span>
<a name="l00199"></a>00199 <span class="comment">* the pointers to the specific projection and deprojection routines contained</span>
<a name="l00200"></a>00200 <span class="comment">* therein.</span>
<a name="l00201"></a>00201 <span class="comment">*</span>
<a name="l00202"></a>00202 <span class="comment">* Given and returned:</span>
<a name="l00203"></a>00203 <span class="comment">* prj struct prjprm*</span>
<a name="l00204"></a>00204 <span class="comment">* Projection parameters.</span>
<a name="l00205"></a>00205 <span class="comment">*</span>
<a name="l00206"></a>00206 <span class="comment">* Function return value:</span>
<a name="l00207"></a>00207 <span class="comment">* int Status return value:</span>
<a name="l00208"></a>00208 <span class="comment">* 0: Success.</span>
<a name="l00209"></a>00209 <span class="comment">* 1: Null prjprm pointer passed.</span>
<a name="l00210"></a>00210 <span class="comment">* 2: Invalid projection parameters.</span>
<a name="l00211"></a>00211 <span class="comment">*</span>
<a name="l00212"></a>00212 <span class="comment">* For returns > 1, a detailed error message is set in</span>
<a name="l00213"></a>00213 <span class="comment">* prjprm::err if enabled, see wcserr_enable().</span>
<a name="l00214"></a>00214 <span class="comment">*</span>
<a name="l00215"></a>00215 <span class="comment">*</span>
<a name="l00216"></a>00216 <span class="comment">* prjx2s() - Generic Cartesian-to-spherical deprojection</span>
<a name="l00217"></a>00217 <span class="comment">* ------------------------------------------------------</span>
<a name="l00218"></a>00218 <span class="comment">* Deproject Cartesian (x,y) coordinates in the plane of projection to native</span>
<a name="l00219"></a>00219 <span class="comment">* spherical coordinates (phi,theta).</span>
<a name="l00220"></a>00220 <span class="comment">*</span>
<a name="l00221"></a>00221 <span class="comment">* The projection is that specified by prjprm::code.</span>
<a name="l00222"></a>00222 <span class="comment">*</span>
<a name="l00223"></a>00223 <span class="comment">* Given and returned:</span>
<a name="l00224"></a>00224 <span class="comment">* prj struct prjprm*</span>
<a name="l00225"></a>00225 <span class="comment">* Projection parameters.</span>
<a name="l00226"></a>00226 <span class="comment">*</span>
<a name="l00227"></a>00227 <span class="comment">* Given:</span>
<a name="l00228"></a>00228 <span class="comment">* nx,ny int Vector lengths.</span>
<a name="l00229"></a>00229 <span class="comment">*</span>
<a name="l00230"></a>00230 <span class="comment">* sxy,spt int Vector strides.</span>
<a name="l00231"></a>00231 <span class="comment">*</span>
<a name="l00232"></a>00232 <span class="comment">* x,y const double[]</span>
<a name="l00233"></a>00233 <span class="comment">* Projected coordinates.</span>
<a name="l00234"></a>00234 <span class="comment">*</span>
<a name="l00235"></a>00235 <span class="comment">* Returned:</span>
<a name="l00236"></a>00236 <span class="comment">* phi,theta double[] Longitude and latitude (phi,theta) of the projected</span>
<a name="l00237"></a>00237 <span class="comment">* point in native spherical coordinates [deg].</span>
<a name="l00238"></a>00238 <span class="comment">*</span>
<a name="l00239"></a>00239 <span class="comment">* stat int[] Status return value for each vector element:</span>
<a name="l00240"></a>00240 <span class="comment">* 0: Success.</span>
<a name="l00241"></a>00241 <span class="comment">* 1: Invalid value of (x,y).</span>
<a name="l00242"></a>00242 <span class="comment">*</span>
<a name="l00243"></a>00243 <span class="comment">* Function return value:</span>
<a name="l00244"></a>00244 <span class="comment">* int Status return value:</span>
<a name="l00245"></a>00245 <span class="comment">* 0: Success.</span>
<a name="l00246"></a>00246 <span class="comment">* 1: Null prjprm pointer passed.</span>
<a name="l00247"></a>00247 <span class="comment">* 2: Invalid projection parameters.</span>
<a name="l00248"></a>00248 <span class="comment">* 3: One or more of the (x,y) coordinates were</span>
<a name="l00249"></a>00249 <span class="comment">* invalid, as indicated by the stat vector.</span>
<a name="l00250"></a>00250 <span class="comment">*</span>
<a name="l00251"></a>00251 <span class="comment">* For returns > 1, a detailed error message is set in</span>
<a name="l00252"></a>00252 <span class="comment">* prjprm::err if enabled, see wcserr_enable().</span>
<a name="l00253"></a>00253 <span class="comment">*</span>
<a name="l00254"></a>00254 <span class="comment">*</span>
<a name="l00255"></a>00255 <span class="comment">* prjs2x() - Generic spherical-to-Cartesian projection</span>
<a name="l00256"></a>00256 <span class="comment">* ----------------------------------------------------</span>
<a name="l00257"></a>00257 <span class="comment">* Project native spherical coordinates (phi,theta) to Cartesian (x,y)</span>
<a name="l00258"></a>00258 <span class="comment">* coordinates in the plane of projection.</span>
<a name="l00259"></a>00259 <span class="comment">*</span>
<a name="l00260"></a>00260 <span class="comment">* The projection is that specified by prjprm::code.</span>
<a name="l00261"></a>00261 <span class="comment">*</span>
<a name="l00262"></a>00262 <span class="comment">* Given and returned:</span>
<a name="l00263"></a>00263 <span class="comment">* prj struct prjprm*</span>
<a name="l00264"></a>00264 <span class="comment">* Projection parameters.</span>
<a name="l00265"></a>00265 <span class="comment">*</span>
<a name="l00266"></a>00266 <span class="comment">* Given:</span>
<a name="l00267"></a>00267 <span class="comment">* nphi,</span>
<a name="l00268"></a>00268 <span class="comment">* ntheta int Vector lengths.</span>
<a name="l00269"></a>00269 <span class="comment">*</span>
<a name="l00270"></a>00270 <span class="comment">* spt,sxy int Vector strides.</span>
<a name="l00271"></a>00271 <span class="comment">*</span>
<a name="l00272"></a>00272 <span class="comment">* phi,theta const double[]</span>
<a name="l00273"></a>00273 <span class="comment">* Longitude and latitude (phi,theta) of the projected</span>
<a name="l00274"></a>00274 <span class="comment">* point in native spherical coordinates [deg].</span>
<a name="l00275"></a>00275 <span class="comment">*</span>
<a name="l00276"></a>00276 <span class="comment">* Returned:</span>
<a name="l00277"></a>00277 <span class="comment">* x,y double[] Projected coordinates.</span>
<a name="l00278"></a>00278 <span class="comment">*</span>
<a name="l00279"></a>00279 <span class="comment">* stat int[] Status return value for each vector element:</span>
<a name="l00280"></a>00280 <span class="comment">* 0: Success.</span>
<a name="l00281"></a>00281 <span class="comment">* 1: Invalid value of (phi,theta).</span>
<a name="l00282"></a>00282 <span class="comment">*</span>
<a name="l00283"></a>00283 <span class="comment">* Function return value:</span>
<a name="l00284"></a>00284 <span class="comment">* int Status return value:</span>
<a name="l00285"></a>00285 <span class="comment">* 0: Success.</span>
<a name="l00286"></a>00286 <span class="comment">* 1: Null prjprm pointer passed.</span>
<a name="l00287"></a>00287 <span class="comment">* 2: Invalid projection parameters.</span>
<a name="l00288"></a>00288 <span class="comment">* 4: One or more of the (phi,theta) coordinates</span>
<a name="l00289"></a>00289 <span class="comment">* were, invalid, as indicated by the stat vector.</span>
<a name="l00290"></a>00290 <span class="comment">*</span>
<a name="l00291"></a>00291 <span class="comment">* For returns > 1, a detailed error message is set in</span>
<a name="l00292"></a>00292 <span class="comment">* prjprm::err if enabled, see wcserr_enable().</span>
<a name="l00293"></a>00293 <span class="comment">*</span>
<a name="l00294"></a>00294 <span class="comment">*</span>
<a name="l00295"></a>00295 <span class="comment">* ???set() - Specific setup routines for the prjprm struct</span>
<a name="l00296"></a>00296 <span class="comment">* --------------------------------------------------------</span>
<a name="l00297"></a>00297 <span class="comment">* Set up a prjprm struct for a particular projection according to information</span>
<a name="l00298"></a>00298 <span class="comment">* supplied within it.</span>
<a name="l00299"></a>00299 <span class="comment">*</span>
<a name="l00300"></a>00300 <span class="comment">* Given and returned:</span>
<a name="l00301"></a>00301 <span class="comment">* prj struct prjprm*</span>
<a name="l00302"></a>00302 <span class="comment">* Projection parameters.</span>
<a name="l00303"></a>00303 <span class="comment">*</span>
<a name="l00304"></a>00304 <span class="comment">* Function return value:</span>
<a name="l00305"></a>00305 <span class="comment">* int Status return value:</span>
<a name="l00306"></a>00306 <span class="comment">* 0: Success.</span>
<a name="l00307"></a>00307 <span class="comment">* 1: Null prjprm pointer passed.</span>
<a name="l00308"></a>00308 <span class="comment">* 2: Invalid projection parameters.</span>
<a name="l00309"></a>00309 <span class="comment">*</span>
<a name="l00310"></a>00310 <span class="comment">* For returns > 1, a detailed error message is set in</span>
<a name="l00311"></a>00311 <span class="comment">* prjprm::err if enabled, see wcserr_enable().</span>
<a name="l00312"></a>00312 <span class="comment">*</span>
<a name="l00313"></a>00313 <span class="comment">*</span>
<a name="l00314"></a>00314 <span class="comment">* ???x2s() - Specific Cartesian-to-spherical deprojection routines</span>
<a name="l00315"></a>00315 <span class="comment">* ----------------------------------------------------------------</span>
<a name="l00316"></a>00316 <span class="comment">* Transform (x,y) coordinates in the plane of projection to native spherical</span>
<a name="l00317"></a>00317 <span class="comment">* coordinates (phi,theta).</span>
<a name="l00318"></a>00318 <span class="comment">*</span>
<a name="l00319"></a>00319 <span class="comment">* Given and returned:</span>
<a name="l00320"></a>00320 <span class="comment">* prj struct prjprm*</span>
<a name="l00321"></a>00321 <span class="comment">* Projection parameters.</span>
<a name="l00322"></a>00322 <span class="comment">*</span>
<a name="l00323"></a>00323 <span class="comment">* Given:</span>
<a name="l00324"></a>00324 <span class="comment">* nx,ny int Vector lengths.</span>
<a name="l00325"></a>00325 <span class="comment">*</span>
<a name="l00326"></a>00326 <span class="comment">* sxy,spt int Vector strides.</span>
<a name="l00327"></a>00327 <span class="comment">*</span>
<a name="l00328"></a>00328 <span class="comment">* x,y const double[]</span>
<a name="l00329"></a>00329 <span class="comment">* Projected coordinates.</span>
<a name="l00330"></a>00330 <span class="comment">*</span>
<a name="l00331"></a>00331 <span class="comment">* Returned:</span>
<a name="l00332"></a>00332 <span class="comment">* phi,theta double[] Longitude and latitude of the projected point in</span>
<a name="l00333"></a>00333 <span class="comment">* native spherical coordinates [deg].</span>
<a name="l00334"></a>00334 <span class="comment">*</span>
<a name="l00335"></a>00335 <span class="comment">* stat int[] Status return value for each vector element:</span>
<a name="l00336"></a>00336 <span class="comment">* 0: Success.</span>
<a name="l00337"></a>00337 <span class="comment">* 1: Invalid value of (x,y).</span>
<a name="l00338"></a>00338 <span class="comment">*</span>
<a name="l00339"></a>00339 <span class="comment">* Function return value:</span>
<a name="l00340"></a>00340 <span class="comment">* int Status return value:</span>
<a name="l00341"></a>00341 <span class="comment">* 0: Success.</span>
<a name="l00342"></a>00342 <span class="comment">* 1: Null prjprm pointer passed.</span>
<a name="l00343"></a>00343 <span class="comment">* 2: Invalid projection parameters.</span>
<a name="l00344"></a>00344 <span class="comment">* 3: One or more of the (x,y) coordinates were</span>
<a name="l00345"></a>00345 <span class="comment">* invalid, as indicated by the stat vector.</span>
<a name="l00346"></a>00346 <span class="comment">*</span>
<a name="l00347"></a>00347 <span class="comment">* For returns > 1, a detailed error message is set in</span>
<a name="l00348"></a>00348 <span class="comment">* prjprm::err if enabled, see wcserr_enable().</span>
<a name="l00349"></a>00349 <span class="comment">*</span>
<a name="l00350"></a>00350 <span class="comment">*</span>
<a name="l00351"></a>00351 <span class="comment">* ???s2x() - Specific spherical-to-Cartesian projection routines</span>
<a name="l00352"></a>00352 <span class="comment">*---------------------------------------------------------------</span>
<a name="l00353"></a>00353 <span class="comment">* Transform native spherical coordinates (phi,theta) to (x,y) coordinates in</span>
<a name="l00354"></a>00354 <span class="comment">* the plane of projection.</span>
<a name="l00355"></a>00355 <span class="comment">*</span>
<a name="l00356"></a>00356 <span class="comment">* Given and returned:</span>
<a name="l00357"></a>00357 <span class="comment">* prj struct prjprm*</span>
<a name="l00358"></a>00358 <span class="comment">* Projection parameters.</span>
<a name="l00359"></a>00359 <span class="comment">*</span>
<a name="l00360"></a>00360 <span class="comment">* Given:</span>
<a name="l00361"></a>00361 <span class="comment">* nphi,</span>
<a name="l00362"></a>00362 <span class="comment">* ntheta int Vector lengths.</span>
<a name="l00363"></a>00363 <span class="comment">*</span>
<a name="l00364"></a>00364 <span class="comment">* spt,sxy int Vector strides.</span>
<a name="l00365"></a>00365 <span class="comment">*</span>
<a name="l00366"></a>00366 <span class="comment">* phi,theta const double[]</span>
<a name="l00367"></a>00367 <span class="comment">* Longitude and latitude of the projected point in</span>
<a name="l00368"></a>00368 <span class="comment">* native spherical coordinates [deg].</span>
<a name="l00369"></a>00369 <span class="comment">*</span>
<a name="l00370"></a>00370 <span class="comment">* Returned:</span>
<a name="l00371"></a>00371 <span class="comment">* x,y double[] Projected coordinates.</span>
<a name="l00372"></a>00372 <span class="comment">*</span>
<a name="l00373"></a>00373 <span class="comment">* stat int[] Status return value for each vector element:</span>
<a name="l00374"></a>00374 <span class="comment">* 0: Success.</span>
<a name="l00375"></a>00375 <span class="comment">* 1: Invalid value of (phi,theta).</span>
<a name="l00376"></a>00376 <span class="comment">*</span>
<a name="l00377"></a>00377 <span class="comment">* Function return value:</span>
<a name="l00378"></a>00378 <span class="comment">* int Status return value:</span>
<a name="l00379"></a>00379 <span class="comment">* 0: Success.</span>
<a name="l00380"></a>00380 <span class="comment">* 1: Null prjprm pointer passed.</span>
<a name="l00381"></a>00381 <span class="comment">* 2: Invalid projection parameters.</span>
<a name="l00382"></a>00382 <span class="comment">* 4: One or more of the (phi,theta) coordinates</span>
<a name="l00383"></a>00383 <span class="comment">* were, invalid, as indicated by the stat vector.</span>
<a name="l00384"></a>00384 <span class="comment">*</span>
<a name="l00385"></a>00385 <span class="comment">* For returns > 1, a detailed error message is set in</span>
<a name="l00386"></a>00386 <span class="comment">* prjprm::err if enabled, see wcserr_enable().</span>
<a name="l00387"></a>00387 <span class="comment">*</span>
<a name="l00388"></a>00388 <span class="comment">*</span>
<a name="l00389"></a>00389 <span class="comment">* prjprm struct - Projection parameters</span>
<a name="l00390"></a>00390 <span class="comment">* -------------------------------------</span>
<a name="l00391"></a>00391 <span class="comment">* The prjprm struct contains all information needed to project or deproject</span>
<a name="l00392"></a>00392 <span class="comment">* native spherical coordinates. It consists of certain members that must be</span>
<a name="l00393"></a>00393 <span class="comment">* set by the user ("given") and others that are set by the WCSLIB routines</span>
<a name="l00394"></a>00394 <span class="comment">* ("returned"). Some of the latter are supplied for informational purposes</span>
<a name="l00395"></a>00395 <span class="comment">* while others are for internal use only.</span>
<a name="l00396"></a>00396 <span class="comment">*</span>
<a name="l00397"></a>00397 <span class="comment">* int flag</span>
<a name="l00398"></a>00398 <span class="comment">* (Given and returned) This flag must be set to zero whenever any of the</span>
<a name="l00399"></a>00399 <span class="comment">* following prjprm struct members are set or changed:</span>
<a name="l00400"></a>00400 <span class="comment">*</span>
<a name="l00401"></a>00401 <span class="comment">* - prjprm::code,</span>
<a name="l00402"></a>00402 <span class="comment">* - prjprm::r0,</span>
<a name="l00403"></a>00403 <span class="comment">* - prjprm::pv[],</span>
<a name="l00404"></a>00404 <span class="comment">* - prjprm::phi0,</span>
<a name="l00405"></a>00405 <span class="comment">* - prjprm::theta0.</span>
<a name="l00406"></a>00406 <span class="comment">*</span>
<a name="l00407"></a>00407 <span class="comment">* This signals the initialization routine (prjset() or ???set()) to</span>
<a name="l00408"></a>00408 <span class="comment">* recompute the returned members of the prjprm struct. flag will then be</span>
<a name="l00409"></a>00409 <span class="comment">* reset to indicate that this has been done.</span>
<a name="l00410"></a>00410 <span class="comment">*</span>
<a name="l00411"></a>00411 <span class="comment">* Note that flag need not be reset when prjprm::bounds is changed.</span>
<a name="l00412"></a>00412 <span class="comment">*</span>
<a name="l00413"></a>00413 <span class="comment">* char code[4]</span>
<a name="l00414"></a>00414 <span class="comment">* (Given) Three-letter projection code defined by the FITS standard.</span>
<a name="l00415"></a>00415 <span class="comment">*</span>
<a name="l00416"></a>00416 <span class="comment">* double r0</span>
<a name="l00417"></a>00417 <span class="comment">* (Given) The radius of the generating sphere for the projection, a linear</span>
<a name="l00418"></a>00418 <span class="comment">* scaling parameter. If this is zero, it will be reset to its default</span>
<a name="l00419"></a>00419 <span class="comment">* value of 180/pi (the value for FITS WCS).</span>
<a name="l00420"></a>00420 <span class="comment">*</span>
<a name="l00421"></a>00421 <span class="comment">* double pv[30]</span>
<a name="l00422"></a>00422 <span class="comment">* (Given) Projection parameters. These correspond to the PVi_ma keywords</span>
<a name="l00423"></a>00423 <span class="comment">* in FITS, so pv[0] is PVi_0a, pv[1] is PVi_1a, etc., where i denotes the</span>
<a name="l00424"></a>00424 <span class="comment">* latitude-like axis. Many projections use pv[1] (PVi_1a), some also use</span>
<a name="l00425"></a>00425 <span class="comment">* pv[2] (PVi_2a) and SZP uses pv[3] (PVi_3a). ZPN is currently the only</span>
<a name="l00426"></a>00426 <span class="comment">* projection that uses any of the others.</span>
<a name="l00427"></a>00427 <span class="comment">*</span>
<a name="l00428"></a>00428 <span class="comment">* Usage of the pv[] array as it applies to each projection is described in</span>
<a name="l00429"></a>00429 <span class="comment">* the prologue to each trio of projection routines in prj.c.</span>
<a name="l00430"></a>00430 <span class="comment">*</span>
<a name="l00431"></a>00431 <span class="comment">* double phi0</span>
<a name="l00432"></a>00432 <span class="comment">* (Given) The native longitude, phi_0 [deg], and ...</span>
<a name="l00433"></a>00433 <span class="comment">* double theta0</span>
<a name="l00434"></a>00434 <span class="comment">* (Given) ... the native latitude, theta_0 [deg], of the reference point,</span>
<a name="l00435"></a>00435 <span class="comment">* i.e. the point (x,y) = (0,0). If undefined (set to a magic value by</span>
<a name="l00436"></a>00436 <span class="comment">* prjini()) the initialization routine will set this to a</span>
<a name="l00437"></a>00437 <span class="comment">* projection-specific default.</span>
<a name="l00438"></a>00438 <span class="comment">*</span>
<a name="l00439"></a>00439 <span class="comment">* int bounds</span>
<a name="l00440"></a>00440 <span class="comment">* (Given) Controls strict bounds checking for the AZP, SZP, TAN, SIN, ZPN,</span>
<a name="l00441"></a>00441 <span class="comment">* and COP projections; set to zero to disable checking.</span>
<a name="l00442"></a>00442 <span class="comment">*</span>
<a name="l00443"></a>00443 <span class="comment">* The remaining members of the prjprm struct are maintained by the setup</span>
<a name="l00444"></a>00444 <span class="comment">* routines and must not be modified elsewhere:</span>
<a name="l00445"></a>00445 <span class="comment">*</span>
<a name="l00446"></a>00446 <span class="comment">* char name[40]</span>
<a name="l00447"></a>00447 <span class="comment">* (Returned) Long name of the projection.</span>
<a name="l00448"></a>00448 <span class="comment">*</span>
<a name="l00449"></a>00449 <span class="comment">* Provided for information only, not used by the projection routines.</span>
<a name="l00450"></a>00450 <span class="comment">*</span>
<a name="l00451"></a>00451 <span class="comment">* int category</span>
<a name="l00452"></a>00452 <span class="comment">* (Returned) Projection category matching the value of the relevant global</span>
<a name="l00453"></a>00453 <span class="comment">* variable:</span>
<a name="l00454"></a>00454 <span class="comment">*</span>
<a name="l00455"></a>00455 <span class="comment">* - ZENITHAL,</span>
<a name="l00456"></a>00456 <span class="comment">* - CYLINDRICAL,</span>
<a name="l00457"></a>00457 <span class="comment">* - PSEUDOCYLINDRICAL,</span>
<a name="l00458"></a>00458 <span class="comment">* - CONVENTIONAL,</span>
<a name="l00459"></a>00459 <span class="comment">* - CONIC,</span>
<a name="l00460"></a>00460 <span class="comment">* - POLYCONIC,</span>
<a name="l00461"></a>00461 <span class="comment">* - QUADCUBE, and</span>
<a name="l00462"></a>00462 <span class="comment">* - HEALPIX.</span>
<a name="l00463"></a>00463 <span class="comment">*</span>
<a name="l00464"></a>00464 <span class="comment">* The category name may be identified via the prj_categories character</span>
<a name="l00465"></a>00465 <span class="comment">* array, e.g.</span>
<a name="l00466"></a>00466 <span class="comment">*</span>
<a name="l00467"></a>00467 <span class="comment">= struct prjprm prj;</span>
<a name="l00468"></a>00468 <span class="comment">= ...</span>
<a name="l00469"></a>00469 <span class="comment">= printf("%s\n", prj_categories[prj.category]);</span>
<a name="l00470"></a>00470 <span class="comment">*</span>
<a name="l00471"></a>00471 <span class="comment">* Provided for information only, not used by the projection routines.</span>
<a name="l00472"></a>00472 <span class="comment">*</span>
<a name="l00473"></a>00473 <span class="comment">* int pvrange</span>
<a name="l00474"></a>00474 <span class="comment">* (Returned) Range of projection parameter indices: 100 times the first</span>
<a name="l00475"></a>00475 <span class="comment">* allowed index plus the number of parameters, e.g. TAN is 0 (no</span>
<a name="l00476"></a>00476 <span class="comment">* parameters), SZP is 103 (1 to 3), and ZPN is 30 (0 to 29).</span>
<a name="l00477"></a>00477 <span class="comment">*</span>
<a name="l00478"></a>00478 <span class="comment">* Provided for information only, not used by the projection routines.</span>
<a name="l00479"></a>00479 <span class="comment">*</span>
<a name="l00480"></a>00480 <span class="comment">* int simplezen</span>
<a name="l00481"></a>00481 <span class="comment">* (Returned) True if the projection is a radially-symmetric zenithal</span>
<a name="l00482"></a>00482 <span class="comment">* projection.</span>
<a name="l00483"></a>00483 <span class="comment">*</span>
<a name="l00484"></a>00484 <span class="comment">* Provided for information only, not used by the projection routines.</span>
<a name="l00485"></a>00485 <span class="comment">*</span>
<a name="l00486"></a>00486 <span class="comment">* int equiareal</span>
<a name="l00487"></a>00487 <span class="comment">* (Returned) True if the projection is equal area.</span>
<a name="l00488"></a>00488 <span class="comment">*</span>
<a name="l00489"></a>00489 <span class="comment">* Provided for information only, not used by the projection routines.</span>
<a name="l00490"></a>00490 <span class="comment">*</span>
<a name="l00491"></a>00491 <span class="comment">* int conformal</span>
<a name="l00492"></a>00492 <span class="comment">* (Returned) True if the projection is conformal.</span>
<a name="l00493"></a>00493 <span class="comment">*</span>
<a name="l00494"></a>00494 <span class="comment">* Provided for information only, not used by the projection routines.</span>
<a name="l00495"></a>00495 <span class="comment">*</span>
<a name="l00496"></a>00496 <span class="comment">* int global</span>
<a name="l00497"></a>00497 <span class="comment">* (Returned) True if the projection can represent the whole sphere in a</span>
<a name="l00498"></a>00498 <span class="comment">* finite, non-overlapped mapping.</span>
<a name="l00499"></a>00499 <span class="comment">*</span>
<a name="l00500"></a>00500 <span class="comment">* Provided for information only, not used by the projection routines.</span>
<a name="l00501"></a>00501 <span class="comment">*</span>
<a name="l00502"></a>00502 <span class="comment">* int divergent</span>
<a name="l00503"></a>00503 <span class="comment">* (Returned) True if the projection diverges in latitude.</span>
<a name="l00504"></a>00504 <span class="comment">*</span>
<a name="l00505"></a>00505 <span class="comment">* Provided for information only, not used by the projection routines.</span>
<a name="l00506"></a>00506 <span class="comment">*</span>
<a name="l00507"></a>00507 <span class="comment">* double x0</span>
<a name="l00508"></a>00508 <span class="comment">* (Returned) The offset in x, and ...</span>
<a name="l00509"></a>00509 <span class="comment">* double y0</span>
<a name="l00510"></a>00510 <span class="comment">* (Returned) ... the offset in y used to force (x,y) = (0,0) at</span>
<a name="l00511"></a>00511 <span class="comment">* (phi_0,theta_0).</span>
<a name="l00512"></a>00512 <span class="comment">*</span>
<a name="l00513"></a>00513 <span class="comment">* struct wcserr *err</span>
<a name="l00514"></a>00514 <span class="comment">* (Returned) If enabled, when an error status is returned this struct</span>
<a name="l00515"></a>00515 <span class="comment">* contains detailed information about the error, see wcserr_enable().</span>
<a name="l00516"></a>00516 <span class="comment">*</span>
<a name="l00517"></a>00517 <span class="comment">* void *padding</span>
<a name="l00518"></a>00518 <span class="comment">* (An unused variable inserted for alignment purposes only.)</span>
<a name="l00519"></a>00519 <span class="comment">*</span>
<a name="l00520"></a>00520 <span class="comment">* double w[10]</span>
<a name="l00521"></a>00521 <span class="comment">* (Returned) Intermediate floating-point values derived from the</span>
<a name="l00522"></a>00522 <span class="comment">* projection parameters, cached here to save recomputation.</span>
<a name="l00523"></a>00523 <span class="comment">*</span>
<a name="l00524"></a>00524 <span class="comment">* Usage of the w[] array as it applies to each projection is described in</span>
<a name="l00525"></a>00525 <span class="comment">* the prologue to each trio of projection routines in prj.c.</span>
<a name="l00526"></a>00526 <span class="comment">*</span>
<a name="l00527"></a>00527 <span class="comment">* int n</span>
<a name="l00528"></a>00528 <span class="comment">* (Returned) Intermediate integer value (used only for the ZPN and HPX</span>
<a name="l00529"></a>00529 <span class="comment">* projections).</span>
<a name="l00530"></a>00530 <span class="comment">*</span>
<a name="l00531"></a>00531 <span class="comment">* int (*prjx2s)(PRJX2S_ARGS)</span>
<a name="l00532"></a>00532 <span class="comment">* (Returned) Pointer to the projection ...</span>
<a name="l00533"></a>00533 <span class="comment">* int (*prjs2x)(PRJ_ARGS)</span>
<a name="l00534"></a>00534 <span class="comment">* (Returned) ... and deprojection routines.</span>
<a name="l00535"></a>00535 <span class="comment">*</span>
<a name="l00536"></a>00536 <span class="comment">*</span>
<a name="l00537"></a>00537 <span class="comment">* Global variable: const char *prj_errmsg[] - Status return messages</span>
<a name="l00538"></a>00538 <span class="comment">* ------------------------------------------------------------------</span>
<a name="l00539"></a>00539 <span class="comment">* Error messages to match the status value returned from each function.</span>
<a name="l00540"></a>00540 <span class="comment">*</span>
<a name="l00541"></a>00541 <span class="comment">*===========================================================================*/</span>
<a name="l00542"></a>00542
<a name="l00543"></a>00543 <span class="preprocessor">#ifndef WCSLIB_PROJ</span>
<a name="l00544"></a>00544 <span class="preprocessor"></span><span class="preprocessor">#define WCSLIB_PROJ</span>
<a name="l00545"></a>00545 <span class="preprocessor"></span>
<a name="l00546"></a>00546 <span class="preprocessor">#include "<a class="code" href="wcserr_8h.html">wcserr.h</a>"</span>
<a name="l00547"></a>00547
<a name="l00548"></a>00548 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00549"></a>00549 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {
<a name="l00550"></a>00550 <span class="preprocessor">#endif</span>
<a name="l00551"></a>00551 <span class="preprocessor"></span>
<a name="l00552"></a>00552
<a name="l00553"></a>00553 <span class="comment">/* Total number of projection parameters; 0 to PVN-1. */</span>
<a name="l00554"></a><a class="code" href="prj_8h.html#c8dfb42cf72db0c4bc690d030f75c662">00554</a> <span class="preprocessor">#define PVN 30</span>
<a name="l00555"></a>00555 <span class="preprocessor"></span>
<a name="l00556"></a>00556 <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="prj_8h.html#cb157519ef498bf669298c5508492f3e" title="Status return messages.">prj_errmsg</a>[];
<a name="l00557"></a>00557
<a name="l00558"></a><a class="code" href="prj_8h.html#2ac22403e59a9e8d2b2f53f6d0574305">00558</a> <span class="keyword">enum</span> <a class="code" href="prj_8h.html#2ac22403e59a9e8d2b2f53f6d0574305">prj_errmsg_enum</a> {
<a name="l00559"></a><a class="code" href="prj_8h.html#2ac22403e59a9e8d2b2f53f6d05743056f3a73d3c0a7dc7d15ceb00e00714bea">00559</a> <a class="code" href="prj_8h.html#2ac22403e59a9e8d2b2f53f6d05743056f3a73d3c0a7dc7d15ceb00e00714bea">PRJERR_SUCCESS</a> = 0, <span class="comment">/* Success. */</span>
<a name="l00560"></a><a class="code" href="prj_8h.html#2ac22403e59a9e8d2b2f53f6d057430560d6a804ddfa2f2d0f25f397d653695b">00560</a> <a class="code" href="prj_8h.html#2ac22403e59a9e8d2b2f53f6d057430560d6a804ddfa2f2d0f25f397d653695b">PRJERR_NULL_POINTER</a> = 1, <span class="comment">/* Null prjprm pointer passed. */</span>
<a name="l00561"></a><a class="code" href="prj_8h.html#2ac22403e59a9e8d2b2f53f6d05743056a0f63e2f52f594637a12db14e5814e6">00561</a> <a class="code" href="prj_8h.html#2ac22403e59a9e8d2b2f53f6d05743056a0f63e2f52f594637a12db14e5814e6">PRJERR_BAD_PARAM</a> = 2, <span class="comment">/* Invalid projection parameters. */</span>
<a name="l00562"></a><a class="code" href="prj_8h.html#2ac22403e59a9e8d2b2f53f6d0574305d33460ba0b865ff7580e6d2cebd92c74">00562</a> <a class="code" href="prj_8h.html#2ac22403e59a9e8d2b2f53f6d0574305d33460ba0b865ff7580e6d2cebd92c74">PRJERR_BAD_PIX</a> = 3, <span class="comment">/* One or more of the (x, y) coordinates were</span>
<a name="l00563"></a>00563 <span class="comment"> invalid. */</span>
<a name="l00564"></a><a class="code" href="prj_8h.html#2ac22403e59a9e8d2b2f53f6d05743050d15cd17822bea2f7fc0209a180cc998">00564</a> <a class="code" href="prj_8h.html#2ac22403e59a9e8d2b2f53f6d05743050d15cd17822bea2f7fc0209a180cc998">PRJERR_BAD_WORLD</a> = 4 <span class="comment">/* One or more of the (phi, theta) coordinates</span>
<a name="l00565"></a>00565 <span class="comment"> were invalid. */</span>
<a name="l00566"></a>00566 };
<a name="l00567"></a>00567
<a name="l00568"></a>00568 <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#dc97181f64d72234b8c6903b22b33df9" title="Identifier for conic projections.">CONIC</a>, <a class="code" href="prj_8h.html#c940da0fb0552876fb40a92f82c9625f" title="Identifier for conventional projections.">CONVENTIONAL</a>, <a class="code" href="prj_8h.html#86e25219d2169702c7db6508750097cf" title="Identifier for cylindrical projections.">CYLINDRICAL</a>, <a class="code" href="prj_8h.html#afd25a96ccc5966c04d7732ca482c0c1" title="Identifier for polyconic projections.">POLYCONIC</a>,
<a name="l00569"></a>00569 <a class="code" href="prj_8h.html#5a2f80bed69a84464e5654f91ed4fb63" title="Identifier for pseudocylindrical projections.">PSEUDOCYLINDRICAL</a>, <a class="code" href="prj_8h.html#749605599f1bf2b883c5c88b6cc9c06b" title="Identifier for quadcube projections.">QUADCUBE</a>, <a class="code" href="prj_8h.html#4b25d630b7590f31fa0aa6d5861c9bfd" title="Identifier for zenithal/azimuthal projections.">ZENITHAL</a>, <a class="code" href="prj_8h.html#6e2db45f219ba5732ddca43a9fc17408" title="Identifier for the HEALPix projection.">HEALPIX</a>;
<a name="l00570"></a>00570 <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="prj_8h.html#9bceed17f625eb88a0826871dc8296b5" title="Projection categories.">prj_categories</a>[9][32];
<a name="l00571"></a>00571
<a name="l00572"></a>00572 <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#2d30db5685dd1faa18680a0e69bc5854" title="The number of recognized three-letter projection codes.">prj_ncode</a>;
<a name="l00573"></a>00573 <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="prj_8h.html#4089618a84e11369bf9e5fd7c11c7368" title="Recognized three-letter projection codes.">prj_codes</a>[27][4];
<a name="l00574"></a>00574
<a name="l00575"></a>00575 <span class="preprocessor">#ifdef PRJX2S_ARGS</span>
<a name="l00576"></a>00576 <span class="preprocessor"></span><span class="preprocessor">#undef PRJX2S_ARGS</span>
<a name="l00577"></a>00577 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00578"></a>00578 <span class="preprocessor"></span>
<a name="l00579"></a>00579 <span class="preprocessor">#ifdef PRJS2X_ARGS</span>
<a name="l00580"></a>00580 <span class="preprocessor"></span><span class="preprocessor">#undef PRJS2X_ARGS</span>
<a name="l00581"></a>00581 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00582"></a>00582 <span class="preprocessor"></span>
<a name="l00583"></a>00583 <span class="comment">/* For use in declaring deprojection function prototypes. */</span>
<a name="l00584"></a><a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0">00584</a> <span class="preprocessor">#define PRJX2S_ARGS struct prjprm *prj, int nx, int ny, int sxy, int spt, \</span>
<a name="l00585"></a>00585 <span class="preprocessor">const double x[], const double y[], double phi[], double theta[], int stat[]</span>
<a name="l00586"></a>00586 <span class="preprocessor"></span>
<a name="l00587"></a>00587 <span class="comment">/* For use in declaring projection function prototypes. */</span>
<a name="l00588"></a><a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a">00588</a> <span class="preprocessor">#define PRJS2X_ARGS struct prjprm *prj, int nx, int ny, int sxy, int spt, \</span>
<a name="l00589"></a>00589 <span class="preprocessor">const double phi[], const double theta[], double x[], double y[], int stat[]</span>
<a name="l00590"></a>00590 <span class="preprocessor"></span>
<a name="l00591"></a>00591
<a name="l00592"></a><a class="code" href="structprjprm.html">00592</a> <span class="keyword">struct </span><a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> {
<a name="l00593"></a>00593 <span class="comment">/* Initialization flag (see the prologue above). */</span>
<a name="l00594"></a>00594 <span class="comment">/*------------------------------------------------------------------------*/</span>
<a name="l00595"></a><a class="code" href="structprjprm.html#d304d66b3f3aa64fe9c7251d3c420d02">00595</a> <span class="keywordtype">int</span> <a class="code" href="structprjprm.html#d304d66b3f3aa64fe9c7251d3c420d02">flag</a>; <span class="comment">/* Set to zero to force initialization. */</span>
<a name="l00596"></a>00596
<a name="l00597"></a>00597 <span class="comment">/* Parameters to be provided (see the prologue above). */</span>
<a name="l00598"></a>00598 <span class="comment">/*------------------------------------------------------------------------*/</span>
<a name="l00599"></a><a class="code" href="structprjprm.html#4f3c364f16d0b6498d7e11e6bb67239c">00599</a> <span class="keywordtype">char</span> <a class="code" href="structprjprm.html#4f3c364f16d0b6498d7e11e6bb67239c">code</a>[4]; <span class="comment">/* Three-letter projection code. */</span>
<a name="l00600"></a><a class="code" href="structprjprm.html#3894c2e551929b29adce50cd637fa351">00600</a> <span class="keywordtype">double</span> <a class="code" href="structprjprm.html#3894c2e551929b29adce50cd637fa351">r0</a>; <span class="comment">/* Radius of the generating sphere. */</span>
<a name="l00601"></a><a class="code" href="structprjprm.html#46d6928a9026e7b3376dcf0d3f91db64">00601</a> <span class="keywordtype">double</span> <a class="code" href="structprjprm.html#46d6928a9026e7b3376dcf0d3f91db64">pv</a>[<a class="code" href="prj_8h.html#c8dfb42cf72db0c4bc690d030f75c662" title="Total number of projection parameters.">PVN</a>]; <span class="comment">/* Projection parameters. */</span>
<a name="l00602"></a><a class="code" href="structprjprm.html#e91fa3ff034b1c6de3ec98d8fb9e0ab1">00602</a> <span class="keywordtype">double</span> <a class="code" href="structprjprm.html#699ad609ff7c1935d8fb6a457a5b8164">phi0</a>, <a class="code" href="structprjprm.html#e91fa3ff034b1c6de3ec98d8fb9e0ab1">theta0</a>; <span class="comment">/* Fiducial native coordinates. */</span>
<a name="l00603"></a><a class="code" href="structprjprm.html#b8dd3d8b1e462a2b261fc9e304885943">00603</a> <span class="keywordtype">int</span> <a class="code" href="structprjprm.html#b8dd3d8b1e462a2b261fc9e304885943">bounds</a>; <span class="comment">/* Enable strict bounds checking. */</span>
<a name="l00604"></a>00604
<a name="l00605"></a>00605 <span class="comment">/* Information derived from the parameters supplied. */</span>
<a name="l00606"></a>00606 <span class="comment">/*------------------------------------------------------------------------*/</span>
<a name="l00607"></a><a class="code" href="structprjprm.html#b165b11d417700de0a4187f133050a2b">00607</a> <span class="keywordtype">char</span> <a class="code" href="structprjprm.html#b165b11d417700de0a4187f133050a2b">name</a>[40]; <span class="comment">/* Projection name. */</span>
<a name="l00608"></a><a class="code" href="structprjprm.html#f0fcebbc8155f0b1ee868e64a2ed9ac3">00608</a> <span class="keywordtype">int</span> <a class="code" href="structprjprm.html#f0fcebbc8155f0b1ee868e64a2ed9ac3">category</a>; <span class="comment">/* Projection category. */</span>
<a name="l00609"></a><a class="code" href="structprjprm.html#bcd2a3ee9f61b930d23bf741cea63bf3">00609</a> <span class="keywordtype">int</span> <a class="code" href="structprjprm.html#bcd2a3ee9f61b930d23bf741cea63bf3">pvrange</a>; <span class="comment">/* Range of projection parameter indices. */</span>
<a name="l00610"></a><a class="code" href="structprjprm.html#fecdd175932cbf29fcfac575b1a5cb9b">00610</a> <span class="keywordtype">int</span> <a class="code" href="structprjprm.html#fecdd175932cbf29fcfac575b1a5cb9b">simplezen</a>; <span class="comment">/* Is it a simple zenithal projection? */</span>
<a name="l00611"></a><a class="code" href="structprjprm.html#b3e207e26d1c9db06cedba2cf4460340">00611</a> <span class="keywordtype">int</span> <a class="code" href="structprjprm.html#b3e207e26d1c9db06cedba2cf4460340">equiareal</a>; <span class="comment">/* Is it an equal area projection? */</span>
<a name="l00612"></a><a class="code" href="structprjprm.html#d7a41e3d03cb739c2a9aa1f8aabf54f9">00612</a> <span class="keywordtype">int</span> <a class="code" href="structprjprm.html#d7a41e3d03cb739c2a9aa1f8aabf54f9">conformal</a>; <span class="comment">/* Is it a conformal projection? */</span>
<a name="l00613"></a><a class="code" href="structprjprm.html#e634b0747fe55f77e65b6909c94227d9">00613</a> <span class="keywordtype">int</span> <a class="code" href="structprjprm.html#e634b0747fe55f77e65b6909c94227d9">global</a>; <span class="comment">/* Can it map the whole sphere? */</span>
<a name="l00614"></a><a class="code" href="structprjprm.html#62e88bd3c9e02f38193a800035b83918">00614</a> <span class="keywordtype">int</span> <a class="code" href="structprjprm.html#62e88bd3c9e02f38193a800035b83918">divergent</a>; <span class="comment">/* Does the projection diverge in latitude? */</span>
<a name="l00615"></a><a class="code" href="structprjprm.html#164706f09314c493c7e9d2c7325f8372">00615</a> <span class="keywordtype">double</span> <a class="code" href="structprjprm.html#ae2c61d85c72e87f4b2b77a14c8eb316">x0</a>, <a class="code" href="structprjprm.html#164706f09314c493c7e9d2c7325f8372">y0</a>; <span class="comment">/* Fiducial offsets. */</span>
<a name="l00616"></a>00616
<a name="l00617"></a>00617 <span class="comment">/* Error handling */</span>
<a name="l00618"></a>00618 <span class="comment">/*------------------------------------------------------------------------*/</span>
<a name="l00619"></a><a class="code" href="structprjprm.html#30e78bb110dc7a8ad0303370ce20762c">00619</a> <span class="keyword">struct </span><a class="code" href="structwcserr.html" title="Error message handling.">wcserr</a> *<a class="code" href="structprjprm.html#30e78bb110dc7a8ad0303370ce20762c">err</a>;
<a name="l00620"></a>00620
<a name="l00621"></a>00621 <span class="comment">/* Private */</span>
<a name="l00622"></a>00622 <span class="comment">/*------------------------------------------------------------------------*/</span>
<a name="l00623"></a><a class="code" href="structprjprm.html#36fa82794133f84373606b1f692ce8c4">00623</a> <span class="keywordtype">void</span> *<a class="code" href="structprjprm.html#36fa82794133f84373606b1f692ce8c4">padding</a>; <span class="comment">/* (Dummy inserted for alignment purposes.) */</span>
<a name="l00624"></a><a class="code" href="structprjprm.html#3b40a2df3b436c4ffcf5be6814993278">00624</a> <span class="keywordtype">double</span> <a class="code" href="structprjprm.html#3b40a2df3b436c4ffcf5be6814993278">w</a>[10]; <span class="comment">/* Intermediate values. */</span>
<a name="l00625"></a><a class="code" href="structprjprm.html#ab36c6218a33025ac4c5025de7c67d42">00625</a> <span class="keywordtype">int</span> <a class="code" href="structprjprm.html#fb805c40a4d37c195074c1305874d615">m</a>, <a class="code" href="structprjprm.html#ab36c6218a33025ac4c5025de7c67d42">n</a>; <span class="comment">/* Intermediate values. */</span>
<a name="l00626"></a>00626
<a name="l00627"></a>00627 int (*<a class="code" href="structprjprm.html#eef644ffeafea16e82b2b995a470a345">prjx2s</a>)(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>); <span class="comment">/* Pointers to the spherical projection and */</span>
<a name="l00628"></a>00628 int (*<a class="code" href="structprjprm.html#e699a5fb02198777343057972e1452d0">prjs2x</a>)(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>); <span class="comment">/* deprojection functions. */</span>
<a name="l00629"></a>00629 };
<a name="l00630"></a>00630
<a name="l00631"></a>00631 <span class="comment">/* Size of the prjprm struct in int units, used by the Fortran wrappers. */</span>
<a name="l00632"></a><a class="code" href="prj_8h.html#2cdabd9dfe78fe18b9e6597881d8ed92">00632</a> <span class="preprocessor">#define PRJLEN (sizeof(struct prjprm)/sizeof(int))</span>
<a name="l00633"></a>00633 <span class="preprocessor"></span>
<a name="l00634"></a>00634
<a name="l00635"></a>00635 <span class="comment">/* Use the preprocessor to help declare function prototypes (see above). */</span>
<a name="l00636"></a>00636 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#d994cb23871c51b20754973bef180f8a" title="Default constructor for the prjprm struct.">prjini</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00637"></a>00637 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#50db1538981df162709b81be0b2961ab" title="Destructor for the prjprm struct.">prjfree</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00638"></a>00638 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#8785bdf33bdaa3d9d52fd51b621ec8d5" title="Print routine for the prjprm struct.">prjprt</a>(<span class="keyword">const</span> <span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00639"></a>00639
<a name="l00640"></a>00640 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#d43dbc765c63162d0af2b9285b8a434f" title="Generic setup routine for the prjprm struct.">prjset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00641"></a>00641 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#9a387f05414e7b59487fdcb03ff79ced" title="Generic Cartesian-to-spherical deprojection.">prjx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00642"></a>00642 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#be28216295d9e7ad7dbb01bf5985df9f" title="Generic spherical-to-Cartesian projection.">prjs2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00643"></a>00643
<a name="l00644"></a>00644 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#bf6696d3455c684cb44d06da7885ce94" title="Set up a prjprm struct for the zenithal/azimuthal perspective (AZP) projection.">azpset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00645"></a>00645 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#8ebb4c79b635cef463b4e7242ff23c25" title="Cartesian-to-spherical transformation for the zenithal/azimuthal perspective (AZP)...">azpx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00646"></a>00646 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#bc26dfb2d0b0bee71f6e4541977d237f" title="Spherical-to-Cartesian transformation for the zenithal/azimuthal perspective (AZP)...">azps2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00647"></a>00647
<a name="l00648"></a>00648 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#faafab5c440384667d7af444b7aca750" title="Set up a prjprm struct for the slant zenithal perspective (SZP) projection.">szpset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00649"></a>00649 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#2fe67a5ecf17729881efa24c83482611" title="Cartesian-to-spherical transformation for the slant zenithal perspective (SZP) projection...">szpx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00650"></a>00650 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#70b750ec65eb4a277057200c7fbb251f" title="Spherical-to-Cartesian transformation for the slant zenithal perspective (SZP) projection...">szps2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00651"></a>00651
<a name="l00652"></a>00652 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#34d303d7ae44a6aca43c1a81bfaac10f" title="Set up a prjprm struct for the gnomonic (TAN) projection.">tanset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00653"></a>00653 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#cd4f54c072b6219242daeb6d4b9a74cb" title="Cartesian-to-spherical transformation for the gnomonic (TAN) projection.">tanx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00654"></a>00654 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#9d3358bed907342e3309e54bd2ab89da" title="Spherical-to-Cartesian transformation for the gnomonic (TAN) projection.">tans2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00655"></a>00655
<a name="l00656"></a>00656 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#66b51f10624b6c17a84b5b54058dd72b" title="Set up a prjprm struct for the stereographic (STG) projection.">stgset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00657"></a>00657 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#88c15d0b6f789cbbd7c5d323ef131360" title="Cartesian-to-spherical transformation for the stereographic (STG) projection.">stgx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00658"></a>00658 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#b46a0a668f28939626287d048153863f" title="Spherical-to-Cartesian transformation for the stereographic (STG) projection.">stgs2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00659"></a>00659
<a name="l00660"></a>00660 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#b6ce2bb75a87b1679d05f251227d2f1b" title="Set up a prjprm struct for the orthographic/synthesis (SIN) projection.">sinset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00661"></a>00661 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#eb7881cd5d7b4b5e26281a512b8f62ac" title="Cartesian-to-spherical transformation for the orthographic/synthesis (SIN) projection...">sinx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00662"></a>00662 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#bdf8c6c3ef615a01ebf8822e013d6a63" title="Spherical-to-Cartesian transformation for the orthographic/synthesis (SIN) projection...">sins2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00663"></a>00663
<a name="l00664"></a>00664 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#c038f2474d5d58de157554cee74a9735" title="Set up a prjprm struct for the zenithal/azimuthal equidistant (ARC) projection.">arcset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00665"></a>00665 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#666322bfe8c4b8e73f00afeb47283f97" title="Cartesian-to-spherical transformation for the zenithal/azimuthal equidistant (ARC)...">arcx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00666"></a>00666 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#aba5ce89ae711728d8ba8105ac5fd599" title="Spherical-to-Cartesian transformation for the zenithal/azimuthal equidistant (ARC)...">arcs2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00667"></a>00667
<a name="l00668"></a>00668 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#c983c5a393c5b3f1041f07b2eb95a3a5" title="Set up a prjprm struct for the zenithal/azimuthal polynomial (ZPN) projection.">zpnset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00669"></a>00669 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#574e44daea81568a6d5e324a6f339d6f" title="Cartesian-to-spherical transformation for the zenithal/azimuthal polynomial (ZPN)...">zpnx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00670"></a>00670 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#7b60d7992bf9c671cb4191f0ec2e0c90" title="Spherical-to-Cartesian transformation for the zenithal/azimuthal polynomial (ZPN)...">zpns2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00671"></a>00671
<a name="l00672"></a>00672 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#3229533df20718c0d5671cc9eb5316fe" title="Set up a prjprm struct for the zenithal/azimuthal equal area (ZEA) projection.">zeaset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00673"></a>00673 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#849a1bbd679d0c193e8be96a8b9ed534" title="Cartesian-to-spherical transformation for the zenithal/azimuthal equal area (ZEA)...">zeax2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00674"></a>00674 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#dc4da028cde2d970e9e5e22adca22f37" title="Spherical-to-Cartesian transformation for the zenithal/azimuthal equal area (ZEA)...">zeas2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00675"></a>00675
<a name="l00676"></a>00676 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#025adf8a63b5d4a8d2a4de804e0707be" title="Set up a prjprm struct for Airy&#39;s (AIR) projection.">airset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00677"></a>00677 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#2c87fbf68277f03051d3eaae3db785e9" title="Cartesian-to-spherical transformation for Airy&#39;s (AIR) projection.">airx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00678"></a>00678 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#75b6b1cb0a748e9b5d3a4cd31129ace6" title="Spherical-to-Cartesian transformation for Airy&#39;s (AIR) projection.">airs2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00679"></a>00679
<a name="l00680"></a>00680 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#36cf447dee9f2e90e42d43d7adc5a0a1" title="Set up a prjprm struct for the cylindrical perspective (CYP) projection.">cypset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00681"></a>00681 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#ffdbf993ce959fce2c148c07cd0f2c0c" title="Cartesian-to-spherical transformation for the cylindrical perspective (CYP) projection...">cypx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00682"></a>00682 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#13e0f81e1fd4bdc46847ab4c634ad346" title="Spherical-to-Cartesian transformation for the cylindrical perspective (CYP) projection...">cyps2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00683"></a>00683
<a name="l00684"></a>00684 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#68ce41ad199c3385bed7e7d4ded2bd8a" title="Set up a prjprm struct for the cylindrical equal area (CEA) projection.">ceaset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00685"></a>00685 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#ff09e87b2246bdec83f6a7bb1bc0f471" title="Cartesian-to-spherical transformation for the cylindrical equal area (CEA) projection...">ceax2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00686"></a>00686 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#28ddb923a52cb597ca9c7dd03ceeb4fe" title="Spherical-to-Cartesian transformation for the cylindrical equal area (CEA) projection...">ceas2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00687"></a>00687
<a name="l00688"></a>00688 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#36ccae7b426311614a4e80432a2b62c3" title="Set up a prjprm struct for the plate carr&eacute;e (CAR) projection.">carset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00689"></a>00689 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#f363383621fb2b72243c1d6b894874d5" title="Cartesian-to-spherical transformation for the plate carr&eacute;e (CAR) projection...">carx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00690"></a>00690 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#b4325a957786611772b90e7a080327f3" title="Spherical-to-Cartesian transformation for the plate carr&eacute;e (CAR) projection...">cars2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00691"></a>00691
<a name="l00692"></a>00692 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#cf989261fd56f1e8b4eb8941ec2c754f" title="Set up a prjprm struct for Mercator&#39;s (MER) projection.">merset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00693"></a>00693 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#5380727f9aeff5aa57f8545d6b54a8f8" title="Cartesian-to-spherical transformation for Mercator&#39;s (MER) projection.">merx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00694"></a>00694 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#d9a80b98c04b0e06d08fd84bacc58b27" title="Spherical-to-Cartesian transformation for Mercator&#39;s (MER) projection.">mers2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00695"></a>00695
<a name="l00696"></a>00696 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#7c719c0387d23c53b0ceb3ee161de66a" title="Set up a prjprm struct for the Sanson-Flamsteed (SFL) projection.">sflset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00697"></a>00697 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#310444979f8f0e62db2bcbe39b0e3d35" title="Cartesian-to-spherical transformation for the Sanson-Flamsteed (SFL) projection.">sflx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00698"></a>00698 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#5517fccc15882e298ac9433f44d1ae4c" title="Spherical-to-Cartesian transformation for the Sanson-Flamsteed (SFL) projection.">sfls2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00699"></a>00699
<a name="l00700"></a>00700 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#d2a2b56c0900516dd24eebf430bcb29c" title="Set up a prjprm struct for the parabolic (PAR) projection.">parset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00701"></a>00701 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#17be11269d86b3308fd925949877718e" title="Cartesian-to-spherical transformation for the parabolic (PAR) projection.">parx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00702"></a>00702 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#eb5951ec54b929d16ab464939a37d74f" title="Spherical-to-Cartesian transformation for the parabolic (PAR) projection.">pars2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00703"></a>00703
<a name="l00704"></a>00704 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#151140d870ed4f490317938bd6260a6a" title="Set up a prjprm struct for Mollweide&#39;s (MOL) projection.">molset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00705"></a>00705 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#853c1df5e8327d83e9cfdde9455355f5" title="Cartesian-to-spherical transformation for Mollweide&#39;s (MOL) projection.">molx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00706"></a>00706 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#6f3cbaaf367984579aad5ec7eb00f397" title="Spherical-to-Cartesian transformation for Mollweide&#39;s (MOL) projection.">mols2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00707"></a>00707
<a name="l00708"></a>00708 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#33f92621800eb880b75611c439526d19" title="Set up a prjprm struct for the Hammer-Aitoff (AIT) projection.">aitset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00709"></a>00709 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#2da3bbd3c42c6ad324117cc5f249a834" title="Cartesian-to-spherical transformation for the Hammer-Aitoff (AIT) projection.">aitx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00710"></a>00710 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#8cca776751549082521a72a743d6b937" title="Spherical-to-Cartesian transformation for the Hammer-Aitoff (AIT) projection.">aits2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00711"></a>00711
<a name="l00712"></a>00712 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#c2f3bc42ac6e7d458364ebcf2b35814f" title="Set up a prjprm struct for the conic perspective (COP) projection.">copset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00713"></a>00713 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#588e9a86fc4dcd1195f867f718ce5429" title="Cartesian-to-spherical transformation for the conic perspective (COP) projection...">copx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00714"></a>00714 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#77283589634cc9a054f3a7c7fc91d38d" title="Spherical-to-Cartesian transformation for the conic perspective (COP) projection...">cops2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00715"></a>00715
<a name="l00716"></a>00716 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#b1264f0201113c1a8e931ad9a7630e2f" title="Set up a prjprm struct for the conic equal area (COE) projection.">coeset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00717"></a>00717 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#d70968320728202aa12048162248d368" title="Cartesian-to-spherical transformation for the conic equal area (COE) projection.">coex2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00718"></a>00718 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#fa8d27e481bbfffacd3e671e6715d5cb" title="Spherical-to-Cartesian transformation for the conic equal area (COE) projection.">coes2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00719"></a>00719
<a name="l00720"></a>00720 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#fbf5f05496f1e018425e02d60a4e0b74" title="Set up a prjprm struct for the conic equidistant (COD) projection.">codset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00721"></a>00721 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#105e2bf177120eb34f41e6af768f855d" title="Cartesian-to-spherical transformation for the conic equidistant (COD) projection...">codx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00722"></a>00722 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#fedc43dc512008174ec9b87753519031" title="Spherical-to-Cartesian transformation for the conic equidistant (COD) projection...">cods2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00723"></a>00723
<a name="l00724"></a>00724 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#344308a1d96a93f9bc682141f3df1a14" title="Set up a prjprm struct for the conic orthomorphic (COO) projection.">cooset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00725"></a>00725 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#2f42dcec4ea56bbb25b563859228b02e" title="Cartesian-to-spherical transformation for the conic orthomorphic (COO) projection...">coox2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00726"></a>00726 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#ed0317c8ffef248346da897568df266c" title="Spherical-to-Cartesian transformation for the conic orthomorphic (COO) projection...">coos2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00727"></a>00727
<a name="l00728"></a>00728 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#aec02a8e47d68e126983e9bb07a0c0aa" title="Set up a prjprm struct for Bonne&#39;s (BON) projection.">bonset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00729"></a>00729 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#53315ef8d3bd4002d1e98142fcf62566" title="Cartesian-to-spherical transformation for Bonne&#39;s (BON) projection.">bonx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00730"></a>00730 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#3b4cda48838c613460bff00c76fceb44" title="Spherical-to-Cartesian transformation for Bonne&#39;s (BON) projection.">bons2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00731"></a>00731
<a name="l00732"></a>00732 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#abdc7abc8b7c80187770cfd12c63f700" title="Set up a prjprm struct for the polyconic (PCO) projection.">pcoset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00733"></a>00733 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#28b623c88d38ab711fc61f36a97d0b27" title="Cartesian-to-spherical transformation for the polyconic (PCO) projection.">pcox2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00734"></a>00734 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#1f1714691f99f11640dccdc74eadfb49" title="Spherical-to-Cartesian transformation for the polyconic (PCO) projection.">pcos2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00735"></a>00735
<a name="l00736"></a>00736 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#ad75dcd0cd2fd0b6a162b5587cba9c2d" title="Set up a prjprm struct for the tangential spherical cube (TSC) projection.">tscset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00737"></a>00737 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#bbfbf3cba73850d7608765725993dfe3" title="Cartesian-to-spherical transformation for the tangential spherical cube (TSC) projection...">tscx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00738"></a>00738 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#167a49d730bca43483aef311f7114ae4" title="Spherical-to-Cartesian transformation for the tangential spherical cube (TSC) projection...">tscs2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00739"></a>00739
<a name="l00740"></a>00740 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#8bc552f12260f944e0b8f9b714804983" title="Set up a prjprm struct for the COBE spherical cube (CSC) projection.">cscset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00741"></a>00741 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#fcefcb885b7d1c33e0458345cdc9f4a4" title="Cartesian-to-spherical transformation for the COBE spherical cube (CSC) projection...">cscx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00742"></a>00742 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#c9a7ed6b032cfdaba0e8caba17c6c149" title="Spherical-to-Cartesian transformation for the COBE spherical cube (CSC) projection...">cscs2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00743"></a>00743
<a name="l00744"></a>00744 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#6d1f0504f9b864d4aed4a59d60bab819" title="Set up a prjprm struct for the quadrilateralized spherical cube (QSC) projection...">qscset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00745"></a>00745 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#fc5276e759c799deea36271d9cafc5e9" title="Cartesian-to-spherical transformation for the quadrilateralized spherical cube (QSC)...">qscx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00746"></a>00746 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#847b7c3f5b7361596912d3d876b4f4fe" title="Spherical-to-Cartesian transformation for the quadrilateralized spherical cube (QSC)...">qscs2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00747"></a>00747
<a name="l00748"></a>00748 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#a2167e62576d36eae341c2583cb5d678" title="Set up a prjprm struct for the HEALPix (HPX) projection.">hpxset</a>(<span class="keyword">struct</span> <a class="code" href="structprjprm.html" title="Projection parameters.">prjprm</a> *prj);
<a name="l00749"></a>00749 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#4ff298fcdc6e7e23dfb4971fbd26ebe7" title="Cartesian-to-spherical transformation for the HEALPix (HPX) projection.">hpxx2s</a>(<a class="code" href="prj_8h.html#37ad31c5d2926862d211db0d14f401f0" title="For use in declaring deprojection function prototypes.">PRJX2S_ARGS</a>);
<a name="l00750"></a>00750 <span class="keywordtype">int</span> <a class="code" href="prj_8h.html#f44375ad9036898dd6d12d2cc58bf53b" title="Spherical-to-Cartesian transformation for the HEALPix (HPX) projection.">hpxs2x</a>(<a class="code" href="prj_8h.html#acc46318c778bd844e30d6997394cc8a" title="For use in declaring projection function prototypes.">PRJS2X_ARGS</a>);
<a name="l00751"></a>00751
<a name="l00752"></a>00752
<a name="l00753"></a>00753 <span class="comment">/* Deprecated. */</span>
<a name="l00754"></a><a class="code" href="prj_8h.html#7f080405538ea2ddd2882c991e25bd2f">00754</a> <span class="preprocessor">#define prjini_errmsg prj_errmsg</span>
<a name="l00755"></a><a class="code" href="prj_8h.html#f862254dceec64a987fdaabc40e4963d">00755</a> <span class="preprocessor"></span><span class="preprocessor">#define prjprt_errmsg prj_errmsg</span>
<a name="l00756"></a><a class="code" href="prj_8h.html#94f59295c312536ce66482b3d9bebec4">00756</a> <span class="preprocessor"></span><span class="preprocessor">#define prjset_errmsg prj_errmsg</span>
<a name="l00757"></a><a class="code" href="prj_8h.html#3672afec3db0f850d67404814ebdbc64">00757</a> <span class="preprocessor"></span><span class="preprocessor">#define prjx2s_errmsg prj_errmsg</span>
<a name="l00758"></a><a class="code" href="prj_8h.html#df9cca0265038851129d1966017cd525">00758</a> <span class="preprocessor"></span><span class="preprocessor">#define prjs2x_errmsg prj_errmsg</span>
<a name="l00759"></a>00759 <span class="preprocessor"></span>
<a name="l00760"></a>00760 <span class="preprocessor">#ifdef __cplusplus</span>
<a name="l00761"></a>00761 <span class="preprocessor"></span>}
<a name="l00762"></a>00762 <span class="preprocessor">#endif</span>
<a name="l00763"></a>00763 <span class="preprocessor"></span>
<a name="l00764"></a>00764 <span class="preprocessor">#endif </span><span class="comment">/* WCSLIB_PROJ */</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Tue Oct 4 19:02:30 2011 for WCSLIB 4.8.2 by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
|