MOONS Pipeline Reference Manual 0.13.2
moo_flx.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_FLX_H
21#define MOO_FLX_H
22
23
24/*-----------------------------------------------------------------------------
25 Includes
26 -----------------------------------------------------------------------------*/
27#include <cpl.h>
28#include <hdrl.h>
29#include "moo_params.h"
30#include "moo_ext.h"
31#include "moo_spectral_format.h"
32
39/*-----------------------------------------------------------------------------
40 Types
41 -----------------------------------------------------------------------------*/
42typedef struct
43{
44 char *filename;
45 cpl_propertylist *primary_header;
46 cpl_table *catalog;
47} moo_flx;
48
49#define MOO_FLX_CATALOG_EXTNAME "CATALOG"
50#define MOO_FLX_CATALOG_NAME "NAME"
51#define MOO_FLX_SPECTRUM_WAVE "WAVE"
52#define MOO_FLX_SPECTRUM_FLUX "FLUX"
53/*-----------------------------------------------------------------------------
54 Functions prototypes
55 -----------------------------------------------------------------------------*/
56moo_flx *moo_flx_new(void);
57moo_flx *moo_flx_load(const cpl_frame *frame);
58cpl_table *moo_flx_get_obj(moo_flx *self, const char *objname);
59void moo_flx_delete(moo_flx *self);
60
61#endif
moo_flx * moo_flx_load(const cpl_frame *frame)
Load a FLX frame and create a moo_flx.
Definition: moo_flx.c:84
cpl_table * moo_flx_get_obj(moo_flx *self, const char *objname)
Find the TABLE for a given object name.
Definition: moo_flx.c:165
moo_flx * moo_flx_new(void)
Create a new moo_flx
Definition: moo_flx.c:67
void moo_flx_delete(moo_flx *self)
Delete a moo_flx.
Definition: moo_flx.c:196
FLX format.
Definition: moo_flx.h:43