X-shooter Pipeline Reference Manual 3.8.15
Functions

Functions

static int xsh_the_map_lambda_compare (const void *one, const void *two)
 
static int xsh_the_map_lambda_order_slit_compare (const void *one, const void *two)
 
void xsh_the_map_lambda_sort (xsh_the_map *list)
 sort the_map arcline list by increasing lambda
 
void xsh_the_map_lambda_order_slit_sort (xsh_the_map *list)
 
int xsh_the_map_get_size (xsh_the_map *list)
 get size of the map list
 
double xsh_the_map_get_detx (xsh_the_map *list, int idx)
 get detx of the map list
 
double xsh_the_map_get_dety (xsh_the_map *list, int idx)
 get dety of the map list
 
float xsh_the_map_get_wavelength (xsh_the_map *list, int idx)
 get wavelength of the map list
 
int xsh_the_map_get_order (xsh_the_map *list, int idx)
 get order of the map list
 
int xsh_the_map_get_slit_index (xsh_the_map *list, int idx)
 get slit position of the map list
 
float xsh_the_map_get_slit_position (xsh_the_map *list, int idx)
 get slit position of the map list
 
void xsh_dump_the_map (xsh_the_map *the)
 Dump main info about the_map.
 
void xsh_the_map_set_arcline (xsh_the_map *list, int idx, float wavelength, int order, int slit_index, float slit_position, double detx, double dety)
 
xsh_the_mapxsh_the_map_create (int size)
 Create an empty theoretical map.
 
xsh_the_mapxsh_the_map_load (cpl_frame *frame)
 load a theoretical map frame in the_map structure. Suppress spurious entries in the THE MAP (marked with wavelength = 0).
 
void xsh_the_arcline_free (xsh_the_arcline **arc)
 free memory associated to a the_arcline
 
void xsh_the_map_free (xsh_the_map **list)
 free memory associated to a the_map
 
cpl_frame * xsh_the_map_save (xsh_the_map *list, const char *filename)
 save a the_map to a frame
 

Detailed Description

Function Documentation

◆ xsh_dump_the_map()

void xsh_dump_the_map ( xsh_the_map the)

Dump main info about the_map.

Parameters
thePointer to the theoretical map structure

Definition at line 297 of file xsh_data_the_map.c.

References assure, xsh_the_arcline::detector_x, xsh_the_arcline::detector_y, xsh_the_map::list, xsh_the_arcline::order, xsh_the_map::size, xsh_the_arcline::slit_position, xsh_the_arcline::wavelength, and xsh_msg.

◆ xsh_the_arcline_free()

void xsh_the_arcline_free ( xsh_the_arcline **  arc)

free memory associated to a the_arcline

Parameters
arcthe the_arcline to free

Definition at line 473 of file xsh_data_the_map.c.

Referenced by xsh_the_map_free().

◆ xsh_the_map_create()

xsh_the_map * xsh_the_map_create ( int  size)

Create an empty theoretical map.

Parameters
sizeThe size of the theoretical map
Returns
the the_map allocated structure

Definition at line 346 of file xsh_data_the_map.c.

References xsh_the_map::list, xsh_the_map::size, size, XSH_ASSURE_NOT_ILLEGAL, XSH_CALLOC, and xsh_the_map_free().

Referenced by xsh_afcthetab_create().

◆ xsh_the_map_free()

void xsh_the_map_free ( xsh_the_map **  list)

free memory associated to a the_map

Parameters
listthe the_map to free

Definition at line 486 of file xsh_data_the_map.c.

References xsh_free_propertylist(), and xsh_the_arcline_free().

Referenced by main(), xsh_afcthetab_create(), xsh_detect_arclines(), xsh_detect_arclines_dan(), and xsh_the_map_create().

◆ xsh_the_map_get_detx()

double xsh_the_map_get_detx ( xsh_the_map list,
int  idx 
)

get detx of the map list

Parameters
listpointer to arcline_list
idxindex in the arcline list
Returns
the detector_x

Definition at line 165 of file xsh_data_the_map.c.

References xsh_the_arcline::detector_x, xsh_the_map::list, size, XSH_ASSURE_NOT_ILLEGAL, and XSH_ASSURE_NOT_NULL.

Referenced by main(), and theo_tab_filter().

◆ xsh_the_map_get_dety()

double xsh_the_map_get_dety ( xsh_the_map list,
int  idx 
)

get dety of the map list

Parameters
listpointer to arcline_list
idxindex in the arcline list
Returns
the detector_y

Definition at line 186 of file xsh_data_the_map.c.

References xsh_the_arcline::detector_y, xsh_the_map::list, size, XSH_ASSURE_NOT_ILLEGAL, and XSH_ASSURE_NOT_NULL.

Referenced by main(), and theo_tab_filter().

◆ xsh_the_map_get_order()

int xsh_the_map_get_order ( xsh_the_map list,
int  idx 
)

get order of the map list

Parameters
listpointer to arcline_list
idxindex in the arcline list
Returns
the order

Definition at line 231 of file xsh_data_the_map.c.

References xsh_the_map::list, xsh_the_arcline::order, size, XSH_ASSURE_NOT_ILLEGAL, and XSH_ASSURE_NOT_NULL.

Referenced by theo_tab_filter().

◆ xsh_the_map_get_size()

int xsh_the_map_get_size ( xsh_the_map list)

get size of the map list

Parameters
listpointer to arcline_list
Returns
the size

Definition at line 146 of file xsh_data_the_map.c.

References xsh_the_map::size, and XSH_ASSURE_NOT_NULL.

Referenced by main(), and theo_tab_filter().

◆ xsh_the_map_get_slit_index()

int xsh_the_map_get_slit_index ( xsh_the_map list,
int  idx 
)

get slit position of the map list

Parameters
listpointer to arcline_list
idxindex in the arcline list
Returns
the slit position

Definition at line 254 of file xsh_data_the_map.c.

References xsh_the_map::list, size, xsh_the_arcline::slit_index, XSH_ASSURE_NOT_ILLEGAL, and XSH_ASSURE_NOT_NULL.

Referenced by theo_tab_filter().

◆ xsh_the_map_get_slit_position()

float xsh_the_map_get_slit_position ( xsh_the_map list,
int  idx 
)

get slit position of the map list

Parameters
listpointer to arcline_list
idxindex in the arcline list
Returns
the slit position

Definition at line 276 of file xsh_data_the_map.c.

References xsh_the_map::list, size, xsh_the_arcline::slit_position, XSH_ASSURE_NOT_ILLEGAL, and XSH_ASSURE_NOT_NULL.

Referenced by main(), and theo_tab_filter().

◆ xsh_the_map_get_wavelength()

float xsh_the_map_get_wavelength ( xsh_the_map list,
int  idx 
)

get wavelength of the map list

Parameters
listpointer to arcline_list
idxindex in the arcline list
Returns
the wavelength

Definition at line 209 of file xsh_data_the_map.c.

References xsh_the_map::list, size, xsh_the_arcline::wavelength, XSH_ASSURE_NOT_ILLEGAL, and XSH_ASSURE_NOT_NULL.

Referenced by main(), and theo_tab_filter().

◆ xsh_the_map_lambda_compare()

static int xsh_the_map_lambda_compare ( const void *  one,
const void *  two 
)
static

Definition at line 57 of file xsh_data_the_map.c.

References xsh_the_arcline::wavelength.

Referenced by xsh_the_map_lambda_sort().

◆ xsh_the_map_lambda_order_slit_compare()

static int xsh_the_map_lambda_order_slit_compare ( const void *  one,
const void *  two 
)
static

◆ xsh_the_map_lambda_order_slit_sort()

void xsh_the_map_lambda_order_slit_sort ( xsh_the_map list)

◆ xsh_the_map_lambda_sort()

void xsh_the_map_lambda_sort ( xsh_the_map list)

sort the_map arcline list by increasing lambda

Parameters
listpointer to arcline_list

Definition at line 127 of file xsh_data_the_map.c.

References xsh_the_map::list, xsh_the_map::size, and xsh_the_map_lambda_compare().

◆ xsh_the_map_load()

xsh_the_map * xsh_the_map_load ( cpl_frame *  frame)

◆ xsh_the_map_save()

cpl_frame * xsh_the_map_save ( xsh_the_map list,
const char *  filename 
)

◆ xsh_the_map_set_arcline()

void xsh_the_map_set_arcline ( xsh_the_map list,
int  idx,
float  wavelength,
int  order,
int  slit_index,
float  slit_position,
double  detx,
double  dety 
)