X-shooter Pipeline Reference Manual 3.8.15
Macros | Functions
xsh_baryvel.c File Reference
#include <xsh_baryvel.h>
#include <xsh_parameters.h>
#include <xsh_pfits.h>
#include <xsh_utils.h>
#include <xsh_error.h>
#include <xsh_msg.h>
#include <irplib_sdp_spectrum.h>
#include <cpl.h>
#include <math.h>

Go to the source code of this file.

Macros

#define MIDAS_BUG   0
 

Functions

static void deg2dms (double in_val, double *degs, double *minutes, double *seconds)
 convert degrees -> degrees, minutes, seconds
 
static void deg2hms (double in_val, double *hours, double *minutes, double *seconds)
 convert hours -> degrees, minutes, seconds
 
static void compxy (double inputr[19], char inputc[4], double outputr[4], double utr, double mod_juldat)
 Compute velocity correction.
 
static void barvel (double DJE, double DEQ, double DVELH[4], double DVELB[4])
 compute rectangular heliocentric and barycentric components of the earth's orbital velocity
 
void xsh_baryvel (const cpl_propertylist *raw_header, double *bary_corr, double *helio_corr)
 Compute velocity correction.
 
double xsh_baryvel_correct_value (double value, double correction)
 
double xsh_baryvel_get_correction_factor (cpl_propertylist *keys, xsh_bary_corr_param *bary_corr_param)
 
cpl_error_code xsh_baryvel_adjust_header (cpl_propertylist *header, const char *keyword, double barycorr)
 
cpl_error_code xsh_baryvel_set_specsys (cpl_propertylist *header, xsh_bary_corr_param *bary_param)
 
cpl_error_code xsh_baryvel_correct_header (cpl_propertylist *header, cpl_propertylist *bary_header, xsh_bary_corr_param *bary_param)