Fiber Positioner Utilities
Functions | |
| cpl_table * | giraffe_fiberlist_create (const cxchar *filename, cxint nspec, const cxint *spectra) |
| Creates the fiber table. | |
| GiTable * | giraffe_fiberlist_load (const cxchar *filename, cxint dataset, const cxchar *tag) |
| Load a fiber table from a file. | |
| cxint | giraffe_fiberlist_save (GiTable *fibers, const cxchar *filename) |
| Save a fiber table to a file. | |
| cxint | giraffe_fiberlist_attach (cpl_frame *frame, GiTable *fibers) |
| Attach a fiber table to a frame. | |
| cxint | giraffe_fiberlist_compare (const GiTable *fibers, const GiTable *reference) |
| Compare two fiber lists. | |
| cxint | giraffe_fiberlist_associate (GiTable *fibers, const GiTable *reference) |
| Associate a fiberlist with a reference list. | |
| const cxchar * | giraffe_fiberlist_query_index (const cpl_table *fibers) |
| Query a fiber list for the name of the fiber reference index column. | |
| cxint * | giraffe_parse_spectrum_selection (const cxchar *selection, cxint *nspec) |
| Parses a spectrum selection string. | |
Detailed Description
TBDFunction Documentation
|
||||||||||||
|
Associate a fiberlist with a reference list.
Definition at line 973 of file gifiberutils.c. References giraffe_table_get(). Referenced by giraffe_fibers_setup(). |
|
||||||||||||
|
Attach a fiber table to a frame.
Definition at line 835 of file gifiberutils.c. References giraffe_frame_attach_table(), giraffe_table_delete(), giraffe_table_duplicate(), giraffe_table_get(), giraffe_table_get_properties(), and giraffe_table_set_properties(). |
|
||||||||||||
|
Compare two fiber lists.
Definition at line 903 of file gifiberutils.c. References giraffe_table_get(). |
|
||||||||||||||||
|
Creates the fiber table.
NULL only the spectra listed in spectra are used to build the fiber table.
Definition at line 92 of file gifiberutils.c. References giraffe_error_pop(), giraffe_error_push(), giraffe_get_mode(), giraffe_table_delete(), giraffe_table_get(), giraffe_table_load(), and giraffe_table_new(). Referenced by giraffe_fibers_setup(). |
|
||||||||||||||||
|
Load a fiber table from a file.
NULL, it is used to validate the data set with the number dataset to contain a fiber setup. In this case tag must match the data set name to be considered as a valid fiber setup.The fiber tables which can be loaded using this function have to be created with giraffe_fiberlist_create().
Definition at line 705 of file gifiberutils.c. References giraffe_error_pop(), giraffe_error_push(), giraffe_table_delete(), giraffe_table_load(), and giraffe_table_new(). Referenced by giraffe_fibers_setup(). |
|
|
Query a fiber list for the name of the fiber reference index column.
Definition at line 1117 of file gifiberutils.c. Referenced by giraffe_slitgeometry_create(), and giraffe_transmission_compute(). |
|
||||||||||||
|
Save a fiber table to a file.
Definition at line 758 of file gifiberutils.c. References giraffe_table_get(), giraffe_table_get_properties(), and giraffe_table_set_properties(). |
|
||||||||||||
|
Parses a spectrum selection string.
The string to be parsed is a comma separated list of individual spectrum indices (the position of the spectrum within the slit), index ranges with a following, optional step size. Spectra may be excluded explicitly by listing their indices in the same way as described for selected spectra. If spectra should be excluded the list of exclusions must follow the list of selected spectra separated by a semicolon:
selection = "1,3,5,10-20,30-60:2;12-15,32";
The created array can be deallocated by a call to cx_free(). Definition at line 1168 of file gifiberutils.c. References gi_warning(). Referenced by giraffe_fibers_select(). |
