Fiber Selection
Functions | |
| GiTable * | giraffe_fibers_select (const cpl_frame *frame, const GiTable *reference, GiFibersConfig *config) |
| Selects the spectra to process. | |
| GiTable * | giraffe_fibers_setup (const cpl_frame *frame, const cpl_frame *reference) |
| Setup a fiber list. | |
| GiFibersConfig * | giraffe_fibers_config_create (cpl_parameterlist *list) |
| Creates a setup structure for the fiber selection. | |
| void | giraffe_fibers_config_destroy (GiFibersConfig *config) |
| Destroys a fibers setup structure. | |
| void | giraffe_fibers_config_add (cpl_parameterlist *list) |
| Adds parameters for the spectrum selection. | |
Detailed Description
TBDFunction Documentation
| void giraffe_fibers_config_add | ( | cpl_parameterlist * | list | ) |
Adds parameters for the spectrum selection.
- Parameters:
-
list Parameter list to which parameters are added.
- Returns:
- Nothing.
Definition at line 399 of file gifibers.c.
| GiFibersConfig* giraffe_fibers_config_create | ( | cpl_parameterlist * | list | ) |
Creates a setup structure for the fiber selection.
- Parameters:
-
list Parameter list from which the setup informations is read.
- Returns:
- A newly allocated and initialized setup structure if no errors occurred, or
NULLotherwise.
Definition at line 323 of file gifibers.c.
| void giraffe_fibers_config_destroy | ( | GiFibersConfig * | config | ) |
Destroys a fibers setup structure.
- Parameters:
-
config The setup structure to destroy.
- Returns:
- Nothing.
Definition at line 371 of file gifibers.c.
References GiFibersConfig::spectra.
| GiTable* giraffe_fibers_select | ( | const cpl_frame * | frame, | |
| const GiTable * | reference, | |||
| GiFibersConfig * | config | |||
| ) |
Selects the spectra to process.
- Parameters:
-
frame A frame containing an Ozpoz and a FLAMES fibers table. reference Slit geometry for the current setup defining active fibers. config Setup structure containing the selection of fibers.
- Returns:
- The function returns the table containing the spectra/fibers to process on success, or
NULLotherwise.
If NULL is passed as fiber_setup, or config the respective parameter has no effect on the creation of the result table.
The function expects that frame contains an OzPoz and a fiber table. If this is not the case the function returns an error.
Definition at line 80 of file gifibers.c.
References giraffe_create_spectrum_selection(), giraffe_fiberlist_create(), giraffe_parse_spectrum_selection(), giraffe_table_new(), giraffe_table_set(), GiFibersConfig::nspec, GiExtraction::spectra, and GiFibersConfig::spectra.
| GiTable* giraffe_fibers_setup | ( | const cpl_frame * | frame, | |
| const cpl_frame * | reference | |||
| ) |
Setup a fiber list.
- Parameters:
-
frame Frame for which the fiber list is built. reference Frame containing the reference fiber setup.
- Returns:
- The function returns the created fiber list on success, or
NULLif an error occurred. In the latter case an appropriate error code is also set.
Definition at line 226 of file gifibers.c.
References giraffe_fiberlist_associate(), giraffe_fiberlist_create(), giraffe_fiberlist_load(), giraffe_table_delete(), giraffe_table_new(), and giraffe_table_set().
