|
MOONS Pipeline Reference Manual 0.13.1
|
Functions | |
| 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. | |
| void | moo_map_save (moo_map *self, const char *filename) |
| Save a moo_map to a FITS file. | |
| 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. | |
This module provides functions to create, use, and destroy a moo_map
Functionality include:
| cpl_error_code moo_map_check | ( | moo_map * | self, |
| moo_spectral_format * | sformat | ||
| ) |
Save a moo_map to a FITS file.
| self | moo_map to write to disk or NULL |
| filename | Name of the file to write |
This function saves a moo_map to a FITS file, using cfitsio. Only not NULL extensions are written.
Definition at line 320 of file moo_map.c.
References moo_detector_get_name(), moo_qc_set_wavecal_monotonous_solution(), moo_spectral_format_get(), and moo_spectral_format_info_delete().
Referenced by moo_wavesol().
| void moo_map_delete | ( | moo_map * | self | ) |
| cpl_error_code moo_map_dump | ( | const moo_map * | self, |
| FILE * | stream | ||
| ) |
Dump structural information of MAP.
| self | structure to dump |
| stream | Output stream, accepts stdout or stderr |
Possible cpl_error_code set in this function:
| cpl_table * moo_map_get_line_table | ( | moo_map * | self | ) |
| moo_map * moo_map_new | ( | void | ) |
Create a new moo_map.
The returned object must be deallocated using moo_map_delete().
| void moo_map_save | ( | moo_map * | self, |
| const char * | filename | ||
| ) |
Save a moo_map to a FITS file.
| self | moo_map to write to disk or NULL |
| filename | Name of the file to write |
This function saves a moo_map to a FITS file, using cfitsio. Only not NULL extensions are written.
Definition at line 275 of file moo_map.c.
References moo_detector_get_extname(), and moo_fits_write_extension_image().
Referenced by moo_products_add_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
| self | |
| type | the detector type |
| ntas | number of TAS |
| data | the map data |
| header | the map header |
Definition at line 164 of file moo_map.c.
References moo_qc_set_wave_max(), and moo_qc_set_wave_min().