00001 /* * 00002 * This file is part of the ESO X-shooter Pipeline * 00003 * Copyright (C) 2006 European Southern Observatory * 00004 * * 00005 * This library is/ free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 * This program is distributed in the hope that it will be useful, * 00011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00013 * GNU General Public License for more details. * 00014 * * 00015 * You should have received a copy of the GNU General Public License * 00016 * along with this program; if not, write to the Free Software * 00017 * Foundation, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA * 00018 * */ 00019 00020 /* 00021 * $Author: amodigli $ 00022 * $Date: 2010/09/24 14:19:46 $ 00023 * $Revision: 1.5 $ 00024 */ 00025 00026 #if !defined(XSH_DATA_ATMOS_EXT_H) 00027 #define XSH_DATA_ATMOS_EXT_H 00028 00029 00030 #include <cpl.h> 00031 00032 #define XSH_ATMOS_EXT_LIST_COLNAME_WAVELENGTH "LAMBDA" 00033 #define XSH_ATMOS_EXT_LIST_COLNAME_K "LA_SILLA" 00034 00035 typedef struct { 00036 int size ; 00037 cpl_propertylist * header ; 00038 double * lambda ; 00039 double * K ; 00040 } xsh_atmos_ext_list ; 00041 00042 xsh_atmos_ext_list * xsh_atmos_ext_list_load( cpl_frame * ext_frame ) ; 00043 void xsh_atmos_ext_list_free( xsh_atmos_ext_list ** list ) ; 00044 xsh_atmos_ext_list * xsh_atmos_ext_list_create( int size ) ; 00045 double * xsh_atmos_ext_list_get_lambda( xsh_atmos_ext_list * list ) ; 00046 double * xsh_atmos_ext_list_get_K( xsh_atmos_ext_list * list ) ; 00047 cpl_error_code 00048 xsh_atmos_ext_dump_ascii( xsh_atmos_ext_list * list, const char* filename ); 00049 00050 #endif