Skip to main content

Interface to open stellar spectra and construct stellar and telluric models

Project description

ASTRA

status

Welcome to the repository of ASTRA (Astrophysical Spectral Tools for Retrieval & Analysis).

The main goal of this project is to standardize the handling of stellar spectra for both RV extraction tools and spectral analysis tools. In order to do so, ASTRA provides:

  1. Common interface to interact with stellar spectra of different state-of-the-art instruments
  2. Framework to construct stellar templates from data, following best practices
  3. Framework to mask telluric features from stellar spectra
  4. Implement utility methods to interpolate, normalize and smooth stellar spectra

For information on installation, usage, and contribution check the official documentation.

If you use it, please cite the paper:

@ARTICLE{2026JOSS...11.9413S,
       author = {{Silva}, Andr{\'e} and {Faria}, J. and {Santos}, Nuno and {Sousa}, S{\'e}rgio and {Viana}, Pedro and {Martins}, J.},
        title = "{ASTRA: A Python Package for Cross-Instrument Stellar and Telluric Template Construction}",
      journal = {The Journal of Open Source Software},
     keywords = {astronomy, Python, Cython, Instrumentation and Methods for Astrophysics, Earth and Planetary Astrophysics, Solar and Stellar Astrophysics},
         year = 2026,
        month = jan,
       volume = {11},
       number = {117},
          eid = {9413},
        pages = {9413},
          doi = {10.21105/joss.09413},
archivePrefix = {arXiv},
       eprint = {2601.10439},
 primaryClass = {astro-ph.IM},
       adsurl = {https://ui.adsabs.harvard.edu/abs/2026JOSS...11.9413S},
      adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

Installation

ASTRA is currently available in python 3.11 and python 3.12, and it can be installed either through

  1. Pypi
pip install ASTRA-spectra
  1. Github
git clone git@github.com:Kamuish/ASTRA.git
cd ASTRA
pip install . 

By default, ASTRA does not install Telfit as it will only be needed for the masking of the telluric features. If this is the goal, it must be installed manually.

Contribution guidelines

Management of any issues to the code, as well as external contribution is done through the github repository

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

astra_spectra-1.2.7.tar.gz (51.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

astra_spectra-1.2.7-py3-none-any.whl (51.1 MB view details)

Uploaded Python 3

File details

Details for the file astra_spectra-1.2.7.tar.gz.

File metadata

  • Download URL: astra_spectra-1.2.7.tar.gz
  • Upload date:
  • Size: 51.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for astra_spectra-1.2.7.tar.gz
Algorithm Hash digest
SHA256 636b72b84cf56bec6bd4f69515978cbd9146e7bac528cefd5418a26bf67d9b47
MD5 1f44694cd0fc5f42d8da08f151a4c1b3
BLAKE2b-256 c4144f0076d321e2f94f86a74d1221042f0cc147df06691287f46b17f84e3ce9

See more details on using hashes here.

File details

Details for the file astra_spectra-1.2.7-py3-none-any.whl.

File metadata

  • Download URL: astra_spectra-1.2.7-py3-none-any.whl
  • Upload date:
  • Size: 51.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.12 {"installer":{"name":"uv","version":"0.11.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for astra_spectra-1.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ac29e214280c00eb0630416fbcc37a96a59e51d8e9c4235ef5c10949b6d6552b
MD5 2d985742f177432e427b889a0bd0a37b
BLAKE2b-256 37dd4736b243184e0d6e1907767de97fcd3deb1e373a78518f8739898c93984c

See more details on using hashes here.

Supported by

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