GRAVI Pipeline Reference Manual  1.2.3
gravi_metrology.h
1 /* $Id: gravi_utils.h,v 1.12 2011/05/31 06:10:40 nazouaoui Exp $
2  *
3  * This file is part of the GRAVI Pipeline
4  * Copyright (C) 2002,2003 European Southern Observatory
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20 
21 /*
22  * History :
23  * 12/11/2018 Add one gravi_Data* to gravi_metrology_reduce
24  */
25 
26 #ifndef METREDLIB_H
27 #define METREDLIB_H
28 
29 /*-----------------------------------------------------------------------------
30  Includes
31  -----------------------------------------------------------------------------*/
32 
33 #include <stdio.h>
34 #include <cpl.h>
35 #include "gravi_data.h"
36 
37 /*-----------------------------------------------------------------------------
38  Public prototypes
39  -----------------------------------------------------------------------------*/
40 
41 cpl_error_code gravi_metrology_reduce (gravi_data *,
42  gravi_data *,
43  gravi_data *,
44  gravi_data * met_pos,
45  const cpl_parameterlist * parlist);
46 
47 cpl_table * gravi_metrology_create (cpl_table * metrology_table,
48  cpl_propertylist * header);
49 
50 cpl_error_code gravi_metrology_drs (cpl_table * metrology_table,
51  cpl_table * vismet_table,
52  cpl_propertylist * header);
53 
54 cpl_table * gravi_metrology_compute_p2vm (cpl_table * metrology_table, double wave_met);
55 
56 #endif /* !METREDLIB_H */
cpl_table * gravi_metrology_create(cpl_table *metrology_table, cpl_propertylist *header)
Create the VIS_MET table.
cpl_error_code gravi_metrology_drs(cpl_table *metrology_table, cpl_table *vismet_table, cpl_propertylist *header)
Fill the VIS_MET table with the DRS algorithm.
cpl_error_code gravi_metrology_reduce(gravi_data *, gravi_data *, gravi_data *, gravi_data *met_pos, const cpl_parameterlist *parlist)
Reduce the metrology.
cpl_table * gravi_metrology_compute_p2vm(cpl_table *metrology_table, double wave_met)
Calibrate the P2VM of the metrology.