irplib_stdstar.h

00001 /* $Id: irplib_stdstar.h,v 1.13 2009/04/27 09:37:20 cgarcia 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: cgarcia $
00023  * $Date: 2009/04/27 09:37:20 $
00024  * $Revision: 1.13 $
00025  * $Name: HEAD $
00026  */
00027 
00028 #ifndef IRPLIB_STDSTAR_H
00029 #define IRPLIB_STDSTAR_H
00030 
00031 /*-----------------------------------------------------------------------------
00032                                    Includes
00033  -----------------------------------------------------------------------------*/
00034 
00035 #include <cpl.h>
00036 
00037 /*-----------------------------------------------------------------------------
00038                                    Defines
00039  -----------------------------------------------------------------------------*/
00040 
00041 #define     IRPLIB_STDSTAR_STAR_COL     "STARS"
00042 #define     IRPLIB_STDSTAR_TYPE_COL     "SP_TYPE"
00043 #define     IRPLIB_STDSTAR_RA_COL       "RA"
00044 #define     IRPLIB_STDSTAR_DEC_COL      "DEC"
00045 
00046 /* Maximum allowed distance [arc minutes] between observation and
00047    catalogue coordinates  */
00048 #define     IRPLIB_STDSTAR_MAXDIST       2.0
00049 
00050 /* Magical value to indicate an invalid magnitude  */
00051 #define     IRPLIB_STDSTAR_NOMAG         99.0
00052 
00053 /* Use this limit in comparisons regarding an invalid magnitude  */
00054 #define     IRPLIB_STDSTAR_LIMIT         (IRPLIB_STDSTAR_NOMAG-1.0)
00055 
00056 /*-----------------------------------------------------------------------------
00057                                    Function prototypes
00058  -----------------------------------------------------------------------------*/
00059 
00060 int irplib_stdstar_write_catalogs(cpl_frameset *, const cpl_frameset *, 
00061         const char *, const char *, const char *, const char *,
00062         const char *, cpl_table * (*convert_ascii_table)(const char *)) ;
00063 cpl_table * irplib_stdstar_load_catalog(const char *, const char *) ;
00064 int irplib_stdstar_select_stars_dist(cpl_table *, double, double, double) ;
00065 int irplib_stdstar_select_stars_mag(cpl_table *, const char *) ;
00066 int irplib_stdstar_find_closest(const cpl_table *, double, double) ;
00067 int irplib_stdstar_get_mag(const char *, double, double, const char *, 
00068         const char *, double *, char *, char *, double);
00069 cpl_error_code irplib_stdstar_find_star(const char *, double, double, const char *, 
00070         const char *, double *, char *, char *, double *, double  * , double);
00071 cpl_vector * irplib_stdstar_get_conversion(const cpl_bivector *, double, double,
00072         double, double);
00073 cpl_vector * irplib_stdstar_get_mag_zero(const cpl_bivector *,
00074         const cpl_vector *, double);
00075 cpl_bivector * irplib_stdstar_get_sed(const char *, const char *);
00076 
00077 #endif

Generated on Wed Mar 9 15:46:17 2011 for NACO Pipeline Reference Manual by  doxygen 1.5.8