public software.sextractor

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 233 bertin
/*
2
*                               wcs.h
3
*
4
* Main WCSlib header file.
5
*
6
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7
*
8
*       This file part of:      AstrOmatic WCS library
9
*
10
*       Copyright:              (C) 2000-2010 IAP/CNRS/UPMC
11
*                               (C) 1995-1999 Mark Calabretta
12
*
13
*       Authors:                Emmanuel Bertin (this version)
14
*                               Mark Calabretta (original version)
15
*
16
*       Licenses:               GNU General Public License
17
*
18
*       AstrOmatic software is free software: you can redistribute it and/or
19
*       modify it under the terms of the GNU General Public License as
20
*       published by the Free Software Foundation, either version 3 of the
21
*       License, or (at your option) any later version.
22
*       AstrOmatic software is distributed in the hope that it will be useful,
23
*       but WITHOUT ANY WARRANTY; without even the implied warranty of
24
*       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25
*       GNU General Public License for more details.
26
*       You should have received a copy of the GNU General Public License
27
*       along with AstrOmatic software.
28
*       If not, see <http://www.gnu.org/licenses/>.
29
*
30
*       Last modified:          10/10/2010
31
*
32
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
33 2 bertin
/*=============================================================================
34
*
35
*   WCSLIB - an implementation of the FITS WCS proposal.
36
*   Copyright (C) 1995-1999, Mark Calabretta
37
*
38
*   This library is free software; you can redistribute it and/or modify it
39
*   under the terms of the GNU Library General Public License as published
40
*   by the Free Software Foundation; either version 2 of the License, or (at
41
*   your option) any later version.
42
*
43
*   This library is distributed in the hope that it will be useful, but
44
*   WITHOUT ANY WARRANTY; without even the implied warranty of
45
*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library
46
*   General Public License for more details.
47
*
48
*   You should have received a copy of the GNU Library General Public License
49
*   along with this library; if not, write to the Free Software Foundation,
50
*   Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
51
*
52
*   Correspondence concerning WCSLIB may be directed to:
53
*      Internet email: mcalabre@atnf.csiro.au
54
*      Postal address: Dr. Mark Calabretta,
55
*                      Australia Telescope National Facility,
56
*                      P.O. Box 76,
57
*                      Epping, NSW, 2121,
58
*                      AUSTRALIA
59
*
60
*   Author: Mark Calabretta, Australia Telescope National Facility
61
*   $Id: wcs.h,v 1.1.1.1 2002/03/15 16:33:26 bertin Exp $
62
*===========================================================================*/
63
 
64
#ifndef WCSLIB_WCS
65
#define WCSLIB_WCS
66
 
67
#include "cel.h"
68
#include "lin.h"
69
 
70
#ifdef __cplusplus
71
extern "C" {
72
#endif
73
 
74
struct wcsprm {
75
   int flag;
76
   char pcode[4];
77
   char lngtyp[5], lattyp[5];
78
   int lng, lat;
79
   int cubeface;
80
};
81
 
82
#if __STDC__ || defined(__cplusplus)
83
   int wcsset(const int,
84
              const char[][9],
85
              struct wcsprm *);
86
 
87
   int wcsfwd(const char[][9],
88
              struct wcsprm *,
89
              const double[],
90
              const double[],
91
              struct celprm *,
92
              double *,
93
              double *,
94
              struct prjprm *,
95
              double[],
96
              struct linprm *,
97
              double[]);
98
 
99
   int wcsrev(const char[][9],
100
              struct wcsprm *,
101
              const double[],
102
              struct linprm *,
103
              double[],
104
              struct prjprm *,
105
              double *,
106
              double *,
107
              const double[],
108
              struct celprm *,
109
              double[]);
110
 
111
   int wcsmix(const char[][9],
112
              struct wcsprm *,
113
              const int,
114
              const int,
115
              const double[],
116
              const double,
117
              int,
118
              double[],
119
              const double[],
120
              struct celprm *,
121
              double *,
122
              double *,
123
              struct prjprm *,
124
              double[],
125
              struct linprm *,
126
              double[]);
127
 
128
#else
129
   int wcsset(), wcsfwd(), wcsrev(), wcsmix();
130
#endif
131
 
132
extern const char *wcsset_errmsg[];
133
extern const char *wcsfwd_errmsg[];
134
extern const char *wcsrev_errmsg[];
135
extern const char *wcsmix_errmsg[];
136
 
137
#define WCSSET 137
138
 
139
#ifdef __cplusplus
140
};
141
#endif
142
 
143
#endif /* WCSLIB_WCS */