SINFONI Pipeline Reference Manual  2.6.0
irplib_wcs.h
1 /* $Id: irplib_wcs.h,v 1.7 2010-10-07 14:10:55 llundin Exp $
2  *
3  * This file is part of the irplib package
4  * Copyright (C) 2002,2003 European Southern Observatory
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
19  */
20 
21 /*
22  * $Author: llundin $
23  * $Date: 2010-10-07 14:10:55 $
24  * $Revision: 1.7 $
25  * $Name: not supported by cvs2svn $
26  */
27 
28 #ifndef IRPLIB_WCS_H
29 #define IRPLIB_WCS_H
30 
31 /*-----------------------------------------------------------------------------
32  Includes
33  -----------------------------------------------------------------------------*/
34 
35 #include <cpl.h>
36 
37 cpl_error_code irplib_wcs_xytoradec(const cpl_wcs * wcs,
38  double x,
39  double y,
40  double * ra,
41  double * dec);
42 
43 cpl_error_code irplib_wcs_radectoxy(const cpl_wcs * wcs,
44  double ra,
45  double dec,
46  double * x,
47  double * y);
48 
49 double irplib_wcs_great_circle_dist(double ra1,
50  double dec1,
51  double ra2,
52  double dec2);
53 
54 
55 cpl_error_code irplib_wcs_iso8601_from_string(int *, int *, int *, int *, int *,
56  double *, const char *);
57 
58 cpl_error_code irplib_wcs_mjd_from_iso8601(double *, int, int, int, int, int,
59  double);
60 
61 cpl_error_code irplib_wcs_mjd_from_string(double *, const char *);
62 
63 cpl_error_code irplib_wcs_iso8601_from_mjd(int *, int *, int *, int *, int *,
64  double *, double);
65 
66 #endif