irplib_std.h

00001 /* $Id: irplib_std.h,v 1.11 2006/09/26 08:11:11 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: 2006/09/26 08:11:11 $
00024  * $Revision: 1.11 $
00025  * $Name:  $
00026  */
00027 
00028 #ifndef IRPLIB_STD_H
00029 #define IRPLIB_STD_H
00030 
00031 /*-----------------------------------------------------------------------------
00032                                 Includes
00033  -----------------------------------------------------------------------------*/
00034 
00035 #include <cpl.h>
00036 
00037 /*-----------------------------------------------------------------------------
00038                                 New types
00039  -----------------------------------------------------------------------------*/
00040 
00041 /* @cond */
00042 typedef struct _IRPLIB_IRSTD_ {
00043     int             select ;
00044     const char    * name ;
00045     const double    ra ;
00046     const double    dec ;
00047     const char    * sptype ;
00048     const float     mag_J ;
00049     const float     mag_H ;
00050     const float     mag_K ;
00051     const float     mag_Ks ;
00052     const float     mag_L ;
00053     const float     mag_M ;
00054     const float     mag_Lp ;
00055     const float     mag_Mp ;
00056     const int       source ;
00057 } irplib_irstd ;
00058 /* @endcond */
00059 
00060 /* @cond */
00061 typedef enum _IRPLIB_BAND_ {
00062     BAND_J,
00063     BAND_JS,
00064     BAND_JBLOCK,
00065     BAND_H,
00066     BAND_K,
00067     BAND_KS,
00068     BAND_L,
00069     BAND_M,
00070     BAND_LP,
00071     BAND_MP,
00072     BAND_Z,
00073     BAND_SZ,
00074     BAND_SH,
00075     BAND_SK,
00076     BAND_SL,
00077     BAND_UNKNOWN
00078 } irplib_band ;
00079 /* @endcond */
00080 
00081 /*-----------------------------------------------------------------------------
00082                                    Function prototypes
00083  -----------------------------------------------------------------------------*/
00084 
00085 /* "Constructors" */
00086 irplib_irstd * irplib_std_get_mag_one_cat(double, double, irplib_band, 
00087                                           const char *, double *);
00088 irplib_irstd * irplib_std_get_mag(double, double, irplib_band, double *);
00089 irplib_irstd * irplib_std_get_type(double, double);
00090 
00091 /* Accessors */
00092 const char * irplib_std_get_name(const irplib_irstd *);
00093 const char * irplib_std_get_catalog(const irplib_irstd *);
00094 const char * irplib_std_get_type_spectral(const irplib_irstd *);
00095 
00096 /* Others */
00097 const char * irplib_std_catalog_name(int);
00098 const char * irplib_std_band_name(irplib_band);
00099 cpl_vector * irplib_std_get_conversion(const cpl_bivector *, double, double, 
00100                                        double, double);
00101 cpl_vector * irplib_std_get_mag_zero(const cpl_bivector *, const cpl_vector *, 
00102                                      double);
00103 cpl_bivector * irplib_std_get_sed(const char *, const char *);
00104 
00105 #endif

Generated on Wed Jan 17 08:33:41 2007 for SINFONI Pipeline Reference Manual by  doxygen 1.4.4