serval_header_rvcorrection_lisobs

raccoon.spectrographutils.serval_header_rvcorrection_lisobs(lisobs, inst, source='header', servalin=None, obj=None, notfound=nan, ext=0, join='outer')
Parameters:
source{‘header’, ‘serval’, ‘serval_header’, ‘none’} or filename

Source from which to get the RV correction. - header: get it from FITS header. Can only get BERV and drift. - serval: get it from SERVAl outputs. Get BERV, drift and sa. - serval_header: try to get it from SERVAL, if not possible or nan, get it from header. If serval or serval_header, must provide servalin. - none: rv corrections are 0. - filename containing the RV corrections. Columns option a): 0) observation name, rest of columns: corrections with header, to be loaded with pandas dataframe. Header names have to be: ‘berv’, ‘sa’, ‘drift’, ‘otherdrift’ and optionally the errors. Not all columns are necessary. Columns option b): 0) observation name, 1) rv shift (which is considered as ‘other drift’) 2) rv shift error (optional). The columns not present will be 0.

servalinstr or pd.DataFrame

Path to directory containing SERVAL data or pandas dataframe with the necessary data (berv, drift and sa) already loaded.

objstr

Tag of the SERVAL outputs, e.g. obj.rvc.dat. If None (default), try to get it from the files in servalin directly.