X-shooter Pipeline Reference Manual 3.8.15
xsh_data_slice_offset.h
Go to the documentation of this file.
1/* *
2 * This file is part of the ESO X-shooter Pipeline *
3 * Copyright (C) 2006 European Southern Observatory *
4 * *
5 * This library 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, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA *
18 * */
19
20/*
21 * $Author: amodigli $
22 * $Date: 2009-12-30 15:05:32 $
23 * $Revision: 1.5 $
24 */
25#ifndef XSH_DATA_SLICE_OFFSET_H
26#define XSH_DATA_SLICE_OFFSET_H
27
28#include <cpl.h>
29#include <xsh_data_instrument.h>
30
31
32#define XSH_SLICE_OFFSET_TABLE_COLNAME_CEN_UP "CEN_UP_OFFSET"
33#define XSH_SLICE_OFFSET_TABLE_UNIT_CEN_UP "arcsec"
34
35#define XSH_SLICE_OFFSET_TABLE_COLNAME_CEN_DOWN "CEN_DOWN_OFFSET"
36#define XSH_SLICE_OFFSET_TABLE_UNIT_CEN_DOWN "arcsec"
37
38typedef struct{
39 double cen_up;
40 double cen_down;
41 cpl_propertylist *header;
43
44
46
47xsh_slice_offset* xsh_slice_offset_load( cpl_frame* frame);
48
49cpl_propertylist* xsh_slice_offset_get_header(xsh_slice_offset *slice);
50
52
53cpl_frame* xsh_slice_offset_save( xsh_slice_offset * list,
54 const char* filename, xsh_instrument* instr);
55
56#endif /* XSH_SLICE_OFSET_H */
xsh_slice_offset * xsh_slice_offset_create(void)
Create an empty slice_offset.
xsh_slice_offset * xsh_slice_offset_load(cpl_frame *frame)
Load a slice_offset from a frame.
cpl_frame * xsh_slice_offset_save(xsh_slice_offset *list, const char *filename, xsh_instrument *instr)
Save an slice_offset list to a frame.
void xsh_slice_offset_free(xsh_slice_offset **slice)
Free memory associated to a slice_offset.
cpl_propertylist * xsh_slice_offset_get_header(xsh_slice_offset *slice)
Get header of the table.
cpl_propertylist * header