Open sousasag opened 7 years ago
The default LAMP for FEROS is LAMP3 and LAMP1 is almost not used anymore. However, I think a possible workaround will be to slightly modify lines 234 and 238 of ferosutils.py:
if h[0].header['HIERARCH ESO INS CALMIRR2 ID'] == 'LAMP1':
to
if h[0].header['HIERARCH ESO INS CALMIRR2 ID'] == 'LAMP3':
and
elif h[0].header['HIERARCH ESO INS CALMIRR2 ID'] == 'LAMP3':
to
elif h[0].header['HIERARCH ESO INS CALMIRR2 ID'] == 'LAMP1':
Hi,
That did the trick. I wasn't sure if these different WAVE would required different procedure. Apparently not, which leads me to the question, why make the distinction on the file selection? I guess, for a given dataset you will either have LAMP1 or LAMP3.
And on another subject. Some question/sugestions:
Thanks!
Wavelength Calibration for PFS is not working properly or I am missing something. I have a Lamp spectrum with binning '1x1' and 64 orders whereas in the ceres line list it has 66 orders. Also, the orders in my data start from the 0th order 3896-3938 A and 63rd order from 6540-6611A. This is inverse in the line list for a lamp. Can you please suggest to me how to get a proper wavelength solution? Thanks.
Traceback (most recent call last): File "ferospipe.py", line 569, in
fref = ThAr_Ne_ref[sorted_ThAr_Ne_dates[0]]
IndexError: index 0 is out of bounds for axis 0 with size 0
I was trying to reduce some rather old FEROS data (Sep 2004). And from what I debugged from the code, it seems that the problem is connected with the WAVE files that I have for this data.
During the classification of the files, it seems these WAVEs are stored some where, but then the wavelenght calibration seems to be only working when you have WAVEs with LAMP3.
Is this something that can be easily fixed?