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 details)
File details
Details for the file expecto-0.1.0.tar.gz
.
File metadata
- Download URL: expecto-0.1.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae49103179f210385d24b545bbbf32c232eddaf4d9e36d029e47c58a9c8419b6 |
|
MD5 | ca96d792cd400c59254186845e2a6306 |
|
BLAKE2b-256 | 62dfd0060abe024b6bfc6d9238b284acfd69741eec352a0fe875acc3bb98d9c7 |