GIRAFFE Pipeline Reference Manual

gipsfdata.h

00001 /* $Id: gipsfdata.h,v 1.2 2007/03/06 19:31:44 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: 2007/03/06 19:31:44 $
00024  * $Revision: 1.2 $
00025  * $Name: giraffe-2_10 $
00026  */
00027 
00028 #ifndef GIPSFDATA_H
00029 #define GIPSFDATA_H
00030 
00031 #include <cxtypes.h>
00032 
00033 #include <cpl_image.h>
00034 
00035 
00036 #ifdef __cplusplus
00037 extern "C" {
00038 #endif
00039 
00040     typedef struct GiPsfData GiPsfData;
00041 
00042 
00043     GiPsfData* giraffe_psfdata_new(void);
00044     GiPsfData* giraffe_psfdata_create(cxint nfibers, cxint nbins,
00045                                       cxint nx, cxint ny);
00046     void giraffe_psfdata_delete(GiPsfData* self);
00047     void giraffe_psfdata_clear(GiPsfData* self);
00048 
00049     void giraffe_psfdata_resize(GiPsfData* self, cxint nfibers, cxint nbins,
00050                                 cxint nx, cxint ny);
00051 
00052     cxsize giraffe_psfdata_bins(const GiPsfData* self);
00053     cxsize giraffe_psfdata_fibers(const GiPsfData* self);
00054     cxsize giraffe_psfdata_xsize(const GiPsfData* self);
00055     cxsize giraffe_psfdata_ysize(const GiPsfData* self);
00056     cxsize giraffe_psfdata_parameters(const GiPsfData* self);
00057 
00058     cxbool giraffe_psfdata_contains(const GiPsfData* self,
00059                                     const cxchar* name);
00060 
00061     const cxchar* giraffe_psfdata_get_name(const GiPsfData* self,
00062                                            cxsize position);
00063 
00064     cxint giraffe_psfdata_set_model(GiPsfData* self, const cxchar* name);
00065     const cxchar* giraffe_psfdata_get_model(const GiPsfData* self);
00066 
00067     cxint giraffe_psfdata_set_bin(GiPsfData* self, cxint fiber, cxint bin,
00068                                   cxdouble position);
00069     cxdouble giraffe_psfdata_get_bin(const GiPsfData* self,
00070                                      cxint fiber, cxint bin);
00071     const cpl_image* giraffe_psfdata_get_bins(const GiPsfData* self);
00072 
00073     cxint giraffe_psfdata_set(GiPsfData* self, const cxchar* name,
00074                               cxint fiber, cxint bin, cxdouble value);
00075     cxdouble giraffe_psfdata_get(const GiPsfData* self, const cxchar* name,
00076                                  cxint fiber, cxint bin);
00077 
00078     cxint giraffe_psfdata_set_data(GiPsfData* self, const cxchar* name,
00079                                    const cpl_image* values);
00080     const cpl_image* giraffe_psfdata_get_data(const GiPsfData* self,
00081                                               const cxchar* name);
00082 
00083     cxint giraffe_psfdata_load(GiPsfData* self, const cxchar* filename);
00084     cxint giraffe_psfdata_save(const GiPsfData* self,
00085                                cpl_propertylist* properties,
00086                                const cxchar* filename, cxcptr data);
00087 
00088 #ifdef __cplusplus
00089 }
00090 #endif
00091 
00092 #endif /* GIPSFDATA_H */

This file is part of the GIRAFFE Pipeline Reference Manual 2.10.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Thu Mar 7 14:11:02 2013 by doxygen 1.4.7 written by Dimitri van Heesch, © 1997-2004