Defines | |
| #define | MIDAS_BUG 0 |
Functions | |
| cpl_error_code | sinfo_baryvel (const cpl_propertylist *raw_header, double *bary_corr, double *helio_corr) |
| Compute velocity correction. | |
Compute barycentric, heliocentric velocity corrections
The code in this source file is a 1-to-1 translation of MIDAS COMPUT/BARYCOR as defined in /prim/general/src/compxy.for (only the necessary parts were translated). The code is not meant to be particularly readable/maintainable. To understand the computation the best starting point is probably P. Stumpff, A&A Suppl. Ser. 41, pp. 1-8 (1980)
| #define MIDAS_BUG 0 |
To get the exact same behaviour as MIDAS this should be define'd to 1. (Fixing it does not seem to make a difference in the resulting numbers but do it anyway)
Definition at line 312 of file sinfo_baryvel.c.
| cpl_error_code sinfo_baryvel | ( | const cpl_propertylist * | raw_header, | |
| double * | bary_corr, | |||
| double * | helio_corr | |||
| ) |
Compute velocity correction.
| raw_header | input FITS header | |
| bary_corr | (output) baryocentric correction | |
| helio_corr | (output) heliocentric correction |
Definition at line 984 of file sinfo_baryvel.c.
References sinfo_msg_debug, sinfo_pfits_get_dec(), sinfo_pfits_get_mjdobs(), and sinfo_pfits_get_ra().
1.6.1