X-shooter Pipeline Reference Manual 3.8.15
Data Structures | Macros | Functions
xsh_data_the_map.h File Reference
#include <cpl.h>

Go to the source code of this file.

Data Structures

struct  xsh_the_arcline
 
struct  xsh_the_map
 

Macros

#define XSH_THE_MAP_TABLE_NB_COL   6
 
#define XSH_THE_MAP_TABLE_COLNAME_WAVELENGTH   "Wavelength"
 
#define XSH_THE_MAP_TABLE_UNIT_WAVELENGTH   "nm"
 
#define XSH_THE_MAP_TABLE_COLNAME_ORDER   "Order"
 
#define XSH_THE_MAP_TABLE_UNIT_ORDER   "none"
 
#define XSH_THE_MAP_TABLE_COLNAME_SLITPOSITION   "slit_position"
 
#define XSH_THE_MAP_TABLE_UNIT_SLITPOSITION   "arcsec"
 
#define XSH_THE_MAP_TABLE_COLNAME_SLITINDEX   "slit_index"
 
#define XSH_THE_MAP_TABLE_UNIT_SLITINDEX   "none"
 
#define XSH_THE_MAP_TABLE_COLNAME_DETECTORX   "detector_x"
 
#define XSH_THE_MAP_TABLE_UNIT_DETECTORX   "pixel"
 
#define XSH_THE_MAP_TABLE_COLNAME_DETECTORY   "detector_y"
 
#define XSH_THE_MAP_TABLE_UNIT_DETECTORY   "pixel"
 

Functions

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
 
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)
 
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
 
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_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
 
float xsh_the_map_get_slit_position (xsh_the_map *list, int idx)
 get slit position of the map list
 
cpl_frame * xsh_the_map_save (xsh_the_map *list, const char *filename)
 save a the_map to a frame
 
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)
 
void xsh_dump_the_map (xsh_the_map *list)
 Dump main info about the_map.
 

Macro Definition Documentation

◆ XSH_THE_MAP_TABLE_COLNAME_DETECTORX

#define XSH_THE_MAP_TABLE_COLNAME_DETECTORX   "detector_x"

Definition at line 40 of file xsh_data_the_map.h.

◆ XSH_THE_MAP_TABLE_COLNAME_DETECTORY

#define XSH_THE_MAP_TABLE_COLNAME_DETECTORY   "detector_y"

Definition at line 42 of file xsh_data_the_map.h.

◆ XSH_THE_MAP_TABLE_COLNAME_ORDER

#define XSH_THE_MAP_TABLE_COLNAME_ORDER   "Order"

Definition at line 34 of file xsh_data_the_map.h.

◆ XSH_THE_MAP_TABLE_COLNAME_SLITINDEX

#define XSH_THE_MAP_TABLE_COLNAME_SLITINDEX   "slit_index"

Definition at line 38 of file xsh_data_the_map.h.

◆ XSH_THE_MAP_TABLE_COLNAME_SLITPOSITION

#define XSH_THE_MAP_TABLE_COLNAME_SLITPOSITION   "slit_position"

Definition at line 36 of file xsh_data_the_map.h.

◆ XSH_THE_MAP_TABLE_COLNAME_WAVELENGTH

#define XSH_THE_MAP_TABLE_COLNAME_WAVELENGTH   "Wavelength"

Definition at line 32 of file xsh_data_the_map.h.

◆ XSH_THE_MAP_TABLE_NB_COL

#define XSH_THE_MAP_TABLE_NB_COL   6

Definition at line 31 of file xsh_data_the_map.h.

◆ XSH_THE_MAP_TABLE_UNIT_DETECTORX

#define XSH_THE_MAP_TABLE_UNIT_DETECTORX   "pixel"

Definition at line 41 of file xsh_data_the_map.h.

◆ XSH_THE_MAP_TABLE_UNIT_DETECTORY

#define XSH_THE_MAP_TABLE_UNIT_DETECTORY   "pixel"

Definition at line 43 of file xsh_data_the_map.h.

◆ XSH_THE_MAP_TABLE_UNIT_ORDER

#define XSH_THE_MAP_TABLE_UNIT_ORDER   "none"

Definition at line 35 of file xsh_data_the_map.h.

◆ XSH_THE_MAP_TABLE_UNIT_SLITINDEX

#define XSH_THE_MAP_TABLE_UNIT_SLITINDEX   "none"

Definition at line 39 of file xsh_data_the_map.h.

◆ XSH_THE_MAP_TABLE_UNIT_SLITPOSITION

#define XSH_THE_MAP_TABLE_UNIT_SLITPOSITION   "arcsec"

Definition at line 37 of file xsh_data_the_map.h.

◆ XSH_THE_MAP_TABLE_UNIT_WAVELENGTH

#define XSH_THE_MAP_TABLE_UNIT_WAVELENGTH   "nm"

Definition at line 33 of file xsh_data_the_map.h.