irplib_stdstar.h

00001 /* $Id: irplib_stdstar.h,v 1.16 2013/02/27 10:37:52 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: 2013/02/27 10:37:52 $
00024  * $Revision: 1.16 $
00025  * $Name: naco-4_3_3 $
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 #define     IRPLIB_STDSTAR_CAT_COL      "CATALOG"
00046 
00047 /* Maximum allowed distance [arc minutes] between observation and
00048    catalogue coordinates  */
00049 #define     IRPLIB_STDSTAR_MAXDIST       2.0
00050 
00051 /* Magical value to indicate an invalid magnitude  */
00052 #define     IRPLIB_STDSTAR_NOMAG         99.0
00053 
00054 /* Use this limit in comparisons regarding an invalid magnitude  */
00055 #define     IRPLIB_STDSTAR_LIMIT         (IRPLIB_STDSTAR_NOMAG-1.0)
00056 
00057 /*-----------------------------------------------------------------------------
00058                                    Function prototypes
00059  -----------------------------------------------------------------------------*/
00060 
00061 cpl_error_code
00062 irplib_stdstar_write_catalogs(cpl_frameset *, const cpl_frameset *,
00063                               const char *, const char *, const char *,
00064                               const char *, const char *,
00065                               cpl_table * (*)(const char *));
00066 cpl_table * irplib_stdstar_load_catalog(const char *, const char *);
00067 cpl_error_code irplib_stdstar_check_columns_exist(const cpl_table  *);
00068 int irplib_stdstar_select_stars_dist(cpl_table *, double, double, double);
00069 int irplib_stdstar_select_stars_mag(cpl_table *, const char *);
00070 int irplib_stdstar_find_closest(const cpl_table *, double, double);
00071 cpl_error_code irplib_stdstar_find_star(const char *, double, double, const char *, 
00072         const char *, double *, char **, char **, char **, 
00073         double *, double  * , double);
00074 cpl_vector * irplib_stdstar_get_conversion(const cpl_bivector *, double, double,
00075         double, double);
00076 cpl_vector * irplib_stdstar_get_mag_zero(const cpl_bivector *,
00077         const cpl_vector *, double);
00078 cpl_bivector * irplib_stdstar_get_sed(const char *, const char *);
00079 
00080 #endif

Generated on Tue Mar 12 15:19:53 2013 for NACO Pipeline Reference Manual by  doxygen 1.4.7