expecto-0.1.2
توضیحات
PHOENIX model spectrum retriever
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | expecto-0.1.2 |
| نام | expecto |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Brett M. Morris |
| ایمیل نویسنده | morrisbrettm@gmail.com |
| آدرس صفحه اصلی | https://github.com/bmorris3/expecto |
| آدرس اینترنتی | https://pypi.org/project/expecto/ |
| مجوز | BSD 3-Clause |
=======
expecto
=======
.. image:: http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat
:target: http://www.astropy.org/
.. image:: https://github.com/bmorris3/expecto/workflows/CI%20Tests/badge.svg
:target: https://github.com/bmorris3/expecto/actions
.. image:: https://readthedocs.org/projects/expecto/badge/?version=latest
:target: https://expecto.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://github.com/bmorris3/expecto/blob/main/docs/assets/logo.svg
:alt: expecto logo
:width: 200
:align: right
Pure Python package for retrieving
`PHOENIX model stellar spectra <https://phoenix.astro.physik.uni-goettingen.de/?>`_
via FTP. Spectra are returned as
`specutils.Spectrum1D <https://specutils.readthedocs.io/en/stable/api/specutils.Spectrum1D.html#specutils.Spectrum1D>`_
objects.
Basic Usage
^^^^^^^^^^^
Let's get a Sun-like spectrum:
.. code-block:: python
from expecto import get_spectrum
spectrum = get_spectrum(
T_eff=5800, log_g=4.5, cache=False
)
and let's plot that spectrum:
.. code-block:: python
import matplotlib.pyplot as plt
from astropy.visualization import quantity_support
with quantity_support():
plt.plot(spectrum.wavelength, spectrum.flux)
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl expecto-0.1.2:
pip install expecto-0.1.2.whl
نصب پکیج tar.gz expecto-0.1.2:
pip install expecto-0.1.2.tar.gz