Astrometric Utilities
Functions | |
cxint | giraffe_add_rvcorrection (GiTable *fibers, const GiImage *spectra) |
Add the barycentric and heliocentric corrections to the given fiber setup. |
Detailed Description
TBD
Function Documentation
cxint giraffe_add_rvcorrection | ( | GiTable * | fibers, | |
const GiImage * | spectra | |||
) |
Add the barycentric and heliocentric corrections to the given fiber setup.
- Parameters:
-
fibers The fiber setup to update spectra Reference image.
- Returns:
- The function returns
0
on success, or a non-zero value otherwise.
The function takes the information about the telescope location, the observation time and the epoch from the reference image image and computes the barycentric, heliocentric and geocentric corrections for each object fiber in the fiber setup fibers. The computed corrections are added to fibers in the columns BCORR
, HCORR
and GCORR
respectively. The computed corrections are in units of km/s.
The position of the object fibers is taken from the fiber configuration fibers. In case of an Argus observation, where the individual fiber positions a are not given in the fiber configuration, the telescope pointing direction is used for all Argus fibers.
If a property, which is needed to compute the corrections, is not found in the property list of the reference image the function returns a positive value. On any other error a negative value is returned.
Definition at line 76 of file giastrometry.c.
References giraffe_image_get_properties(), giraffe_rvcorrection_compute(), and giraffe_table_get().