31#include "moo_spectral_format.h"
32#include "moo_detector.h"
39 cpl_propertylist *primary_header;
41 cpl_propertylist *data_header[6];
42 cpl_table *fibre_table;
43 cpl_table *line_table;
46#define MOO_MAP_CRPIX1 1
47#define MOO_MAP_CRVAL1 1
48#define MOO_MAP_CD1_1 1.
49#define MOO_MAP_CTYPE1 "PIXELS"
50#define MOO_MAP_CRPIX2 1
51#define MOO_MAP_CRVAL2 1
52#define MOO_MAP_CD2_2 1.
53#define MOO_MAP_CTYPE2 "PIXELS"
54#define MOO_MAP_BUNIT "nm"
61moo_map *moo_map_load(
const cpl_frame *mapframe);
68 cpl_propertylist *header);
69cpl_error_code moo_map_set_fibre_table(moo_map *self, cpl_table *fibre_table);
70cpl_error_code moo_map_set_line_table(moo_map *self, cpl_table *line_table);
72void moo_map_update_linetable(moo_map *self, moo_rbn *rbn);
74cpl_error_code
moo_map_check(moo_map *self, moo_spectral_format *sformat);
75cpl_error_code
moo_map_dump(
const moo_map *self, FILE *stream);
enum _moo_detector_type_ moo_detector_type
The type code type.
cpl_error_code moo_map_check(moo_map *self, moo_spectral_format *sformat)
Save a moo_map to a FITS file.
cpl_error_code moo_map_dump(const moo_map *self, FILE *stream)
Dump structural information of MAP.
void moo_map_save(moo_map *self, const char *filename)
Save a moo_map to a FITS file.
moo_map * moo_map_new(void)
Create a new moo_map.
cpl_table * moo_map_get_line_table(moo_map *self)
Get the LINE TABLE extension of a map.
cpl_error_code moo_map_set_data(moo_map *self, moo_detector_type type, int ntas, cpl_image *data, cpl_propertylist *header)
set map data for relevant extension
void moo_map_delete(moo_map *self)
Delete a moo_map.