|
MOONS Pipeline Reference Manual 0.13.2
|
Functions | |
| moo_molectable * | moo_molectable_new (void) |
| Create a new moo_molectable. | |
| moo_molectable * | moo_molectable_load (const cpl_frame *frame, const char *modename) |
| Load a moo_molectable. | |
| cpl_table * | moo_molectable_get_data (moo_molectable *self, moo_detector_type type) |
| Get table from molec_table. | |
| cpl_error_code | moo_molectable_set_data (moo_molectable *self, moo_detector_type type, cpl_table *data) |
| Set table in molectable. | |
| void | moo_molectable_save (moo_molectable *self, const char *filename) |
| Save a moo_molectable to a FITS file. | |
| void | moo_molectable_delete (moo_molectable *self) |
| Delete a moo_molectable. | |
| cpl_error_code | moo_molectable_dump (const moo_molectable *self, FILE *stream) |
| Dump structural information of MOLECTABLE. | |
This module provides functions to create, use, and destroy a moo_molectable
Functionality include:
| void moo_molectable_delete | ( | moo_molectable * | self | ) |
Delete a moo_molectable.
| self | moo_molectable to delete |
If the moo_molectable self is NULL, nothing is done and no error is set.
Definition at line 214 of file moo_molectable.c.
Referenced by moo_molecfit_calctrans(), moo_molecfit_model(), and moo_molectable_load().
| cpl_error_code moo_molectable_dump | ( | const moo_molectable * | self, |
| FILE * | stream | ||
| ) |
Dump structural information of MOLECTABLE.
| self | structure to dump |
| stream | Output stream, accepts stdout or stderr |
Possible cpl_error_code set in this function:
Definition at line 252 of file moo_molectable.c.
| cpl_table * moo_molectable_get_data | ( | moo_molectable * | self, |
| moo_detector_type | type | ||
| ) |
Get table from molec_table.
| self | the molec_table |
| type | the detector type |
Definition at line 145 of file moo_molectable.c.
Referenced by moo_molecfit_calctrans(), and moo_molecfit_model().
| moo_molectable * moo_molectable_load | ( | const cpl_frame * | frame, |
| const char * | modename | ||
| ) |
Load a moo_molectable.
| frame | the frame to load |
| modename | the detector mode LR or HR |
The returned object must be deallocated using moo_molectable_delete().
Definition at line 86 of file moo_molectable.c.
References moo_detector_get_name(), moo_molectable_delete(), moo_molectable_new(), and moo_pfits_get_naxis().
Referenced by moo_molecfit_calctrans(), and moo_molecfit_model().
| moo_molectable * moo_molectable_new | ( | void | ) |
Create a new moo_molectable.
The returned object must be deallocated using moo_molectable_delete().
Definition at line 67 of file moo_molectable.c.
Referenced by moo_molecfit_calctrans(), moo_molecfit_model(), and moo_molectable_load().
| void moo_molectable_save | ( | moo_molectable * | self, |
| const char * | filename | ||
| ) |
Save a moo_molectable to a FITS file.
| self | moo_molectable to write to disk or NULL |
| filename | Name of the file to write |
This function saves a moo_molectable to a FITS file, using cfitsio. Only not NULL extensions are written.
Definition at line 188 of file moo_molectable.c.
References moo_detector_get_name(), and moo_fits_write_extension_table().
Referenced by moo_products_add_molectable().
| cpl_error_code moo_molectable_set_data | ( | moo_molectable * | self, |
| moo_detector_type | type, | ||
| cpl_table * | data | ||
| ) |
Set table in molectable.
| self | the molectable |
| type | the detector type |
| data | the table to set |
Definition at line 166 of file moo_molectable.c.
Referenced by moo_molecfit_model().