![]() |
GIRAFFE Pipeline Reference Manual |
|||
|
|
Tables
Detailed DescriptionTBD Function Documentation◆ giraffe_table_add_info()
Add additional frame information to a table. TBD Definition at line 836 of file gitable.c. References giraffe_add_frameset_info(), giraffe_add_recipe_info(), and giraffe_table_get_properties(). ◆ giraffe_table_attach()
Attach a Giraffe table to a file.
The Giraffe table self is attached to the file filename as data set number position. If the data set identifier id is not Definition at line 749 of file gitable.c. References giraffe_table_get(), and giraffe_table_get_properties(). ◆ giraffe_table_clear()
◆ giraffe_table_copy_matrix()
Copies matrix elements into a table.
The function copies the matrix elements of the source matrix matrix into consecutive columns of the table table starting at the column indicated by name. The matrix elements are transferred to the table in the following way. The columns of matrix will be the columns of the table and their rows will be the elements of the table column. The first row of the table will contain the elements of the first row of the matrix and so on. In order to succeed, the target table's number of rows must match the number of matrix rows, and the number of table columns must not be less than the number of matrix columns (depending on the provided start column). If name is Definition at line 259 of file gitable.c. References giraffe_table_get(). ◆ giraffe_table_create()
Creates a Giraffe table from a table and a property list.
The function creates a new Giraffe table from an existing CPL table table. The source table is copied. Optionally a property list may be specified, which is attached (copied) to the newly created table if properties is not Definition at line 115 of file gitable.c. References giraffe_table_delete(), and giraffe_table_new(). ◆ giraffe_table_delete()
Destroys a Giraffe table.
The function deallocates the memory used by self. Definition at line 154 of file gitable.c. Referenced by giraffe_calibrate_slit(), giraffe_fiberlist_attach(), giraffe_fibers_setup(), and giraffe_table_create(). ◆ giraffe_table_duplicate()
Duplicate a Giraffe table.
The function duplicates an existing table Definition at line 176 of file gitable.c. References giraffe_table_get(), and giraffe_table_get_properties(). Referenced by giraffe_calibrate_slit(), and giraffe_fiberlist_attach(). ◆ giraffe_table_get()
Get the table data from a Giraffe table.
The function returns a pointer to self's table data. The pointer might be a Definition at line 433 of file gitable.c. Referenced by giraffe_add_rvcorrection(), giraffe_calibrate_flux(), giraffe_calibrate_slit(), giraffe_create_spectrum_selection(), giraffe_extract_spectra(), giraffe_fiberlist_associate(), giraffe_fiberlist_attach(), giraffe_fiberlist_clear_index(), giraffe_fiberlist_compare(), giraffe_fiberlist_save(), giraffe_fov_build(), giraffe_frame_attach_table(), giraffe_grating_create(), giraffe_grating_setup(), giraffe_localize_spectra(), giraffe_slitgeometry_create(), giraffe_slitgeometry_load(), giraffe_table_attach(), giraffe_table_copy_matrix(), giraffe_table_duplicate(), giraffe_table_save(), giraffe_table_set(), and giraffe_wlsolution_create(). ◆ giraffe_table_get_properties()
Gets the table properties.
The function returns a pointer to properties self contains. The returned pointer might be a Definition at line 489 of file gitable.c. Referenced by giraffe_fiberlist_attach(), giraffe_fiberlist_save(), giraffe_frame_attach_table(), giraffe_frame_create_table(), giraffe_table_add_info(), giraffe_table_attach(), giraffe_table_duplicate(), giraffe_table_save(), and giraffe_wlsolution_create(). ◆ giraffe_table_is_empty()
Check whether a Giraffe table is empty.
The function checks whether self contains any table data or properties. A table is empty if it contains no data and no properties. ◆ giraffe_table_load()
Reads a data set from a file into a Giraffe table.
The function reads the data set number position from the file filename, allocates a new Giraffe table and fills it with the data set. Data sets are counted from zero. If id, the data set identifier, is not ◆ giraffe_table_new()
Creates a new, empty Giraffe table.
The function allocates memory for a new table and initializes it to be empty. Definition at line 85 of file gitable.c. Referenced by giraffe_fiberlist_create(), giraffe_fiberlist_load(), giraffe_fibers_select(), giraffe_fibers_setup(), giraffe_slitgeometry_load(), and giraffe_table_create(). ◆ giraffe_table_save()
Write a Giraffe table to a file.
The Giraffe table self is written to the file filename. Currently a Giraffe table can only be written as a FITS table with the table data in the primary data unit. The image properties are written/converted to the primary FITS header. Definition at line 636 of file gitable.c. References giraffe_table_get(), and giraffe_table_get_properties(). ◆ giraffe_table_set()
Sets the table data.
The function copies the table data of table into self. Definition at line 456 of file gitable.c. References giraffe_table_get(). Referenced by giraffe_fiberlist_associate(), giraffe_fibers_select(), and giraffe_fibers_setup(). ◆ giraffe_table_set_properties()
Attaches a property list to an table.
The function stores a copy of the property list properties in the table container self. If there is already a property list stored in the container self, it is replaced with the reference properties. If the properties cannot be copied, the function returns an error. Definition at line 516 of file gitable.c. Referenced by giraffe_fiberlist_attach(), and giraffe_fiberlist_save(). |