Skip to main content

PHOENIX model spectrum retriever

Project description

http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat https://github.com/bmorris3/expecto/workflows/CI%20Tests/badge.svg Documentation Status expecto logo

Pure Python package for retrieving PHOENIX model stellar spectra via FTP. Spectra are returned as specutils.Spectrum1D objects.

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
)

and let’s plot that 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.2.tar.gz (25.9 kB view details)

Uploaded Source

File details

Details for the file expecto-0.1.2.tar.gz.

File metadata

  • Download URL: expecto-0.1.2.tar.gz
  • Upload date:
  • Size: 25.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for expecto-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1a63c7809cd860882b9cadac6ddcaa06a44c74666f790915451e3c5ab9d1efba
MD5 f1d4ee553fc99a7b84a2f8bf6fa029f4
BLAKE2b-256 96b5f6a3e806c54099c9283946a4e47d47129d2146d8e723635eabbe142a2d53

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page