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
TBDFunction 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.
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 GiRvCorrection::bc, GiRvCorrection::gc, giraffe_error_pop(), giraffe_error_push(), giraffe_image_get_properties(), giraffe_rvcorrection_compute(), giraffe_table_get(), and GiRvCorrection::hc.