From 8a250aadbe5099d045b0a1191f4f833c7989e7d6 Mon Sep 17 00:00:00 2001 From: Frederick Davies Date: Sun, 16 Jul 2023 21:02:51 +0200 Subject: [PATCH 1/2] air2vac correction for xshooter standard files --- pypeit/core/flux_calib.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pypeit/core/flux_calib.py b/pypeit/core/flux_calib.py index 339e0e7dd9..dabffc3b62 100644 --- a/pypeit/core/flux_calib.py +++ b/pypeit/core/flux_calib.py @@ -27,6 +27,7 @@ from pypeit.wavemodel import conv2res from pypeit.core.wavecal import wvutils from pypeit.core import fitting +from pypeit.core import wave from pypeit import data @@ -199,6 +200,8 @@ def find_standard_file(ra, dec, toler=20.*units.arcmin, check=False): std_dict['wave'] = std_spec['col1'] * units.AA std_dict['flux'] = std_spec['col2'] / PYPEIT_FLUX_SCALE * \ units.erg / units.s / units.cm ** 2 / units.AA + # Xshooter standard files use air wavelengths, convert them to vacuum + std_dict['wave'] = wave.airtovac(std_dict['wave']) elif sset == 'calspec': std_dict['std_source'] = sset std_spec = io.fits_open(fil)[1].data From 8af4c6aeaccddacc99286342837e07feac7cbe3d Mon Sep 17 00:00:00 2001 From: Frederick Davies Date: Thu, 20 Jul 2023 21:17:29 +0200 Subject: [PATCH 2/2] readme edit --- pypeit/data/standards/xshooter/xshooter_info.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/pypeit/data/standards/xshooter/xshooter_info.txt b/pypeit/data/standards/xshooter/xshooter_info.txt index 089f8c95ed..959f9f8a78 100644 --- a/pypeit/data/standards/xshooter/xshooter_info.txt +++ b/pypeit/data/standards/xshooter/xshooter_info.txt @@ -10,6 +10,7 @@ #The flux distribution over the full X-shooter range 3000 – 25000A is tabulated. #The fluxes are sampled (at 0.1A [< 1000A] and 0.2A [>10000A]). #The flux tabluations are in units of (ergs cm-2 s-1 A-1). +#NOTE: The wavelengths are in air, as output by the ESO pipeline. #http://www.eso.org/sci/observing/tools/standards/spectra/Xshooterspec.html File Name RA_2000 DEC_2000 V_MAG TYPE fGD71.dat GD71 05:52:27.61 +15:53:13.8 13.03 DA1