GIRAFFE Pipeline Reference Manual

gipsfdata.h
1 /*
2  * This file is part of the GIRAFFE Pipeline
3  * Copyright (C) 2002-2019 European Southern Observatory
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
20 #ifndef GIPSFDATA_H
21 #define GIPSFDATA_H
22 
23 #include <cxtypes.h>
24 
25 #include <cpl_image.h>
26 
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32  typedef struct GiPsfData GiPsfData;
33 
34 
35  GiPsfData* giraffe_psfdata_new(void);
36  GiPsfData* giraffe_psfdata_create(cxint nfibers, cxint nbins,
37  cxint nx, cxint ny);
38  void giraffe_psfdata_delete(GiPsfData* self);
39  void giraffe_psfdata_clear(GiPsfData* self);
40 
41  void giraffe_psfdata_resize(GiPsfData* self, cxint nfibers, cxint nbins,
42  cxint nx, cxint ny);
43 
44  cxsize giraffe_psfdata_bins(const GiPsfData* self);
45  cxsize giraffe_psfdata_fibers(const GiPsfData* self);
46  cxsize giraffe_psfdata_xsize(const GiPsfData* self);
47  cxsize giraffe_psfdata_ysize(const GiPsfData* self);
48  cxsize giraffe_psfdata_parameters(const GiPsfData* self);
49 
50  cxbool giraffe_psfdata_contains(const GiPsfData* self,
51  const cxchar* name);
52 
53  const cxchar* giraffe_psfdata_get_name(const GiPsfData* self,
54  cxsize position);
55 
56  cxint giraffe_psfdata_set_model(GiPsfData* self, const cxchar* name);
57  const cxchar* giraffe_psfdata_get_model(const GiPsfData* self);
58 
59  cxint giraffe_psfdata_set_bin(GiPsfData* self, cxint fiber, cxint bin,
60  cxdouble position);
61  cxdouble giraffe_psfdata_get_bin(const GiPsfData* self,
62  cxint fiber, cxint bin);
63  const cpl_image* giraffe_psfdata_get_bins(const GiPsfData* self);
64 
65  cxint giraffe_psfdata_set(GiPsfData* self, const cxchar* name,
66  cxint fiber, cxint bin, cxdouble value);
67  cxdouble giraffe_psfdata_get(const GiPsfData* self, const cxchar* name,
68  cxint fiber, cxint bin);
69 
70  cxint giraffe_psfdata_set_data(GiPsfData* self, const cxchar* name,
71  const cpl_image* values);
72  const cpl_image* giraffe_psfdata_get_data(const GiPsfData* self,
73  const cxchar* name);
74 
75  cxint giraffe_psfdata_load(GiPsfData* self, const cxchar* filename);
76  cxint giraffe_psfdata_save(const GiPsfData* self,
77  cpl_propertylist* properties,
78  const cxchar* filename, cxcptr data);
79 
80 #ifdef __cplusplus
81 }
82 #endif
83 
84 #endif /* GIPSFDATA_H */

This file is part of the GIRAFFE Pipeline Reference Manual 2.16.10.
Documentation copyright © 2002-2006 European Southern Observatory.
Generated on Thu Dec 15 2022 21:18:51 by doxygen 1.9.1 written by Dimitri van Heesch, © 1997-2004