| 1 |
233 |
bertin |
/*
|
| 2 |
|
|
* lin.h
|
| 3 |
|
|
*
|
| 4 |
|
|
* Include file for lin.c.
|
| 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 |
|
|
* $Id: lin.h,v 1.1.1.1 2002/03/15 16:33:26 bertin Exp $
|
| 59 |
|
|
*===========================================================================*/
|
| 60 |
|
|
|
| 61 |
|
|
#ifndef WCSLIB_LIN
|
| 62 |
|
|
#define WCSLIB_LIN
|
| 63 |
|
|
|
| 64 |
|
|
#ifdef __cplusplus
|
| 65 |
|
|
extern "C" {
|
| 66 |
|
|
#endif
|
| 67 |
|
|
|
| 68 |
|
|
#if !defined(__STDC__) && !defined(__cplusplus)
|
| 69 |
|
|
#ifndef const
|
| 70 |
|
|
#define const
|
| 71 |
|
|
#endif
|
| 72 |
|
|
#endif
|
| 73 |
|
|
|
| 74 |
|
|
struct linprm {
|
| 75 |
|
|
int flag;
|
| 76 |
|
|
int naxis;
|
| 77 |
|
|
double *crpix;
|
| 78 |
|
|
double *pc;
|
| 79 |
|
|
double *cdelt;
|
| 80 |
|
|
|
| 81 |
|
|
/* Intermediates. */
|
| 82 |
|
|
double *piximg;
|
| 83 |
|
|
double *imgpix;
|
| 84 |
|
|
};
|
| 85 |
|
|
|
| 86 |
|
|
#if __STDC__ || defined(__cplusplus)
|
| 87 |
|
|
int linset(struct linprm *);
|
| 88 |
|
|
int linfwd(const double[], struct linprm *, double[]);
|
| 89 |
|
|
int linrev(const double[], struct linprm *, double[]);
|
| 90 |
|
|
int matinv(const int, const double [], double []);
|
| 91 |
|
|
#else
|
| 92 |
|
|
int linset(), linfwd(), linrev(), matinv();
|
| 93 |
|
|
#endif
|
| 94 |
|
|
|
| 95 |
|
|
extern const char *linset_errmsg[];
|
| 96 |
|
|
extern const char *linfwd_errmsg[];
|
| 97 |
|
|
extern const char *linrev_errmsg[];
|
| 98 |
|
|
|
| 99 |
|
|
#define LINSET 137
|
| 100 |
|
|
|
| 101 |
|
|
#ifdef __cplusplus
|
| 102 |
|
|
};
|
| 103 |
|
|
#endif
|
| 104 |
|
|
|
| 105 |
|
|
#endif /* WCSLIB_LIN */
|