public software.sextractor

[/] [trunk/] [src/] [wcs/] [cel.h] - Blame information for rev 284

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 233 bertin
/*
2
*                               cel.h
3
*
4
* Include file for cel.c.
5
*
6
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7
*
8
*       This file part of:      AstrOmatic WCS library
9
*
10 284 bertin
*       Copyright:              (C) 2000-2012 Emmanuel Bertin -- IAP/CNRS/UPMC
11 235 bertin
*                               (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 284 bertin
*       Last modified:          11/04/2012
28 233 bertin
*
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 284 bertin
*   $Id: cel.h,v 1.1.1.1 2012/04/11 16:33:26 bertin Exp $
59 2 bertin
*===========================================================================*/
60
 
61
#ifndef WCSLIB_CEL
62
#define WCSLIB_CEL
63
 
64
#include "proj.h"
65
 
66
#ifdef __cplusplus
67
extern "C" {
68
#endif
69
 
70
extern int npcode;
71 284 bertin
extern char pcodes[27][4];
72 2 bertin
 
73
struct celprm {
74
   int flag;
75
   double ref[4];
76
   double euler[5];
77
 
78
#if __STDC__  || defined(__cplusplus)
79
   int (*prjfwd)(const double, const double,
80
                 struct prjprm *,
81
                 double *, double *);
82
   int (*prjrev)(const double, const double,
83
                 struct prjprm *,
84
                 double *, double *);
85
#else
86
   int (*prjfwd)();
87
   int (*prjrev)();
88
#endif
89
};
90
 
91
#if __STDC__  || defined(__cplusplus)
92
   int celset(const char *, struct celprm *, struct prjprm *);
93
   int celfwd(const char *,
94
              const double, const double,
95
              struct celprm *,
96
              double *, double *,
97
              struct prjprm *,
98
              double *, double *);
99
   int celrev(const char *,
100
              const double, const double,
101
              struct prjprm *,
102
              double *, double *,
103
              struct celprm *,
104
              double *, double *);
105
#else
106
   int celset(), celfwd(), celrev();
107
#endif
108
 
109
extern const char *celset_errmsg[];
110
extern const char *celfwd_errmsg[];
111
extern const char *celrev_errmsg[];
112
 
113
#define CELSET 137
114
 
115
#ifdef __cplusplus
116
}
117
#endif
118
 
119
#endif /* WCSLIB_CEL */