CR2RE Pipeline Reference Manual 1.6.10
hdrl_dar.h
1/*
2 * This file is part of the HDRL
3 * Copyright (C) 2013 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#ifndef HDRL_DAR_H_
21#define HDRL_DAR_H_
22
23/*-----------------------------------------------------------------------------
24 Includes
25 -----------------------------------------------------------------------------*/
26#include "hdrl_parameter.h"
27
28#include <cpl.h>
29
30
31CPL_BEGIN_DECLS
32
33/*-----------------------------------------------------------------------------
34 DAR Parameters Definition
35 -----------------------------------------------------------------------------*/
36
37/*-----------------------------------------------------------------------------
38 Defines
39 -----------------------------------------------------------------------------*/
40
41/*----------------------------------------------------------------------------*
42 * Special variable types *
43 *----------------------------------------------------------------------------*/
44
45/*----------------------------------------------------------------------------*
46 * Struct variable types *
47 *----------------------------------------------------------------------------*/
48
49/*-----------------------------------------------------------------------------
50 Functions prototypes
51 -----------------------------------------------------------------------------*/
52
53/*----------------------------------------------------------------------------
54 Parameters
55 ----------------------------------------------------------------------------*/
56
57/*----------------------------------------------------------------------------
58 Computation
59 ----------------------------------------------------------------------------*/
60
61hdrl_parameter * hdrl_dar_parameter_create(hdrl_value airmass, hdrl_value parang,
62 hdrl_value posang, hdrl_value temp, hdrl_value rhum, hdrl_value pres, cpl_wcs *wcs);
63
64cpl_error_code hdrl_dar_compute(const hdrl_parameter *params,
65 const hdrl_value lambdaRef, const cpl_vector *lambdaIn,
66 cpl_vector *xShift, cpl_vector *yShift, cpl_vector *xShiftErr, cpl_vector *yShiftErr);
67
68/*-----------------------------------------------------------------------------
69 Private declarations - must not be used outside of hdrl
70 -----------------------------------------------------------------------------*/
71
72#ifdef HDRL_USE_PRIVATE
73
74 cpl_error_code hdrl_dar_parameter_verify(const hdrl_parameter *param);
75
76 hdrl_value hdrl_dar_owens_saturation_pressure(hdrl_value hvT);
77
79 hdrl_value hvL, hdrl_value hvP, hdrl_value hvT, hdrl_value hvF);
80
81 cpl_error_code hdrl_dar_wcs_get_scales(
82 cpl_wcs *wcs, double *aXScale, double *aYScale);
83
84#endif
85
86CPL_END_DECLS
87
88#endif /* HDRL_DAR_H_ */
cpl_error_code hdrl_dar_compute(const hdrl_parameter *params, const hdrl_value lambdaRef, const cpl_vector *lambdaIn, cpl_vector *xShift, cpl_vector *yShift, cpl_vector *xShiftErr, cpl_vector *yShiftErr)
Correct the pixel coordinates of all pixels of a given pixel table for differential atmospheric refra...
Definition: hdrl_dar.c:218
hdrl_value hdrl_dar_filippenko_refractive_index(hdrl_value hvL, hdrl_value hvP, hdrl_value hvT, hdrl_value hvF)
Compute the refractive index for the given wavelength following Filippenko formulae....
Definition: hdrl_dar.c:426
CPL_BEGIN_DECLS hdrl_parameter * hdrl_dar_parameter_create(hdrl_value airmass, hdrl_value parang, hdrl_value posang, hdrl_value temp, hdrl_value rhum, hdrl_value pres, cpl_wcs *wcs)
Creates DAR parameters object with the values in the header.
Definition: hdrl_dar.c:159
hdrl_value hdrl_dar_owens_saturation_pressure(hdrl_value hvT)
Compute the saturation pressure using the Owens calibration.
Definition: hdrl_dar.c:380