|
MOONS Pipeline Reference Manual 0.13.2
|
Modules | |
| EXT_SINGLE format | |
Functions | |
| moo_ext * | moo_ext_new (void) |
| Create a new moo_ext. | |
| moo_ext * | moo_ext_create (const cpl_frame *frame) |
| Create a new empty EXT filename. | |
| cpl_error_code | moo_ext_load (moo_ext *self, unsigned int level) |
| Load all parts in EXT. | |
| moo_ext_single * | moo_ext_load_single (moo_ext *self, moo_detector_type type, int num, unsigned int level) |
| Load the type part in EXT and return it. | |
| moo_ext_single * | moo_ext_get_single (moo_ext *self, moo_detector_type type, int ntas) |
| Get a EXT single from EXT. | |
| cpl_error_code | moo_ext_set_single (moo_ext *self, moo_detector_type type, int ntas, moo_ext_single *single) |
| assign moo_ext_single structure in moo_ext structure | |
| cpl_error_code | moo_ext_add_single (moo_ext *self, moo_ext_single *single, moo_detector_type type, int ntas) |
| Add EXT_SINGLE extension to EXT filename and update moo_ext structure. | |
| cpl_error_code | moo_ext_add_fibre_table (moo_ext *self, cpl_table *fibre_table) |
| Add fibre table to EXT filename and update moo_ext structure. | |
| cpl_table * | moo_ext_get_fibre_table (moo_ext *self) |
| Get the FIBRE TABLE in EXT. | |
| void | moo_ext_delete (moo_ext *self) |
| Delete a moo_ext. | |
| void | moo_ext_save (moo_ext *self, const char *filename) |
| Save a moo_ext to a FITS file. | |
| cpl_error_code | moo_ext_dump (const moo_ext *self, FILE *stream) |
| Dump structural information of EXT. | |
| cpl_error_code | moo_ext_sum (moo_ext *self, moo_ext *ext) |
| Sum EXT structure. | |
| cpl_error_code | moo_ext_compute_snr (moo_ext *self, moo_map *wmap, moo_spectral_format *sformat, moo_sky_lines_list *skylines) |
| Compute SNR for all fibres EXT. | |
This module provides functions to create, use, and destroy a moo_ext
Functionality include:
| cpl_error_code moo_ext_add_fibre_table | ( | moo_ext * | self, |
| cpl_table * | fibre_table | ||
| ) |
Add fibre table to EXT filename and update moo_ext structure.
| self | moo_ext structure to update |
| fibre_table | fibre table to store on EXT file |
The returned object must be deallocated using moo_ext_delete(). Possible cpl_error_code set in this function:
Definition at line 309 of file moo_ext.c.
Referenced by moo_extract().
| cpl_error_code moo_ext_add_single | ( | moo_ext * | self, |
| moo_ext_single * | single, | ||
| moo_detector_type | type, | ||
| int | ntas | ||
| ) |
Add EXT_SINGLE extension to EXT filename and update moo_ext structure.
| self | moo_ext structure to update |
| type | type of detector |
| ntas | number of spectrographs |
| single | EXT_SINGLE extension to store on LOC file |
The returned object must be deallocated using moo_loc_delete(). Possible cpl_error_code set in this function:
Definition at line 276 of file moo_ext.c.
References moo_detector_get_extname(), moo_ext_set_single(), and moo_ext_single_save().
Referenced by moo_extract().
| cpl_error_code moo_ext_compute_snr | ( | moo_ext * | self, |
| moo_map * | wmap, | ||
| moo_spectral_format * | sformat, | ||
| moo_sky_lines_list * | skylines | ||
| ) |
Compute SNR for all fibres EXT.
| self | [EXT] the ext |
| wmap | [MAP] the wavemap |
| sformat | the spectral format |
| skylines | SKY_LINE_LIST |
Definition at line 553 of file moo_ext.c.
References MOO_BADPIX_GOOD, moo_ext_get_fibre_table(), moo_ext_load_single(), moo_ext_single_compute_snr(), moo_qc_set_snr_range(), moo_spectral_format_get(), and moo_spectral_format_info_delete().
| moo_ext * moo_ext_create | ( | const cpl_frame * | frame | ) |
Create a new empty EXT filename.
The returned object must be deallocated using moo_ext_delete(). Possible cpl_error_code set in this function:
Definition at line 86 of file moo_ext.c.
References moo_ext_delete(), moo_ext_new(), moo_ext_single_create(), MOO_TYPE_H, MOO_TYPE_RI, and MOO_TYPE_YJ.
Referenced by moo_extlist_create(), and moo_extlist_sum().
| void moo_ext_delete | ( | moo_ext * | self | ) |
Delete a moo_ext.
| self | moo_ext to delete |
If the moo_ext self is NULL, nothing is done and no error is set.
Definition at line 370 of file moo_ext.c.
References moo_ext_single_delete().
Referenced by moo_ext_create(), moo_extlist_empty(), moo_extlist_set(), and moo_extract().
| cpl_error_code moo_ext_dump | ( | const moo_ext * | self, |
| FILE * | stream | ||
| ) |
Dump structural information of EXT.
| self | LOC to dump |
| stream | Output stream, accepts stdout or stderr |
Possible cpl_error_code set in this function:
Definition at line 441 of file moo_ext.c.
References moo_ext_single_dump().
| cpl_table * moo_ext_get_fibre_table | ( | moo_ext * | self | ) |
Get the FIBRE TABLE in EXT.
| self | the EXT |
Possible cpl_error_code set in this function:
Definition at line 344 of file moo_ext.c.
Referenced by moo_apply_flat(), moo_compute_fibtrans(), moo_ext_compute_snr(), moo_extlist_sum(), and moo_rebin().
| moo_ext_single * moo_ext_get_single | ( | moo_ext * | self, |
| moo_detector_type | type, | ||
| int | ntas | ||
| ) |
Get a EXT single from EXT.
| self | moo_ext structure to update |
| type | type of detector |
| ntas | number of spectrographs |
The returned object must be deallocated using moo_loc_delete(). Possible cpl_error_code set in this function:
Definition at line 199 of file moo_ext.c.
References MOO_TYPE_H, MOO_TYPE_RI, and MOO_TYPE_YJ.
Referenced by moo_ext_free_single(), moo_extlist_get_image(), moo_extlist_get_single_data(), and moo_extlist_get_single_qual().
| cpl_error_code moo_ext_load | ( | moo_ext * | self, |
| unsigned int | level | ||
| ) |
Load all parts in EXT.
| self | the EXT |
| level | the bad pixel level |
The returned object must be deallocated using moo_ext_delete(). Possible cpl_error_code set in this function:
Definition at line 126 of file moo_ext.c.
References moo_ext_single_load().
Referenced by moo_extlist_sum().
| moo_ext_single * moo_ext_load_single | ( | moo_ext * | self, |
| moo_detector_type | type, | ||
| int | num, | ||
| unsigned int | level | ||
| ) |
Load the type part in EXT and return it.
| self | the EXT |
| type | the type of extension to load |
| num | the TAS number [1,2] |
| level | the bad pixel level |
Possible error code :
Definition at line 156 of file moo_ext.c.
References moo_ext_single_load(), MOO_TYPE_H, MOO_TYPE_RI, and MOO_TYPE_YJ.
Referenced by moo_apply_flat(), moo_compute_fibtrans(), moo_ext_compute_snr(), moo_extlist_load_single(), and moo_rebin().
| moo_ext * moo_ext_new | ( | void | ) |
Create a new moo_ext.
The returned object must be deallocated using moo_ext_delete().
Definition at line 69 of file moo_ext.c.
Referenced by moo_ext_create(), and moo_extract().
| void moo_ext_save | ( | moo_ext * | self, |
| const char * | filename | ||
| ) |
Save a moo_ext to a FITS file.
| self | moo_ext to write to disk or NULL |
| filename | Name of the file to write |
This function saves a moo_ext to a FITS file, using cfitsio. Only not NULL extensions are written.
Definition at line 406 of file moo_ext.c.
References moo_ext_single_save(), MOO_TYPE_H, MOO_TYPE_RI, and MOO_TYPE_YJ.
Referenced by moo_extlist_sum(), and moo_products_add_ext().
| cpl_error_code moo_ext_set_single | ( | moo_ext * | self, |
| moo_detector_type | type, | ||
| int | ntas, | ||
| moo_ext_single * | single | ||
| ) |
assign moo_ext_single structure in moo_ext structure
| self | moo_ext structure to update |
| type | type of detector |
| ntas | number of spectrographs |
| single | moo_ext_single structure |
The returned object must be deallocated using moo_loc_delete(). Possible cpl_error_code set in this function:
Definition at line 231 of file moo_ext.c.
References MOO_TYPE_H, MOO_TYPE_RI, and MOO_TYPE_YJ.
Referenced by moo_ext_add_single().
| cpl_error_code moo_ext_sum | ( | moo_ext * | self, |
| moo_ext * | ext | ||
| ) |
Sum EXT structure.
| self | EXT result of the sum |
| ext | EXT to sum |
Possible cpl_error_code set in this function:
Definition at line 514 of file moo_ext.c.
References moo_ext_single_sum().
Referenced by moo_extlist_sum().