| 1 |
233 |
bertin |
/*
|
| 2 |
|
|
* proj.h
|
| 3 |
|
|
*
|
| 4 |
|
|
* Include file for proj.h.
|
| 5 |
|
|
*
|
| 6 |
|
|
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
| 7 |
|
|
*
|
| 8 |
|
|
* This file part of: AstrOmatic WCS library
|
| 9 |
|
|
*
|
| 10 |
235 |
bertin |
* Copyright: (C) 2000-2010 Emmanuel Bertin -- IAP/CNRS/UPMC
|
| 11 |
|
|
* (C) 1995-1999 Mark Calabretta (original version)
|
| 12 |
233 |
bertin |
*
|
| 13 |
|
|
* Licenses: GNU General Public License
|
| 14 |
|
|
*
|
| 15 |
|
|
* AstrOmatic software is free software: you can redistribute it and/or
|
| 16 |
|
|
* modify it under the terms of the GNU General Public License as
|
| 17 |
|
|
* published by the Free Software Foundation, either version 3 of the
|
| 18 |
|
|
* License, or (at your option) any later version.
|
| 19 |
|
|
* AstrOmatic software is distributed in the hope that it will be useful,
|
| 20 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 21 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 22 |
|
|
* GNU General Public License for more details.
|
| 23 |
|
|
* You should have received a copy of the GNU General Public License
|
| 24 |
|
|
* along with AstrOmatic software.
|
| 25 |
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
| 26 |
|
|
*
|
| 27 |
|
|
* Last modified: 10/10/2010
|
| 28 |
|
|
*
|
| 29 |
|
|
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
|
| 30 |
2 |
bertin |
/*=============================================================================
|
| 31 |
|
|
*
|
| 32 |
|
|
* WCSLIB - an implementation of the FITS WCS proposal.
|
| 33 |
|
|
* Copyright (C) 1995-1999, Mark Calabretta
|
| 34 |
|
|
*
|
| 35 |
|
|
* This library is free software; you can redistribute it and/or modify it
|
| 36 |
|
|
* under the terms of the GNU Library General Public License as published
|
| 37 |
|
|
* by the Free Software Foundation; either version 2 of the License, or (at
|
| 38 |
|
|
* your option) any later version.
|
| 39 |
|
|
*
|
| 40 |
|
|
* This library is distributed in the hope that it will be useful, but
|
| 41 |
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 42 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
|
| 43 |
|
|
* General Public License for more details.
|
| 44 |
|
|
*
|
| 45 |
|
|
* You should have received a copy of the GNU Library General Public License
|
| 46 |
|
|
* along with this library; if not, write to the Free Software Foundation,
|
| 47 |
|
|
* Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
| 48 |
|
|
*
|
| 49 |
|
|
* Correspondence concerning WCSLIB may be directed to:
|
| 50 |
|
|
* Internet email: mcalabre@atnf.csiro.au
|
| 51 |
|
|
* Postal address: Dr. Mark Calabretta,
|
| 52 |
|
|
* Australia Telescope National Facility,
|
| 53 |
|
|
* P.O. Box 76,
|
| 54 |
|
|
* Epping, NSW, 2121,
|
| 55 |
|
|
* AUSTRALIA
|
| 56 |
|
|
*
|
| 57 |
|
|
* Author: Mark Calabretta, Australia Telescope National Facility
|
| 58 |
|
|
* IRAF's TNX added by E.Bertin 2000/03/28
|
| 59 |
|
|
* $Id: proj.h,v 1.1.1.1 2002/03/15 16:33:26 bertin Exp $
|
| 60 |
|
|
*===========================================================================*/
|
| 61 |
|
|
|
| 62 |
|
|
#ifndef WCSLIB_PROJ
|
| 63 |
|
|
#define WCSLIB_PROJ
|
| 64 |
|
|
|
| 65 |
|
|
#ifdef __cplusplus
|
| 66 |
|
|
extern "C" {
|
| 67 |
|
|
#endif
|
| 68 |
|
|
|
| 69 |
|
|
struct prjprm {
|
| 70 |
|
|
int flag;
|
| 71 |
|
|
int n;
|
| 72 |
|
|
double r0;
|
| 73 |
|
|
double p[200];
|
| 74 |
|
|
double w[10];
|
| 75 |
|
|
struct tnxaxis *tnx_latcor;
|
| 76 |
|
|
struct tnxaxis *tnx_lngcor;
|
| 77 |
|
|
struct poly *inv_x;
|
| 78 |
|
|
struct poly *inv_y;
|
| 79 |
|
|
};
|
| 80 |
|
|
|
| 81 |
|
|
#if __STDC__ || defined(__cplusplus)
|
| 82 |
|
|
int azpset(struct prjprm *);
|
| 83 |
|
|
int azpfwd(const double, const double, struct prjprm *, double *, double *);
|
| 84 |
|
|
int azprev(const double, const double, struct prjprm *, double *, double *);
|
| 85 |
|
|
int tanset(struct prjprm *);
|
| 86 |
|
|
int tanfwd(const double, const double, struct prjprm *, double *, double *);
|
| 87 |
|
|
int tanrev(const double, const double, struct prjprm *, double *, double *);
|
| 88 |
|
|
int sinset(struct prjprm *);
|
| 89 |
|
|
int sinfwd(const double, const double, struct prjprm *, double *, double *);
|
| 90 |
|
|
int sinrev(const double, const double, struct prjprm *, double *, double *);
|
| 91 |
|
|
int stgset(struct prjprm *);
|
| 92 |
|
|
int stgfwd(const double, const double, struct prjprm *, double *, double *);
|
| 93 |
|
|
int stgrev(const double, const double, struct prjprm *, double *, double *);
|
| 94 |
|
|
int arcset(struct prjprm *);
|
| 95 |
|
|
int arcfwd(const double, const double, struct prjprm *, double *, double *);
|
| 96 |
|
|
int arcrev(const double, const double, struct prjprm *, double *, double *);
|
| 97 |
|
|
int zpnset(struct prjprm *);
|
| 98 |
|
|
int zpnfwd(const double, const double, struct prjprm *, double *, double *);
|
| 99 |
|
|
int zpnrev(const double, const double, struct prjprm *, double *, double *);
|
| 100 |
|
|
int zeaset(struct prjprm *);
|
| 101 |
|
|
int zeafwd(const double, const double, struct prjprm *, double *, double *);
|
| 102 |
|
|
int zearev(const double, const double, struct prjprm *, double *, double *);
|
| 103 |
|
|
int airset(struct prjprm *);
|
| 104 |
|
|
int airfwd(const double, const double, struct prjprm *, double *, double *);
|
| 105 |
|
|
int airrev(const double, const double, struct prjprm *, double *, double *);
|
| 106 |
|
|
int cypset(struct prjprm *);
|
| 107 |
|
|
int cypfwd(const double, const double, struct prjprm *, double *, double *);
|
| 108 |
|
|
int cyprev(const double, const double, struct prjprm *, double *, double *);
|
| 109 |
|
|
int carset(struct prjprm *);
|
| 110 |
|
|
int carfwd(const double, const double, struct prjprm *, double *, double *);
|
| 111 |
|
|
int carrev(const double, const double, struct prjprm *, double *, double *);
|
| 112 |
|
|
int merset(struct prjprm *);
|
| 113 |
|
|
int merfwd(const double, const double, struct prjprm *, double *, double *);
|
| 114 |
|
|
int merrev(const double, const double, struct prjprm *, double *, double *);
|
| 115 |
|
|
int ceaset(struct prjprm *);
|
| 116 |
|
|
int ceafwd(const double, const double, struct prjprm *, double *, double *);
|
| 117 |
|
|
int cearev(const double, const double, struct prjprm *, double *, double *);
|
| 118 |
|
|
int copset(struct prjprm *);
|
| 119 |
|
|
int copfwd(const double, const double, struct prjprm *, double *, double *);
|
| 120 |
|
|
int coprev(const double, const double, struct prjprm *, double *, double *);
|
| 121 |
|
|
int codset(struct prjprm *);
|
| 122 |
|
|
int codfwd(const double, const double, struct prjprm *, double *, double *);
|
| 123 |
|
|
int codrev(const double, const double, struct prjprm *, double *, double *);
|
| 124 |
|
|
int coeset(struct prjprm *);
|
| 125 |
|
|
int coefwd(const double, const double, struct prjprm *, double *, double *);
|
| 126 |
|
|
int coerev(const double, const double, struct prjprm *, double *, double *);
|
| 127 |
|
|
int cooset(struct prjprm *);
|
| 128 |
|
|
int coofwd(const double, const double, struct prjprm *, double *, double *);
|
| 129 |
|
|
int coorev(const double, const double, struct prjprm *, double *, double *);
|
| 130 |
|
|
int bonset(struct prjprm *);
|
| 131 |
|
|
int bonfwd(const double, const double, struct prjprm *, double *, double *);
|
| 132 |
|
|
int bonrev(const double, const double, struct prjprm *, double *, double *);
|
| 133 |
|
|
int pcoset(struct prjprm *);
|
| 134 |
|
|
int pcofwd(const double, const double, struct prjprm *, double *, double *);
|
| 135 |
|
|
int pcorev(const double, const double, struct prjprm *, double *, double *);
|
| 136 |
|
|
int glsset(struct prjprm *);
|
| 137 |
|
|
int glsfwd(const double, const double, struct prjprm *, double *, double *);
|
| 138 |
|
|
int glsrev(const double, const double, struct prjprm *, double *, double *);
|
| 139 |
|
|
int parset(struct prjprm *);
|
| 140 |
|
|
int parfwd(const double, const double, struct prjprm *, double *, double *);
|
| 141 |
|
|
int parrev(const double, const double, struct prjprm *, double *, double *);
|
| 142 |
|
|
int aitset(struct prjprm *);
|
| 143 |
|
|
int aitfwd(const double, const double, struct prjprm *, double *, double *);
|
| 144 |
|
|
int aitrev(const double, const double, struct prjprm *, double *, double *);
|
| 145 |
|
|
int molset(struct prjprm *);
|
| 146 |
|
|
int molfwd(const double, const double, struct prjprm *, double *, double *);
|
| 147 |
|
|
int molrev(const double, const double, struct prjprm *, double *, double *);
|
| 148 |
|
|
int cscset(struct prjprm *);
|
| 149 |
|
|
int cscfwd(const double, const double, struct prjprm *, double *, double *);
|
| 150 |
|
|
int cscrev(const double, const double, struct prjprm *, double *, double *);
|
| 151 |
|
|
int qscset(struct prjprm *);
|
| 152 |
|
|
int qscfwd(const double, const double, struct prjprm *, double *, double *);
|
| 153 |
|
|
int qscrev(const double, const double, struct prjprm *, double *, double *);
|
| 154 |
|
|
int tscset(struct prjprm *);
|
| 155 |
|
|
int tscfwd(const double, const double, struct prjprm *, double *, double *);
|
| 156 |
|
|
int tscrev(const double, const double, struct prjprm *, double *, double *);
|
| 157 |
|
|
int tnxset(struct prjprm *);
|
| 158 |
|
|
int tnxfwd(const double, const double, struct prjprm *, double *, double *);
|
| 159 |
|
|
int tnxrev(const double, const double, struct prjprm *, double *, double *);
|
| 160 |
|
|
int raw_to_pv(struct prjprm *, double, double, double *, double *);
|
| 161 |
|
|
#else
|
| 162 |
|
|
int azpset(), azpfwd(), azprev();
|
| 163 |
|
|
int tanset(), tanfwd(), tanrev();
|
| 164 |
|
|
int sinset(), sinfwd(), sinrev();
|
| 165 |
|
|
int stgset(), stgfwd(), stgrev();
|
| 166 |
|
|
int arcset(), arcfwd(), arcrev();
|
| 167 |
|
|
int zpnset(), zpnfwd(), zpnrev();
|
| 168 |
|
|
int zeaset(), zeafwd(), zearev();
|
| 169 |
|
|
int airset(), airfwd(), airrev();
|
| 170 |
|
|
int cypset(), cypfwd(), cyprev();
|
| 171 |
|
|
int carset(), carfwd(), carrev();
|
| 172 |
|
|
int merset(), merfwd(), merrev();
|
| 173 |
|
|
int ceaset(), ceafwd(), cearev();
|
| 174 |
|
|
int copset(), copfwd(), coprev();
|
| 175 |
|
|
int codset(), codfwd(), codrev();
|
| 176 |
|
|
int coeset(), coefwd(), coerev();
|
| 177 |
|
|
int cooset(), coofwd(), coorev();
|
| 178 |
|
|
int bonset(), bonfwd(), bonrev();
|
| 179 |
|
|
int pcoset(), pcofwd(), pcorev();
|
| 180 |
|
|
int glsset(), glsfwd(), glsrev();
|
| 181 |
|
|
int parset(), parfwd(), parrev();
|
| 182 |
|
|
int aitset(), aitfwd(), aitrev();
|
| 183 |
|
|
int molset(), molfwd(), molrev();
|
| 184 |
|
|
int cscset(), cscfwd(), cscrev();
|
| 185 |
|
|
int qscset(), qscfwd(), qscrev();
|
| 186 |
|
|
int tscset(), tscfwd(), tscrev();
|
| 187 |
|
|
int tnxset(), tnxfwd(), tnxrev();
|
| 188 |
|
|
#endif
|
| 189 |
|
|
/*
|
| 190 |
|
|
extern const char *prjset_errmsg[];
|
| 191 |
|
|
extern const char *prjfwd_errmsg[];
|
| 192 |
|
|
extern const char *prjrev_errmsg[];
|
| 193 |
|
|
*/
|
| 194 |
|
|
#define PRJSET 137
|
| 195 |
|
|
|
| 196 |
|
|
#ifdef __cplusplus
|
| 197 |
|
|
};
|
| 198 |
|
|
#endif
|
| 199 |
|
|
|
| 200 |
|
|
#endif /* WCSLIB_PROJ */
|