X-shooter Pipeline Reference Manual 3.8.15
xsh_data_localization.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: 2011-12-09 10:04:57 $
23 * $Revision: 1.8 $
24 */
25#ifndef XSH_DATA_LOCALIZATION_H
26#define XSH_DATA_LOCALIZATION_H
27#include <xsh_cpl_size.h>
28#include <cpl.h>
29#include <xsh_data_instrument.h>
30
31
32#define XSH_LOCALIZATION_TABLE_COLNAME_SLICE "SLICE"
33#define XSH_LOCALIZATION_TABLE_COLNAME_CENTER "CENCOEF"
34#define XSH_LOCALIZATION_TABLE_COLNAME_EDGUP "EDGUPCOEF"
35#define XSH_LOCALIZATION_TABLE_COLNAME_EDGLO "EDGLOCOEF"
36#define XSH_LOCALIZATION_TABLE_DEGPOL "DEGPOL"
37
38typedef struct{
39 /* Slice Identification */
40 float slice ;
41 /* polynomial fitting the center points of the order */
42 cpl_polynomial * cenpoly;
43 /* polynomial fitting the upper edge of the order */
44 cpl_polynomial * edguppoly;
45 /* polynomial fitting the lower edge of the order */
46 cpl_polynomial * edglopoly;
47 /* Polynomial degree (same for the 3 polynomes) */
49 cpl_propertylist *header;
51
52
54
55xsh_localization* xsh_localization_load( cpl_frame* frame);
56
58
59cpl_propertylist * xsh_localization_get_header(xsh_localization *list);
60
61
63
65 const char* filename, xsh_instrument *instrument);
66
67#endif /* XSH_ORDER_H */
static xsh_instrument * instrument
xsh_localization * xsh_localization_load(cpl_frame *frame)
Load a localization list from a frame.
cpl_frame * xsh_localization_save(xsh_localization *list, const char *filename, xsh_instrument *instrument)
save a localization to a frame
void xsh_localization_free(xsh_localization **list)
free memory associated to a localization_list
cpl_propertylist * xsh_localization_get_header(xsh_localization *list)
get header of the table
xsh_localization * xsh_localization_create(void)
Create an empty localization list.
cpl_propertylist * header
cpl_polynomial * cenpoly
cpl_polynomial * edguppoly
cpl_polynomial * edglopoly
cpl_propertylist * xsh_localization_list_get_header(xsh_localization *list)