High-Level Data Reduction Library: hdrl_barycorr.h Source File

High-Level Data Reduction Library 1.6.0 High-Level data reduction routines for ESO pipelines

Loading...
Searching...
No Matches
hdrl_barycorr.h
Go to the documentation of this file.
1/*
2 * This file is part of the HDRL
3 * Copyright (C) 2022 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, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20
21#ifndef HDRL_BARYCORR_H_
22#define HDRL_BARYCORR_H_
23
24/*-----------------------------------------------------------------------------
25 Includes
26 -----------------------------------------------------------------------------*/
27
28#include "hdrl.h"
29#include <cpl.h>
30
31CPL_BEGIN_DECLS
32
33/*-----------------------------------------------------------------------------
34 Functions prototypes
35 -----------------------------------------------------------------------------*/
36
37cpl_error_code
38 hdrl_barycorr_compute(double ra, double dec, const cpl_table * eop_table,
39 double mjdobs, double time_to_mid_exposure,
40 double longitude, double latitude, double elevation,
41 double pressure, double temperature, double humidity,
42 double wavelength, double * barycorr);
43
44/*-----------------------------------------------------------------------------
45 Private declarations - must not be used outside of hdrl
46 -----------------------------------------------------------------------------*/
47
48#ifdef HDRL_USE_PRIVATE
49
50/* Helper Functions */
51
52cpl_error_code
53hdrl_eop_interpolate(double mjd, const cpl_table * eop_table, hdrl_parameter *
54 resample_par, double *pmx, double *pmy, double *dut);
55#endif
56
57CPL_END_DECLS
58
59
60#endif /* HDRL_BARYCORR_H_ */
hdrl.h
hdrl_parameter
struct _hdrl_parameter_ hdrl_parameter
Definition hdrl_parameter.h:27
hdrl_barycorr_compute
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 ...
Definition hdrl_barycorr.c:198