#include <xsh_data_wavesol.h>
#include <xsh_data_spectralformat.h>
#include <xsh_utils.h>
#include <xsh_error.h>
#include <xsh_msg.h>
#include <xsh_pfits.h>
#include <xsh_dfs.h>
#include <math.h>
#include <gsl/gsl_multifit.h>
#include <cpl.h>
#include <xsh_utils_table.h>
Go to the source code of this file.
Functions | |
xsh_wavesol * | xsh_wavesol_create (cpl_frame *spectral_format_frame, xsh_detect_arclines_param *params, xsh_instrument *instrument) |
Create a new wavelength solution structure. | |
xsh_wavesol * | xsh_wavesol_duplicate (xsh_wavesol *org) |
duplicate a wavelength solution structure | |
void | xsh_wavesol_add_poly (xsh_wavesol *to, xsh_wavesol *from) |
void | xsh_wavesol_free (xsh_wavesol **w) |
free wavelength solution structure | |
cpl_polynomial * | xsh_wavesol_get_poly (xsh_wavesol *sol) |
get the solution in Y | |
void | xsh_wavesol_set_type (xsh_wavesol *wsol, enum wavesol_type type) |
set the type of the wave table | |
enum wavesol_type | xsh_wavesol_get_type (xsh_wavesol *wsol) |
get the type of the wave table | |
cpl_polynomial * | xsh_wavesol_get_polx (xsh_wavesol *sol) |
get the solution in X | |
cpl_propertylist * | xsh_wavesol_get_header (xsh_wavesol *sol) |
get header of the table | |
double | xsh_wavesol_eval_polx (xsh_wavesol *sol, double lambda, double order, double slit) |
eval the polynomial solution in X | |
double | xsh_wavesol_eval_poly (xsh_wavesol *sol, double lambda, double order, double slit) |
eval the polynomial solution in Y | |
void | xsh_wavesol_compute (xsh_wavesol *sol, int size, double *pos, double *posmin, double *posmax, double *lambda, double *order, double *slit, cpl_polynomial *result) |
compute a wavelength solution | |
void | xsh_wavesol_residual (xsh_wavesol *sol, xsh_wavesol *adj, int size, double *new_pos, double *lambda, double *order, double *slit, cpl_polynomial *result, char axis) |
cpl_frame * | xsh_wavesol_save (xsh_wavesol *w, cpl_table *trace, const char *filename, const char *tag) |
save a wavelength solution | |
xsh_wavesol * | xsh_wavesol_load (cpl_frame *frame, xsh_instrument *instrument) |
load a wavelength solution | |
void | xsh_wavesol_dump (xsh_wavesol *wsol, const char *fname, int nb) |
cpl_table * | xsh_wavesol_trace (xsh_wavesol *wsol, double *lambda, double *order, double *slit, int size) |
void | xsh_wavesol_set_bin_x (xsh_wavesol *wsol, int bin) |
Set the bin of wave table in x. | |
void | xsh_wavesol_set_bin_y (xsh_wavesol *wsol, int bin) |
Set the bin of wave table in y. | |
void | xsh_wavesol_apply_shift (xsh_wavesol *wsol, float shift_x, float shift_y) |
Apply a shift on X and Y to wave solution. |