drs_e2ds_int_kwinst

raccoon.harpsutils.drs_e2ds_int_kwinst(filin, outfail=nan, ext=0)

Get the instrument name (‘harpn’ or ‘harps’) and the corresponding header keyword start (‘HIERARCH TNG ‘ or ‘HIERARCH ESO ‘).

Uses drs_e2ds_inst to get the instrument and headerkwinst to get the header keyword start.

Parameters:
filinstr or astropy header object (astropy.io.fits.header.Header)

FITS file from which to read the header or astropy header object (faster if header already loaded before)

Returns:
inst{‘harpn’, ‘harps’, np.nan}

Instrument name. Returns NaN if failed to find instrument in header keywords (may indicate wrong file).

kwinst{‘TNG’, ‘ESO’}