Velocity correction

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.

Detailed Description

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 Documentation

#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.


Function Documentation

cpl_error_code sinfo_baryvel ( const cpl_propertylist *  raw_header,
double *  bary_corr,
double *  helio_corr 
)

Compute velocity correction.

Parameters:
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().


Generated on 8 Mar 2011 for SINFONI Pipeline Reference Manual by  doxygen 1.6.1