CR2RE Pipeline Reference Manual 1.6.10
hdrl_barycorr.h
1/*
2 * hdrl_barycorr.h
3 *
4 * Created on: Jan 31, 2022
5 * Author: agabasch
6 */
7
8/*
9 * This file is part of the ESO Toolkit
10 * Copyright (C) 2016 European Southern Observatory
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 */
26
27
28#ifndef HDRL_BARYCORR_H_
29#define HDRL_BARYCORR_H_
30
31/*-----------------------------------------------------------------------------
32 Includes
33 -----------------------------------------------------------------------------*/
34
35#include "hdrl.h"
36#include <cpl.h>
37
38CPL_BEGIN_DECLS
39
40/*-----------------------------------------------------------------------------
41 Functions prototypes
42 -----------------------------------------------------------------------------*/
43
44cpl_error_code
45hdrl_barycorr_compute(double ra, double dec, const cpl_table * eop_table,
46 double mjdobs, double time_to_mid_exposure,
47 double longitude, double latitude, double elevation,
48 double pressure, double temperature, double humidity,
49 double wavelength, double * barycorr);
50
51/*-----------------------------------------------------------------------------
52 Private declarations - must not be used outside of hdrl
53 -----------------------------------------------------------------------------*/
54
55#ifdef HDRL_USE_PRIVATE
56
57/* Helper Functions */
58
59cpl_error_code
60hdrl_eop_interpolate(double mjd, const cpl_table * eop_table, hdrl_parameter *
61 resample_par, double *pmx, double *pmy, double *dut);
62#endif
63
64CPL_END_DECLS
65
66
67#endif /* HDRL_BARYCORR_H_ */
CPL_BEGIN_DECLS cpl_error_code hdrl_barycorr_compute(double ra, double dec, const cpl_table *eop_table, double mjdobs, double time_to_mid_exposure, double longitude, double latitude, double elevation, double pressure, double temperature, double humidity, double wavelength, double *barycorr)
Derives the barycentric correction using the erfa function eraApco13(). The latter For a terrestrial ...