Skip to main content

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

Metadata

Release files for ASTRA-spectra 1.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ASTRA-spectra 1.3.2
File Size Uploaded Provenance Actions
astra_spectra-1.3.2.tar.gz 51.1 MB Without provenance Details for astra_spectra-1.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ASTRA-spectra 1.3.2
File Interpreter ABI Platform Actions
astra_spectra-1.3.2-py3-none-any.whl Python 3 none any Details for astra_spectra-1.3.2-py3-none-any.whl

Total release size: 102.3 MB

Release files / astra_spectra-1.3.2.tar.gz

Download URL astra_spectra-1.3.2.tar.gz
Size 51.1 MB
Tags Source
SHA-256 checksum
How to use checksums
781e5391da40c08e6f5685ec83cd00612219a79f4c5cf872b182290d06cd5579
BLAKE2b-256 checksum
How to use checksums
c36a576474767d4bea4a2570b265602be2f2e4f8fb7f5d1a61ecc2492526a03e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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}

Release files / astra_spectra-1.3.2-py3-none-any.whl

Download URL astra_spectra-1.3.2-py3-none-any.whl
Size 51.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ba4f1060b00dc87ac14d368368f202243d0a701ba8a3a3f255e7f192d03f67df
BLAKE2b-256 checksum
How to use checksums
1c2d6acea913720f1fd8a431f1ff9db54023ffd96c180489b02557e6ba4ef820
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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}

Security for ASTRA-spectra 1.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page