MOONS Pipeline Reference Manual 0.13.1
moo_molectable.h
1/*
2 * This file is part of the MOONS Pipeline
3 * Copyright (C) 2002-2016 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 Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20#ifndef MOO_MOLECTABLE_H
21#define MOO_MOLECTABLE_H
22
23
24/*-----------------------------------------------------------------------------
25 Includes
26 -----------------------------------------------------------------------------*/
27
28#include <cpl.h>
29#include <hdrl.h>
30#include "moo_fits.h"
31#include "moo_detector.h"
32/*-----------------------------------------------------------------------------
33 Types
34 -----------------------------------------------------------------------------*/
35typedef struct
36{
37 cpl_propertylist *primary_header;
38 char *filename;
39 cpl_table *data[3];
40 cpl_propertylist *data_header[3];
41 const char *mode;
42} moo_molectable;
43
44
45/*-----------------------------------------------------------------------------
46 Functions prototypes
47 -----------------------------------------------------------------------------*/
48moo_molectable *moo_molectable_new(void);
49moo_molectable *
50moo_molectable_load(const cpl_frame *frame, const char *modename);
51cpl_table *
52moo_molectable_get_data(moo_molectable *self, moo_detector_type type);
53cpl_error_code moo_molectable_set_data(moo_molectable *self,
55 cpl_table *data);
56void moo_molectable_save(moo_molectable *self, const char *filename);
57void moo_molectable_delete(moo_molectable *self);
58
59#endif
enum _moo_detector_type_ moo_detector_type
The type code type.
Definition: moo_detector.h:64
cpl_error_code moo_molectable_set_data(moo_molectable *self, moo_detector_type type, cpl_table *data)
Set table in molectable.
moo_molectable * moo_molectable_load(const cpl_frame *frame, const char *modename)
Load a moo_molectable.
void moo_molectable_save(moo_molectable *self, const char *filename)
Save a moo_molectable to a FITS file.
cpl_table * moo_molectable_get_data(moo_molectable *self, moo_detector_type type)
Get table from molec_table.
void moo_molectable_delete(moo_molectable *self)
Delete a moo_molectable.
moo_molectable * moo_molectable_new(void)
Create a new moo_molectable.