|
MOONS Pipeline Reference Manual 0.13.2
|
Functions | |
| moo_sci_single * | moo_sci_single_new (moo_detector_type type) |
| Create a new moo_sci_single. | |
| void | moo_sci_single_delete (moo_sci_single *self) |
| Delete a moo_sci_single. | |
| void | moo_sci_single_save (moo_sci_single *self, const char *filename, moo_detector_type type) |
| Save a moo_sci_single to a FITS file. | |
| moo_sci_single * | moo_sci_single_create (const char *filename, moo_detector_type type) |
| Create a new moo_sci_single with the given filename and type. | |
| cpl_error_code | moo_sci_single_load (moo_sci_single *self, unsigned int level) |
| Load a moo_sci_single from the filename. | |
| hdrl_image * | moo_sci_single_get_image (moo_sci_single *self) |
| Get image of SCI_SINGLE. | |
| cpl_propertylist * | moo_sci_single_get_header (moo_sci_single *self) |
| Get header of sci single. | |
| cpl_image * | moo_sci_single_get_sky (moo_sci_single *self) |
| Get sky of sci single. | |
| cpl_image * | moo_sci_single_get_qual (moo_sci_single *self) |
| Get image of qual. | |
| double | moo_sci_single_compute_snr (moo_sci_single *self, int targ_idx, moo_sky_lines_list *skylines) |
| Compute SNR for a given target. | |
This module provides functions to create, use, and destroy a moo_sci_single
Functionality include:
| double moo_sci_single_compute_snr | ( | moo_sci_single * | self, |
| int | targ_idx, | ||
| moo_sky_lines_list * | skylines | ||
| ) |
Compute SNR for a given target.
| self | [SCI_SINGLE] sci_single structure |
| targ_idx | id of the target |
| skylines | the SKYLINES which contains OH free zones list |
Definition at line 392 of file moo_sci_single.c.
References moo_pfits_get_cd1_1(), moo_pfits_get_crpix1(), moo_pfits_get_crval1(), moo_sci_single_get_header(), moo_sci_single_get_image(), and moo_sky_lines_list_get_free_zones().
Referenced by moo_sci_compute_snr().
| moo_sci_single * moo_sci_single_create | ( | const char * | filename, |
| moo_detector_type | type | ||
| ) |
Create a new moo_sci_single with the given filename and type.
| filename | the SCI filename |
| type | the detector type |
The returned object must be deallocated using moo_sci_single_delete(). Possible cpl_error_code set in this function:
Definition at line 205 of file moo_sci_single.c.
References moo_detector_get_name(), moo_pfits_get_naxis(), and moo_sci_single_new().
Referenced by moo_sci_create().
| void moo_sci_single_delete | ( | moo_sci_single * | self | ) |
Delete a moo_sci_single.
| self | moo_sci_single to delete |
If the moo_rbn_single self is NULL, nothing is done and no error is set.
Definition at line 92 of file moo_sci_single.c.
Referenced by moo_sci_delete().
| cpl_propertylist * moo_sci_single_get_header | ( | moo_sci_single * | self | ) |
Get header of sci single.
| self | SCI_SINGLE |
Possible cpl_error_code set in this function:
Definition at line 314 of file moo_sci_single.c.
Referenced by moo_coadd(), moo_compute_resp(), moo_correct_tell_science(), moo_molecfit_model(), moo_resp_create(), moo_sci_single_compute_snr(), and moo_telluric_create().
| hdrl_image * moo_sci_single_get_image | ( | moo_sci_single * | self | ) |
Get image of SCI_SINGLE.
| self | SCI_SINGLE |
Possible cpl_error_code set in this function:
Definition at line 294 of file moo_sci_single.c.
Referenced by moo_coadd(), moo_correct_tell_science(), moo_molecfit_model(), moo_resp_create(), moo_sci_single_compute_snr(), moo_scilist_get_image(), and moo_telluric_create().
| cpl_image * moo_sci_single_get_qual | ( | moo_sci_single * | self | ) |
Get image of qual.
| self | SCI_SINGLE |
Possible cpl_error_code set in this function:
Definition at line 366 of file moo_sci_single.c.
References moo_fits_load_extension_image().
Referenced by moo_coadd(), and moo_scilist_get_qual().
| cpl_image * moo_sci_single_get_sky | ( | moo_sci_single * | self | ) |
Get sky of sci single.
| self | SCI_SINGLE |
Possible cpl_error_code set in this function:
Definition at line 342 of file moo_sci_single.c.
References moo_fits_load_extension_image().
Referenced by moo_coadd(), moo_sci_single_load(), and moo_scilist_get_sky().
| cpl_error_code moo_sci_single_load | ( | moo_sci_single * | self, |
| unsigned int | level | ||
| ) |
Load a moo_sci_single from the filename.
| self | the sci_single to load |
| level | the bad pixel level |
Definition at line 237 of file moo_sci_single.c.
References moo_badpix_to_mask(), moo_fits_load_extension_image(), and moo_sci_single_get_sky().
Referenced by moo_molecfit_model(), and moo_sci_load_single().
| moo_sci_single * moo_sci_single_new | ( | moo_detector_type | type | ) |
Create a new moo_sci_single.
The returned object must be deallocated using moo_sci_single_delete().
Definition at line 69 of file moo_sci_single.c.
References MOO_BADPIX_GOOD, and moo_detector_get_name().
Referenced by moo_coadd(), and moo_sci_single_create().
| void moo_sci_single_save | ( | moo_sci_single * | self, |
| const char * | filename, | ||
| moo_detector_type | type | ||
| ) |
Save a moo_sci_single to a FITS file.
| self | moo_sci_single to write to disk or NULL |
| filename | Name of the file to write |
| type | detector type |
Definition at line 124 of file moo_sci_single.c.
References moo_detector_get_name(), moo_fits_write_extension_image(), moo_pfits_append_hduclass_error(), and moo_pfits_append_hduclass_quality().
Referenced by moo_sci_add_single(), and moo_sci_save().