PHOENIX model spectrum retriever
Project description
Basic usage
Let’s get a Sun-like spectrum:
from expecto import get_spectrum
spectrum = get_spectrum(
T_eff=5800, log_g=4.5, cache=False
)
Want a plot of the spectrum?
# Plot the spectrum:
import matplotlib.pyplot as plt
from astropy.visualization import quantity_support
with quantity_support():
plt.plot(spectrum.wavelength, spectrum.flux)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
expecto-0.1.0.tar.gz
(10.0 kB
view hashes)