X-shooter Pipeline Reference Manual 3.8.15
Macros | Functions
xsh_data_wavemap.c File Reference
#include <string.h>
#include <math.h>
#include <xsh_utils_table.h>
#include <xsh_parameters.h>
#include <xsh_data_pre.h>
#include <xsh_data_order.h>
#include <xsh_data_dispersol.h>
#include <xsh_utils_wrappers.h>
#include <xsh_data_wavemap.h>
#include <xsh_error.h>
#include <xsh_msg.h>
#include <xsh_pfits.h>
#include <xsh_dfs.h>
#include <gsl/gsl_multifit.h>
#include <cpl.h>

Go to the source code of this file.

Macros

#define REGDEBUG_BSPLINE   0
 

Functions

void xsh_wavemap_list_dump (xsh_wavemap_list *list, const char *fname)
 Dump main info about a rec table (for each order of the list)
 
xsh_wavemap_listxsh_wavemap_list_create (xsh_instrument *instr)
 create an empty order list
 
void xsh_wavemap_list_set_max_size (xsh_wavemap_list *list, int idx, int absorder, int max_size)
 set max size of wavemap
 
void xsh_wavemap_list_free (xsh_wavemap_list **list)
 free memory associated to a wavemap_list
 
static void lambda_fit (double *lambda, double *xpos, double *ypos, int size, xsh_wavemap_list *wmap, xsh_dispersol_param *dispsol_param, int order)
 
void xsh_wavemap_list_compute_poly (double *vlambda, double *vslit, double *xpos, double *ypos, int nitems, double *orders, xsh_dispersol_param *dispsol_param, xsh_wavemap_list *wmap)
 compute a wave-map-list
 
void xsh_wavemap_list_compute (double *vlambda, double *xpos, double *ypos, int nitems, double *orders, xsh_dispersol_param *dispsol_param, xsh_wavemap_list *wmap)
 compute a wave-map-list
 
static double xsh_wavemap_list_eval_lambda (xsh_wavemap_list *wmap, double x, double y, int ord)
 eval the polynomial wave solution in x,y,ord
 
cpl_frame * xsh_wavemap_list_save (xsh_wavemap_list *wmap, cpl_frame *order_frame, xsh_pre *pre, xsh_instrument *instr, const char *prefix)
 
cpl_error_code xsh_wavemap_list_sky_image_save (xsh_wavemap_list *smap, xsh_instrument *instr, const int abs_ord, const int sid, const int iter)
 
cpl_error_code xsh_wavemap_list_object_image_save (xsh_wavemap_list *omap, xsh_instrument *instr, const int iter)
 
cpl_error_code xsh_wavemap_list_save4debug (xsh_wavemap_list *wmap, xsh_instrument *instr, const char *prefix)
 
cpl_frame * xsh_wavemap_list_save2 (xsh_wavemap_list *wmap, xsh_order_list *order_list, xsh_pre *pre, xsh_instrument *instr, const char *prefix)
 
cpl_frame * xsh_wavemap_list_save_poly (xsh_wavemap_list *wmap, cpl_frame *order_frame, xsh_pre *pre, xsh_instrument *instr, const char *prefix, cpl_frame **dispersol_frame, cpl_frame **slitmap_frame)
 Save the wave_map slit_map and disp_tab.
 

Macro Definition Documentation

◆ REGDEBUG_BSPLINE

#define REGDEBUG_BSPLINE   0

Definition at line 29 of file xsh_data_wavemap.c.