|
MOONS Pipeline Reference Manual 0.13.1
|
Functions | |
| moo_detlist * | moo_detlist_new (void) |
| Create a new moo_detlist. | |
| moo_detlist * | moo_detlist_create (cpl_frameset *frameset) |
| Create a new moo_detlist from the given DET frameset. | |
| cpl_error_code | moo_detlist_load_single (const moo_detlist *self, moo_detector_type type, int num, int level) |
| Load the type part for all DET in the detlist. | |
| cpl_error_code | moo_detlist_free_single (const moo_detlist *self, moo_detector_type type, int num) |
| Free the type part for all DET in the detlist. | |
| cpl_size | moo_detlist_get_size (const moo_detlist *self) |
| Get the number of DET in the detlist. | |
| moo_det * | moo_detlist_get (moo_detlist *self, int i) |
| Get the DET at the position i in the list. | |
| hdrl_imagelist * | moo_detlist_get_image (const moo_detlist *self, moo_detector_type type, int num) |
| Get the all the images of the type part in the detlist. | |
| cpl_imagelist * | moo_detlist_get_single_data (const moo_detlist *self, moo_detector_type type, int num) |
| Get the type data part for all DET in the detlist. | |
| cpl_imagelist * | moo_detlist_get_single_qual (const moo_detlist *self, moo_detector_type type, int num) |
| Get the type QUAL part for all DET in the detlist. | |
| cpl_error_code | moo_detlist_set (moo_detlist *self, moo_det *det, cpl_size pos) |
| Insert a DET into an moo_detlist. | |
| cpl_error_code | moo_detlist_push (moo_detlist *self, moo_det *det) |
| Insert a DET a the end of moo_detlist. | |
| moo_det * | moo_detlist_unset (moo_detlist *self, cpl_size pos) |
| Remove a DET from a DET list. | |
| void | moo_detlist_empty (moo_detlist *self) |
| Empty an moo_detlist and deallocate all its DET. | |
| void | moo_detlist_unwrap (moo_detlist *self) |
| Free memory used by a moo_detlist object, except the DET. | |
| void | moo_detlist_delete (moo_detlist *self) |
| Free all memory used by a moo_detlist object including the DET. | |
| cpl_error_code | moo_rbnlist_free_single (const moo_rbnlist *self, moo_detector_type type) |
| Free the type part for all DET in the detlist. | |
| moo_detlist * moo_detlist_create | ( | cpl_frameset * | frameset | ) |
Create a new moo_detlist from the given DET frameset.
The returned object must be deallocated using moo_detlist_delete(). Possible cpl_error_code set in this function:
Definition at line 71 of file moo_detlist.c.
References moo_det_create(), moo_detlist_new(), and moo_detlist_push().
| void moo_detlist_delete | ( | moo_detlist * | self | ) |
Free all memory used by a moo_detlist object including the DET.
| self | The DET list or NULL |
NULL, nothing is done and no error is set. Definition at line 559 of file moo_detlist.c.
References moo_detlist_empty(), and moo_detlist_unwrap().
| void moo_detlist_empty | ( | moo_detlist * | self | ) |
Empty an moo_detlist and deallocate all its DET.
| self | The DET list or NULL |
NULL nothing is done and no error is set.After the call the moo_det list can be populated again. It must eventually be deallocted with a call to moo_detlist_delete().
Definition at line 503 of file moo_detlist.c.
References moo_det_delete(), and moo_detlist_unset().
Referenced by moo_detlist_delete().
| cpl_error_code moo_detlist_free_single | ( | const moo_detlist * | self, |
| moo_detector_type | type, | ||
| int | num | ||
| ) |
Free the type part for all DET in the detlist.
| self | the list of DET |
| type | the type of extension to load |
| num | the TAS number |
TAS number is 0 or 1.
Possible cpl_error_code set in this function:
Definition at line 143 of file moo_detlist.c.
References moo_det_free_single().
Referenced by moo_compute_noise_map(), and moo_masterbias().
| moo_det * moo_detlist_get | ( | moo_detlist * | self, |
| int | i | ||
| ) |
Get the DET at the position i in the list.
| self | the list of DET |
| i | position in the list |
Possible cpl_error_code set in this function:
Definition at line 196 of file moo_detlist.c.
References moo_detlist_get_size().
Referenced by moo_remove_CRH().
| hdrl_imagelist * moo_detlist_get_image | ( | const moo_detlist * | self, |
| moo_detector_type | type, | ||
| int | num | ||
| ) |
Get the all the images of the type part in the detlist.
| self | the list of DET |
| type | the type of extension to load |
| num | the TAS number |
TAS number is 1 or 2.
Possible cpl_error_code set in this function:
Definition at line 225 of file moo_detlist.c.
References moo_det_get_single(), and moo_single_get_image().
Referenced by moo_masterbias().
| cpl_imagelist * moo_detlist_get_single_data | ( | const moo_detlist * | self, |
| moo_detector_type | type, | ||
| int | num | ||
| ) |
Get the type data part for all DET in the detlist.
| self | the list of DET |
| type | the type of extension to load |
| num | the TAS number |
TAS number is 0 or 1.
Possible cpl_error_code set in this function:
Definition at line 279 of file moo_detlist.c.
References moo_det_get_single(), and moo_single_get_data().
Referenced by moo_compute_noise_map().
| cpl_imagelist * moo_detlist_get_single_qual | ( | const moo_detlist * | self, |
| moo_detector_type | type, | ||
| int | num | ||
| ) |
Get the type QUAL part for all DET in the detlist.
| self | the list of DET |
| type | the type of extension to load |
| num | the TAS number |
TAS number is 0 or 1.
Possible cpl_error_code set in this function:
Definition at line 320 of file moo_detlist.c.
References moo_det_get_single(), and moo_single_get_qual().
Referenced by moo_compute_noise_map().
| cpl_size moo_detlist_get_size | ( | const moo_detlist * | self | ) |
Get the number of DET in the detlist.
| self | the list of DET |
Possible cpl_error_code set in this function:
Definition at line 173 of file moo_detlist.c.
Referenced by moo_compute_noise_map(), and moo_detlist_get().
| cpl_error_code moo_detlist_load_single | ( | const moo_detlist * | self, |
| moo_detector_type | type, | ||
| int | num, | ||
| int | level | ||
| ) |
Load the type part for all DET in the detlist.
| self | the list of DET |
| type | the type of extension to load |
| num | the TAS number |
| level | Mask error level |
TAS number is 0 or 1.
Possible cpl_error_code set in this function:
Definition at line 107 of file moo_detlist.c.
References moo_det_load_single().
Referenced by moo_compute_noise_map(), and moo_masterbias().
| moo_detlist * moo_detlist_new | ( | void | ) |
Create a new moo_detlist.
The returned object must be deallocated using moo_detlist_delete().
Definition at line 56 of file moo_detlist.c.
Referenced by moo_detlist_create().
| cpl_error_code moo_detlist_push | ( | moo_detlist * | self, |
| moo_det * | det | ||
| ) |
Insert a DET a the end of moo_detlist.
| self | The moo_detlist |
| det | The DET to insert |
No action occurs if a DET is inserted more than once into the same position. It is allowed to insert the same DET into two different positions in a list.
The DET is inserted at the end in the DET list. If the DET already there is only present in that one location in the list, then the DET is deallocated.
The added DET is owned by the moo_detlist object, which deallocates it moo_detlist_delete is called. Other option is to use moo_detlist_unset to recover ownership of the DET, in which case the moo_detlist object is not longer responsible for deallocating it.
Possible cpl_error_code set in this function:
Definition at line 439 of file moo_detlist.c.
References moo_detlist_set().
Referenced by moo_detlist_create().
| cpl_error_code moo_detlist_set | ( | moo_detlist * | self, |
| moo_det * | det, | ||
| cpl_size | pos | ||
| ) |
Insert a DET into an moo_detlist.
| self | The moo_detlist |
| det | The DET to insert |
| pos | The list position (from 0 to number of DET) |
It is allowed to specify the position equal to the number of DET in the list. This will increment the size of the detlist.
No action occurs if a DET is inserted more than once into the same position. It is allowed to insert the same DET into two different positions in a list.
The DET is inserted at the position pos in the DET list. If the DET already there is only present in that one location in the list, then the DET is deallocated.
The added DET is owned by the moo_detlist object, which deallocates it moo_detlist_delete is called. Other option is to use moo_detlist_unset to recover ownership of the DET, in which case the moo_detlist object is not longer responsible for deallocating it.
Possible cpl_error_code set in this function:
Definition at line 375 of file moo_detlist.c.
References moo_det_delete().
Referenced by moo_detlist_push().
| moo_det * moo_detlist_unset | ( | moo_detlist * | self, |
| cpl_size | pos | ||
| ) |
Remove a DET from a DET list.
| self | The moo_detlist |
| pos | The list position (from 0 to number of DET-1) |
The specified DET is not deallocated, it is simply removed from the list. The pointer to the DET is returned to let the user decide to deallocate it or not. Eventually, the DET will have to be deallocated with moo_det_delete().
Possible cpl_error_code set in this function:
Definition at line 465 of file moo_detlist.c.
Referenced by moo_detlist_empty().
| void moo_detlist_unwrap | ( | moo_detlist * | self | ) |
Free memory used by a moo_detlist object, except the DET.
| self | The DET list or NULL |
NULL nothing is done and no error is set. Definition at line 539 of file moo_detlist.c.
Referenced by moo_detlist_delete().
| cpl_error_code moo_rbnlist_free_single | ( | const moo_rbnlist * | self, |
| moo_detector_type | type | ||
| ) |
Free the type part for all DET in the detlist.
| self | the list of DET |
| type | the type of extension to load |
TAS number is 0 or 1.
Possible cpl_error_code set in this function:
Definition at line 137 of file moo_rbnlist.c.
References moo_rbn_free_single().