Fiber Selection
Functions | |
GiTable * | giraffe_fibers_select (const cpl_frame *frame, 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 373 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
NULL
otherwise.
Definition at line 297 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 345 of file gifibers.c.
References GiFibersConfig::spectra.
GiTable* giraffe_fibers_select | ( | const cpl_frame * | frame, | |
GiFibersConfig * | config | |||
) |
Selects the spectra to process.
- Parameters:
-
frame A frame containing an Ozpoz and a FLAMES fibers table. config Setup structure containing the selection of fibers.
- Returns:
- The function returns the table containing the spectra/fibers to process on success, or
NULL
otherwise.
NULL
is passed as config it is not used for 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 73 of file gifibers.c.
References 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
NULL
if an error occurred. In the latter case an appropriate error code is also set.
Definition at line 200 of file gifibers.c.
References giraffe_fiberlist_associate(), giraffe_fiberlist_create(), giraffe_fiberlist_load(), giraffe_table_delete(), giraffe_table_new(), and giraffe_table_set().