28#ifndef HDRL_RESPONSE_H_
29#define HDRL_RESPONSE_H_
36#include "hdrl_spectrum.h"
37#include "hdrl_spectrumlist.h"
38#include "hdrl_spectrum_shift.h"
47 const hdrl_spectrum1Dlist * telluric_models,
50 cpl_boolean normalize,
51 cpl_boolean shift_in_log_scale,
52 const cpl_bivector * quality_areas,
53 const cpl_bivector * fit_areas,
59 const cpl_size radius,
const cpl_array * fit_points,
60 const hdrl_data_t wrange,
const cpl_bivector * high_abs_regions);
64 hdrl_spectrum1D * final_response;
65 hdrl_spectrum1D * selected_response;
66 hdrl_spectrum1D * raw_response;
68 hdrl_spectrum1D * corrected_observed_spectrum;
69 cpl_size best_telluric_model_idx;
70 hdrl_data_t telluric_shift;
71 hdrl_data_t avg_diff_from_1;
74 hdrl_data_t doppler_shift;
78const hdrl_spectrum1D *
80const hdrl_spectrum1D *
82const hdrl_spectrum1D *
84const hdrl_spectrum1D *
100hdrl_response_result *
102 const hdrl_spectrum1D * obs_s,
103 const hdrl_spectrum1D * ref_s,
104 const hdrl_spectrum1D * E_x,
105 const hdrl_parameter * telluric_par,
106 const hdrl_parameter * velocity_par,
107 const hdrl_parameter * calc_par,
108 const hdrl_parameter * fit_par);
111#if defined HDRL_USE_PRIVATE
114hdrl_response_evaluate_telluric_models(
115 const hdrl_spectrum1D * obs_s,
116 const hdrl_parameter * ev,
117 hdrl_data_t * telluric_shift,
118 hdrl_data_t * mean_minus_1, hdrl_data_t * stddev,
119 cpl_size * best_model_index);
122hdrl_response_evaluate_telluric_model(
const hdrl_spectrum1D * obs_s_arg,
123 const hdrl_spectrum1D * telluric_s_arg,
124 const hdrl_data_t w_step,
125 const cpl_size half_win,
126 const cpl_boolean normalize,
127 const cpl_boolean shift_in_log_scale,
128 const cpl_bivector * quality_areas,
129 const cpl_bivector * fit_areas,
130 const hdrl_data_t lmin,
const hdrl_data_t lmax,
131 double * mean_minus_1,
double * stddev,
132 double * telluric_shift);
hdrl_data_t hdrl_response_result_get_stddev(const hdrl_response_result *res)
Getter of the standard deviation of the ratio between the corrected observed spectrum and its smoothe...
const hdrl_spectrum1D * hdrl_response_result_get_final_response(const hdrl_response_result *res)
Getter for the final response contained inside the hdrl_response_result.
const hdrl_spectrum1D * hdrl_response_result_get_selected_response(const hdrl_response_result *res)
Getter for the selected response contained inside the hdrl_response_result.
hdrl_parameter * hdrl_response_fit_parameter_create(const cpl_size radius, const cpl_array *fit_points, const hdrl_data_t wrange, const cpl_bivector *high_abs_regions)
ctor for the hdrl_parameter for the final interpolation of the response
cpl_size hdrl_response_result_get_best_telluric_model_idx(const hdrl_response_result *res)
Getter of the index of the telluric model used for telluric correction contained in hdrl_response_res...
hdrl_data_t hdrl_response_result_get_doppler_shift(const hdrl_response_result *res)
Getter of the doppler shift used to correct the model.
void hdrl_response_result_delete(hdrl_response_result *)
Destructor for hdrl_response_result.
hdrl_response_result * hdrl_response_compute(const hdrl_spectrum1D *obs_s, const hdrl_spectrum1D *ref_s, const hdrl_spectrum1D *E_x, const hdrl_parameter *telluric_par, const hdrl_parameter *velocity_par, const hdrl_parameter *calc_par, const hdrl_parameter *fit_par)
Computation of the response.
CPL_BEGIN_DECLS hdrl_parameter * hdrl_response_telluric_evaluation_parameter_create(const hdrl_spectrum1Dlist *telluric_models, hdrl_data_t w_step, cpl_size half_win, cpl_boolean normalize, cpl_boolean shift_in_log_scale, const cpl_bivector *quality_areas, const cpl_bivector *fit_areas, hdrl_data_t lmin, hdrl_data_t lmax)
ctor for the hdrl_parameter for the telluric evaluation
const hdrl_spectrum1D * hdrl_response_result_get_raw_response(const hdrl_response_result *res)
Getter for the raw response contained inside the hdrl_response_result.
hdrl_data_t hdrl_response_result_get_avg_diff_from_1(const hdrl_response_result *res)
Getter of the value |mean - 1|, where mean is the average of the ratio between the corrected observed...
hdrl_data_t hdrl_response_result_get_telluric_shift(const hdrl_response_result *res)
Getter of the shift applied to the telluric model.
const hdrl_spectrum1D * hdrl_response_result_get_corrected_obs_spectrum(const hdrl_response_result *res)
Getter for the corrected observed spectrum contained in hdrl_response_result.