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

Synthetic wavelength calibration data #165

Merged
merged 32 commits into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from 28 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
96d8a2c
calibration_data: do away with specreduce_data import and use cached …
tepickering Mar 4, 2023
568e2dc
add test for get_pypeit_data_path
tepickering Mar 6, 2023
0c987aa
add function to load pypeit linelists; rename things to not be as spe…
tepickering Mar 6, 2023
dac5b2b
hardcode repo paths in get_pypeit_data_path
tepickering Mar 7, 2023
250be2e
add tests for loading pypeit linelists
tepickering Mar 7, 2023
0837b29
add missing dep for pyparsing
tepickering Mar 7, 2023
a6119a9
fix docs and specphot tests
tepickering Mar 7, 2023
21fb2c0
add wavelength units to linelist tables
tepickering Mar 10, 2023
16a4060
initial implementation to make a synthetic 2D arc lamp image
tepickering Mar 10, 2023
700cce4
dev notebook edits to explore making synthetic 2d arc images
tepickering Mar 10, 2023
66fc3ec
add support for spectroscopic tilts in the synthetic arc images; fles…
tepickering Mar 10, 2023
5a14ba3
dev notebook edits to explore adding tilts to synthetic arcs
tepickering Mar 10, 2023
8e04330
fix docs for synth_data; add example plot for make_2d_arc_image to do…
tepickering Mar 11, 2023
7015b5f
add tests of make_2d_arc_image
tepickering Mar 11, 2023
9572b65
allow other 1D polynomials that are defined within a domain; only add…
tepickering Mar 11, 2023
4b21b01
dev notebook edits
tepickering Mar 11, 2023
6fba811
add ability to convert vacuum wavelengths used by pypeit to air wavel…
tepickering Mar 12, 2023
f8aa8c4
docstring fixes; add example of using a WCS spectrograph model to cre…
tepickering Mar 12, 2023
22c2555
more dev notebook edits
tepickering Mar 12, 2023
6028e66
codestyle fixes
tepickering Mar 13, 2023
f99aedf
change symbol name of make_2dspec_image to make_2d_trace_image
tepickering Apr 5, 2023
8bff32a
add python 3.11 to tox envlist
tepickering Apr 5, 2023
36bd41a
fix typos found in pr review
tepickering Apr 5, 2023
009acbc
add function to make a 2D spectrum that contains both a trace and emi…
tepickering Apr 5, 2023
714d720
strengthen check for existance of a spectral axis in make_2d_arc_image()
tepickering Apr 5, 2023
5324ae9
add test coverage for make_2d_spec_image and check for invalid wave_unit
tepickering Apr 5, 2023
cdbcb06
codestyle fixes
tepickering Apr 6, 2023
24cabbf
add tests to fill in coverage of synth_data.py
tepickering Apr 6, 2023
4111f74
remove datadeps from CI workflow; add test for python 3.11
tepickering Apr 6, 2023
403b594
remove datadeps from tox.ini; enable remote_data when measuring coverage
tepickering Apr 6, 2023
7b74827
mark the tests that download remote data
tepickering Apr 6, 2023
3eb4344
expunge specreduce_data from setup.cfg
tepickering Apr 6, 2023
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 docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ API Index
.. automodapi:: specreduce.core
:no-inheritance-diagram:

.. automodapi:: specreduce.utils.synth_data
:no-inheritance-diagram:

.. automodapi:: specreduce.tracing
:no-inheritance-diagram:

Expand Down
2 changes: 1 addition & 1 deletion docs/extinction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ as fractional transmission as a function of wavelength:
ax[0].plot(ext.spectral_axis, ext.extinction_mag, label=model)
ax[1].plot(ext.spectral_axis, ext.transmission)
ax[0].legend(fancybox=True, shadow=True)
ax[1].set_xlabel("Wavelength ($\AA$)")
ax[1].set_xlabel("Wavelength (Angstroms)")
ax[0].set_ylabel("Extinction (mag)")
ax[1].set_ylabel("Transmission")
plt.tight_layout()
Expand Down
2 changes: 1 addition & 1 deletion docs/specphot_standards.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ spectra available from MAST, ESO, and the Nearby Supernova factory:
import matplotlib.pyplot as plt
from specreduce.calibration_data import load_MAST_calspec, load_onedstds

s1 = load_MAST_calspec("ltt9491_002.fits", remote=True)
s1 = load_MAST_calspec("ltt9491_002.fits")
s2 = load_onedstds("snfactory", "LTT9491.dat")
s3 = load_onedstds("eso", "ctiostan/ltt9491.dat")

Expand Down
400 changes: 367 additions & 33 deletions notebook_sandbox/dev.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ install_requires =
synphot
matplotlib
photutils
pyparsing

[options.entry_points]

Expand Down
Loading