drs_e2ds_inst

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

Try to get the instrument (HARPS or HARPS-N) from the header keywords. If fail, return outfail, which by default is NaN.

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’}

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