X-shooter Pipeline Reference Manual 3.8.15
xsh_baryvel.h
Go to the documentation of this file.
1/*
2 * This file is part of the ESO UVES Pipeline
3 * Copyright (C) 2004,2005 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, 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
18 */
19
20/*
21 * $Author: amodigli $
22 * $Date: 2011-12-02 14:15:28 $
23 * $Revision: 1.2 $
24 * $Name: not supported by cvs2svn $
25 */
26#ifndef XSH_BARYVEL_H
27#define XSH_BARYVEL_H
28
29#include <cpl.h>
30#include <xsh_parameters.h>
31#include <irplib_sdp_spectrum.h>
32
33void
34xsh_baryvel(const cpl_propertylist *raw_header,
35 double *barycor,
36 double *helicor);
37
39 cpl_propertylist* keys, xsh_bary_corr_param* bary_corr_param);
40
41#ifdef XSH_UNUSED
42cpl_error_code xsh_baryvel_correct_irplib_spectrum(irplib_sdp_spectrum* self,
43 xsh_bary_corr_param* bary_corr_param,
44 cpl_parameterlist* keys);
45#endif
46
47cpl_error_code
48xsh_baryvel_adjust_header(cpl_propertylist * header,
49 const char * keyword, double barycorr);
50
51cpl_error_code
52xsh_baryvel_set_specsys(cpl_propertylist * header,
53 xsh_bary_corr_param* bary_param);
54
55cpl_error_code xsh_baryvel_correct_header(cpl_propertylist * header,
56 cpl_propertylist * bary_header,
57 xsh_bary_corr_param * bary_param);
58
59double xsh_baryvel_correct_value(double value, double correction);
60
61#endif /* XSH_BARYVEL_H */
double xsh_baryvel_get_correction_factor(cpl_propertylist *keys, xsh_bary_corr_param *bary_corr_param)
Definition: xsh_baryvel.c:1257
cpl_error_code xsh_baryvel_adjust_header(cpl_propertylist *header, const char *keyword, double barycorr)
Definition: xsh_baryvel.c:1279
cpl_error_code xsh_baryvel_correct_header(cpl_propertylist *header, cpl_propertylist *bary_header, xsh_bary_corr_param *bary_param)
Definition: xsh_baryvel.c:1310
double xsh_baryvel_correct_value(double value, double correction)
Definition: xsh_baryvel.c:1250
void xsh_baryvel(const cpl_propertylist *raw_header, double *barycor, double *helicor)
Compute velocity correction.
Definition: xsh_baryvel.c:95
cpl_error_code xsh_baryvel_set_specsys(cpl_propertylist *header, xsh_bary_corr_param *bary_param)
Definition: xsh_baryvel.c:1294