irplib_wcs.h

00001 /* $Id: irplib_wcs.h,v 1.7 2010/10/07 14:10:55 llundin Exp $
00002  *
00003  * This file is part of the irplib package
00004  * Copyright (C) 2002,2003 European Southern Observatory
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02111-1307  USA
00019  */
00020 
00021 /*
00022  * $Author: llundin $
00023  * $Date: 2010/10/07 14:10:55 $
00024  * $Revision: 1.7 $
00025  * $Name: HEAD $
00026  */
00027 
00028 #ifndef IRPLIB_WCS_H
00029 #define IRPLIB_WCS_H
00030 
00031 /*-----------------------------------------------------------------------------
00032                                    Includes
00033  -----------------------------------------------------------------------------*/
00034 
00035 #include <cpl.h>
00036 
00037 cpl_error_code irplib_wcs_xytoradec(const cpl_wcs * wcs,
00038                                     double          x,
00039                                     double          y,
00040                                     double        * ra,
00041                                     double        * dec);
00042 
00043 cpl_error_code irplib_wcs_radectoxy(const cpl_wcs * wcs,
00044                                     double          ra,
00045                                     double          dec,
00046                                     double        * x,
00047                                     double        * y);
00048 
00049 double irplib_wcs_great_circle_dist(double ra1,
00050                                     double dec1,
00051                                     double ra2,
00052                                     double dec2);
00053 
00054 
00055 cpl_error_code irplib_wcs_iso8601_from_string(int *, int *, int *, int *, int *,
00056                                               double *, const char *);
00057 
00058 cpl_error_code irplib_wcs_mjd_from_iso8601(double *, int, int, int, int, int,
00059                                            double);
00060 
00061 cpl_error_code irplib_wcs_mjd_from_string(double *, const char *);
00062 
00063 cpl_error_code irplib_wcs_iso8601_from_mjd(int *, int *, int *, int *, int *,
00064                                            double *, double);
00065 
00066 #endif

Generated on 1 Mar 2011 for DETMON Pipeline Reference Manual by  doxygen 1.6.1