26#ifndef XSH_DATA_THE_MAP_H
27#define XSH_DATA_THE_MAP_H
31#define XSH_THE_MAP_TABLE_NB_COL 6
32#define XSH_THE_MAP_TABLE_COLNAME_WAVELENGTH "Wavelength"
33#define XSH_THE_MAP_TABLE_UNIT_WAVELENGTH "nm"
34#define XSH_THE_MAP_TABLE_COLNAME_ORDER "Order"
35#define XSH_THE_MAP_TABLE_UNIT_ORDER "none"
36#define XSH_THE_MAP_TABLE_COLNAME_SLITPOSITION "slit_position"
37#define XSH_THE_MAP_TABLE_UNIT_SLITPOSITION "arcsec"
38#define XSH_THE_MAP_TABLE_COLNAME_SLITINDEX "slit_index"
39#define XSH_THE_MAP_TABLE_UNIT_SLITINDEX "none"
40#define XSH_THE_MAP_TABLE_COLNAME_DETECTORX "detector_x"
41#define XSH_THE_MAP_TABLE_UNIT_DETECTORX "pixel"
42#define XSH_THE_MAP_TABLE_COLNAME_DETECTORY "detector_y"
43#define XSH_THE_MAP_TABLE_UNIT_DETECTORY "pixel"
73 int order,
int slit_index,
float slit_position,
double detx,
double dety);
void xsh_the_map_free(xsh_the_map **list)
free memory associated to a the_map
double xsh_the_map_get_detx(xsh_the_map *list, int idx)
get detx of the map list
float xsh_the_map_get_slit_position(xsh_the_map *list, int idx)
get slit position of the map list
int xsh_the_map_get_slit_index(xsh_the_map *list, int idx)
get slit position of the map list
void xsh_dump_the_map(xsh_the_map *list)
Dump main info about the_map.
double xsh_the_map_get_dety(xsh_the_map *list, int idx)
get dety of the map list
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)
void xsh_the_map_lambda_sort(xsh_the_map *list)
sort the_map arcline list by increasing lambda
int xsh_the_map_get_order(xsh_the_map *list, int idx)
get order of the map list
int xsh_the_map_get_size(xsh_the_map *list)
get size of the map list
void xsh_the_arcline_free(xsh_the_arcline **arc)
free memory associated to a the_arcline
void xsh_the_map_lambda_order_slit_sort(xsh_the_map *list)
xsh_the_map * xsh_the_map_create(int size)
Create an empty theoretical map.
float xsh_the_map_get_wavelength(xsh_the_map *list, int idx)
get wavelength of the map list
xsh_the_map * xsh_the_map_load(cpl_frame *frame)
load a theoretical map frame in the_map structure. Suppress spurious entries in the THE MAP (marked w...
cpl_frame * xsh_the_map_save(xsh_the_map *list, const char *filename)
save a the_map to a frame
cpl_propertylist * header