|
MOONS Pipeline Reference Manual 0.13.2
|
Functions | |
| moo_bpm * | moo_bpm_new (void) |
| Create a new moo_bpm. | |
| cpl_error_code | moo_bpm_set_data (moo_bpm *self, moo_detector_type type, int ntas, cpl_image *data, cpl_propertylist *header) |
| set bpm data for relevant extension | |
| cpl_error_code | moo_bpm_add_data (moo_bpm *self, cpl_image *img, moo_detector_type type, int ntas) |
| Add CPL_IMAGE extension to BPM filename and update moo_bpm structure. | |
| cpl_error_code | moo_bpm_merge (moo_bpm *a, moo_bpm *b) |
| Merge to moo_bpm structure in the first. | |
| void | moo_bpm_save (moo_bpm *self, const char *filename) |
| Save a moo_bpm to a FITS file. | |
| void | moo_bpm_delete (moo_bpm *self) |
| Delete a moo_bpm. | |
This module provides functions to create, use, and destroy a moo_bpm
Functionality include:
| cpl_error_code moo_bpm_add_data | ( | moo_bpm * | self, |
| cpl_image * | img, | ||
| moo_detector_type | type, | ||
| int | ntas | ||
| ) |
Add CPL_IMAGE extension to BPM filename and update moo_bpm structure.
| self | moo_bpm structure to update |
| img | CPL_IMAGE extension to store |
| type | type of detector |
| ntas | number of spectrographs |
Possible cpl_error_code set in this function:
Definition at line 113 of file moo_bpm.c.
References moo_bpm_set_data(), and moo_detector_get_extname().
| void moo_bpm_delete | ( | moo_bpm * | self | ) |
| cpl_error_code moo_bpm_merge | ( | moo_bpm * | a, |
| moo_bpm * | b | ||
| ) |
| moo_bpm * moo_bpm_new | ( | void | ) |
Create a new moo_bpm.
The returned object must be deallocated using moo_bpm_delete().
| void moo_bpm_save | ( | moo_bpm * | self, |
| const char * | filename | ||
| ) |
Save a moo_bpm to a FITS file.
| self | moo_bpm to write to disk or NULL |
| filename | Name of the file to write |
This function saves a moo_bpm to a FITS file, using cfitsio. Only not NULL extensions are written.
Definition at line 186 of file moo_bpm.c.
References moo_detector_get_extname(), and moo_fits_write_extension_image().
Referenced by moo_products_add_bpm().
| cpl_error_code moo_bpm_set_data | ( | moo_bpm * | self, |
| moo_detector_type | type, | ||
| int | ntas, | ||
| cpl_image * | data, | ||
| cpl_propertylist * | header | ||
| ) |
set bpm data for relevant extension
| self | |
| type | the detector type |
| ntas | number of TAS |
| data | the bpm data |
| header | the bpm header |
Definition at line 85 of file moo_bpm.c.
Referenced by moo_bpm_add_data().