|
MOONS Pipeline Reference Manual 0.13.1
|
Functions | |
| moo_cube * | moo_cube_new (void) |
| Create a new moo_cube. | |
| cpl_error_code | moo_cube_set_data (moo_cube *self, moo_detector_type type, int ntas, cpl_imagelist *data, cpl_propertylist *header) |
| set cube data for relevant extension | |
| cpl_error_code | moo_cube_add_data (moo_cube *self, cpl_imagelist *list, moo_detector_type type, int ntas) |
| Add CPL_IMAGELIST extension to CUBE filename and update moo_cube structure. | |
| void | moo_cube_save (moo_cube *self, const char *filename) |
| Save a moo_cube to a FITS file. | |
| cpl_error_code | moo_cube_normalise (moo_cube *self, moo_saturate_map *map) |
| Normalise a moo_cube using saturate map. | |
| moo_cube * | moo_cube_merge (moo_cube *cubea, moo_saturate_map *saturatea, moo_cube *cubeb, moo_saturate_map *saturateb) |
| Merging two cubes. | |
| void | moo_cube_delete (moo_cube *self) |
| Delete a moo_cube. | |
This module provides functions to create, use, and destroy a moo_cube
Functionality include:
| cpl_error_code moo_cube_add_data | ( | moo_cube * | self, |
| cpl_imagelist * | list, | ||
| moo_detector_type | type, | ||
| int | ntas | ||
| ) |
Add CPL_IMAGELIST extension to CUBE filename and update moo_cube structure.
| self | moo_cube structure to update |
| list | CPL_IMAGELIST extension to store |
| type | type of detector |
| ntas | number of spectrographs |
Possible cpl_error_code set in this function:
Definition at line 147 of file moo_cube.c.
References moo_cube_set_data(), and moo_detector_get_extname().
| void moo_cube_delete | ( | moo_cube * | self | ) |
Delete a moo_cube.
| self | moo_cube to delete |
If the moo_map self is NULL, nothing is done and no error is set.
Definition at line 343 of file moo_cube.c.
Referenced by moo_correct_detlin().
| moo_cube * moo_cube_merge | ( | moo_cube * | cubea, |
| moo_saturate_map * | saturatea, | ||
| moo_cube * | cubeb, | ||
| moo_saturate_map * | saturateb | ||
| ) |
Merging two cubes.
| cubea | moo_cube to merge |
| saturatea | SATURATE MAP from cubea |
| cubeb | moo_cube to merge |
| saturateb | SATURATE MAP from cubeb |
Definition at line 312 of file moo_cube.c.
References moo_cube_new().
| moo_cube * moo_cube_new | ( | void | ) |
Create a new moo_cube.
The returned object must be deallocated using moo_cube_delete().
Definition at line 66 of file moo_cube.c.
Referenced by moo_cube_merge().
| cpl_error_code moo_cube_normalise | ( | moo_cube * | self, |
| moo_saturate_map * | map | ||
| ) |
Normalise a moo_cube using saturate map.
| self | moo_cube to normalise |
| map | SATURATE MAP to use |
Definition at line 238 of file moo_cube.c.
| void moo_cube_save | ( | moo_cube * | self, |
| const char * | filename | ||
| ) |
Save a moo_cube to a FITS file.
| self | moo_cube to write to disk or NULL |
| filename | Name of the file to write |
This function saves a moo_cube to a FITS file, using cfitsio. Only not NULL extensions are written.
Definition at line 191 of file moo_cube.c.
References moo_detector_get_extname(), and moo_fits_write_extension_cube().
Referenced by moo_products_add_cube().
| cpl_error_code moo_cube_set_data | ( | moo_cube * | self, |
| moo_detector_type | type, | ||
| int | ntas, | ||
| cpl_imagelist * | data, | ||
| cpl_propertylist * | header | ||
| ) |
set cube data for relevant extension
| self | |
| type | the detector type |
| ntas | number of TAS |
| data | the cube data |
| header | the cube header |
Definition at line 119 of file moo_cube.c.
Referenced by moo_cube_add_data().