Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Air2vac correction for XShooter standards #1633

Merged
merged 3 commits into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pypeit/core/flux_calib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pypeit/data/standards/xshooter/xshooter_info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down