Hi,
I was trying to reduce some HARPS data, and realized that some of the data were not being processed. The issue is that the variable mode is set to 'HARPS' in line 23 in harpsutils.py, thus making just HARPS only (HAM mode) to be recognized in harpsutils.py line line 64. EGGS mode also fails.
It should be relatively simple to expand the mode variable to be np.array(['HARPS', 'HARPS+NIRPS', 'EGGS']) and replace h[0].header['HIERARCH ESO INS MODE'] == mode (line 64) to something like h[0].header['HIERARCH ESO INS MODE'] in mode. I am not sure if other parts of the code uses mode as a string, hence for now I just replaced line 64 with the line below.
if h[0].header['HIERARCH ESO INS MODE'] == mode or h[0].header['HIERARCH ESO INS MODE'] == 'HARPS+NIRPS' or h[0].header['HIERARCH ESO INS MODE'] == 'EGGS':
Cheers
Douglas
Hi,
I was trying to reduce some HARPS data, and realized that some of the data were not being processed. The issue is that the variable mode is set to 'HARPS' in line 23 in harpsutils.py, thus making just HARPS only (HAM mode) to be recognized in harpsutils.py line line 64. EGGS mode also fails.
It should be relatively simple to expand the mode variable to be np.array(['HARPS', 'HARPS+NIRPS', 'EGGS']) and replace
h[0].header['HIERARCH ESO INS MODE'] == mode(line 64) to something likeh[0].header['HIERARCH ESO INS MODE'] in mode. I am not sure if other parts of the code uses mode as a string, hence for now I just replaced line 64 with the line below.if h[0].header['HIERARCH ESO INS MODE'] == mode or h[0].header['HIERARCH ESO INS MODE'] == 'HARPS+NIRPS' or h[0].header['HIERARCH ESO INS MODE'] == 'EGGS':Cheers
Douglas