X-shooter Pipeline Reference Manual 3.8.15
Functions
xsh_utils_response.c File Reference
#include <math.h>
#include <xsh_utils_response.h>
#include <xsh_efficiency_response.h>
#include <xsh_dfs.h>
#include <xsh_pfits_qc.h>
#include <xsh_error.h>

Go to the source code of this file.

Functions

static double xsh_resample_double (double wout, double *pw1, double *pf1, double wmin, double wmax, int size_obs)
 
static cpl_table * xsh_table_resample_table (cpl_table *tinp, const char *cwinp, const char *cfinp, cpl_table *tref, const char *cwref, const char *cfref)
 
static cpl_table * xsh_table_downsample_table (cpl_table *tinp, const char *cwinp, const char *cfinp, cpl_table *tref, const char *cwref, const char *cfref)
 
cpl_table * xsh_table_resample_uniform (cpl_table *tinp, const char *cwinp, const char *cfinp, const double wstp)
 
static cpl_table * xsh_spectrum_to_table (xsh_spectrum *s)
 
static cpl_error_code xsh_evaluate_tell_model (cpl_table *corr, xsh_instrument *instrument, const int ext, double *mean, double *rms)
 
static cpl_table * xsh_extract_ranges_to_fit (cpl_table *table_in, const char *cwav, xsh_instrument *instrument)
 
static cpl_error_code xsh_extract_points_to_fit (cpl_table *table, const char *cwav, const char *cratio, const int nsamples, xsh_instrument *instrument, cpl_vector **vec_wave, cpl_vector **vec_flux)
 
static cpl_error_code xsh_get_xcorrel_peak (cpl_vector *wcorr, cpl_vector *fcorr, XSH_GAUSSIAN_FIT *gfit, const double range, const int ext)
 
static cpl_table * xsh_table_select_range (cpl_table *table_in, const char *col, const double wmin, const double wmax)
 
cpl_error_code xsh_correl_spectra (double *flux_s, double *flux_m, const int size, const int hsearch, const double wlogstp, const int norm_xcorr, const double range, const int ext, XSH_GAUSSIAN_FIT *gfit)
 
static cpl_error_code xsh_align_model_to_spectrum (cpl_table *table_me, cpl_table *table_se, const double wlogstp, const int norm_xcorr, const int ext, cpl_table **table_mm)
 
cpl_table * xsh_telluric_model_eval (cpl_frame *frame_m, xsh_spectrum *s, xsh_instrument *instrument, cpl_size *model_idx)