GIRAFFE Pipeline Reference Manual

gifiberutils.h

00001 /* $Id: gifiberutils.h,v 1.14 2009/05/29 12:17:52 rpalsa Exp $
00002  *
00003  * This file is part of the GIRAFFE Pipeline
00004  * Copyright (C) 2002-2006 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  02110-1301  USA
00019  */
00020 
00021 /*
00022  * $Author: rpalsa $
00023  * $Date: 2009/05/29 12:17:52 $
00024  * $Revision: 1.14 $
00025  * $Name: giraffe-2_8_8 $
00026  */
00027 
00028 #ifndef GIFIBERUTILS_H
00029 #define GIFIBERUTILS_H
00030 
00031 #include <cxtypes.h>
00032 
00033 #include <cpl_macros.h>
00034 #include <cpl_array.h>
00035 #include <cpl_table.h>
00036 #include <cpl_frame.h>
00037 
00038 #include <gitable.h>
00039 
00040 
00041 #ifdef __cplusplus
00042 extern "C" {
00043 #endif
00044 
00045 
00046 #define GIOZPOZ_EXTENSION  (1)
00047 #define GIOZPOZ_MAGIC      "OzPoz_table"
00048 
00049 #define GIFIBER_EXTENSION  (2)
00050 #define GIFIBER_MAGIC      "FLAMES FIBRE Table"
00051 
00052 
00053 /*
00054  * Fiber table utilities
00055  */
00056 
00057 cpl_table *giraffe_fiberlist_create(const cxchar *filename, cxint nspec,
00058                                     const cxint *spectra);
00059 
00060 GiTable *giraffe_fiberlist_load(const cxchar *filename, cxint dataset,
00061                                 const cxchar *tag);
00062 
00063 cxint giraffe_fiberlist_save(GiTable *, const cxchar *filename);
00064 cxint giraffe_fiberlist_attach(cpl_frame *frame, GiTable *fibers);
00065 
00066 cxint giraffe_fiberlist_compare(const GiTable *fibers,
00067                                 const GiTable *reference);
00068 
00069 cxint giraffe_fiberlist_associate(GiTable *fibers, const GiTable *reference);
00070 
00071 cxint giraffe_fiberlist_clear_index(GiTable* fibers);
00072 const cxchar *giraffe_fiberlist_query_index(const cpl_table *fibers);
00073 
00074 cpl_array* giraffe_fiberlist_get_subslits(const cpl_table* fibers);
00075 
00076 cxint *giraffe_parse_spectrum_selection(const cxchar *selection,
00077                                         cxint *nspec);
00078 
00079 
00080 #ifdef __cplusplus
00081 }
00082 #endif
00083 
00084 #endif /* GIFIBERUTILS_H */

This file is part of the GIRAFFE Pipeline Reference Manual 2.8.8.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Fri Mar 4 10:50:27 2011 by doxygen 1.6.3 written by Dimitri van Heesch, © 1997-2004