GIRAFFE Pipeline Reference Manual

gifiberutils.h

00001 /* $Id: gifiberutils.h,v 1.12 2006/03/10 15:56:10 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: 2006/03/10 15:56:10 $
00024  * $Revision: 1.12 $
00025  * $Name: giraffe-2_5_1 $
00026  */
00027 
00028 #ifndef GIFIBERUTILS_H
00029 #define GIFIBERUTILS_H
00030 
00031 #include <cxtypes.h>
00032 
00033 #include <cpl_macros.h>
00034 #include <cpl_table.h>
00035 #include <cpl_frame.h>
00036 
00037 #include <gitable.h>
00038 
00039 
00040 #ifdef __cplusplus
00041 extern "C" {
00042 #endif
00043 
00044 
00045 #define GIOZPOZ_EXTENSION  (1)
00046 #define GIOZPOZ_MAGIC      "OzPoz_table"
00047 
00048 #define GIFIBER_EXTENSION  (2)
00049 #define GIFIBER_MAGIC      "FLAMES FIBRE Table"
00050 
00051 
00052 /*
00053  * Fiber table utilities
00054  */
00055 
00056 cpl_table *giraffe_fiberlist_create(const cxchar *filename, cxint nspec,
00057                                     const cxint *spectra);
00058 
00059 GiTable *giraffe_fiberlist_load(const cxchar *filename, cxint dataset,
00060                                 const cxchar *tag);
00061 
00062 cxint giraffe_fiberlist_save(GiTable *, const cxchar *filename);
00063 cxint giraffe_fiberlist_attach(cpl_frame *frame, GiTable *fibers);
00064 
00065 cxint giraffe_fiberlist_compare(const GiTable *fibers,
00066                                 const GiTable *reference);
00067 
00068 cxint giraffe_fiberlist_associate(GiTable *fibers, const GiTable *reference);
00069 
00070 const cxchar *giraffe_fiberlist_query_index(const cpl_table *fibers);
00071 
00072 cxint *giraffe_parse_spectrum_selection(const cxchar *selection,
00073                                         cxint *nspec);
00074 
00075 
00076 
00077 #ifdef __cplusplus
00078 }
00079 #endif
00080 
00081 #endif /* GIFIBERUTILS_H */

This file is part of the GIRAFFE Pipeline Reference Manual 2.5.1.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Tue Mar 18 10:47:42 2008 by doxygen 1.4.6 written by Dimitri van Heesch, © 1997-2004