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.2.9

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.2.9
File Size Uploaded
astra_spectra-1.2.9.tar.gz 51.1 MB Details

Built distribution (wheel)

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

Total release size: 102.2 MB

Release files / astra_spectra-1.2.9.tar.gz

Download URL astra_spectra-1.2.9.tar.gz
Size 51.1 MB
Tags Source
SHA-256 checksum
How to use checksums
2de9b04337c48472d3482af593af9cf0d78cddef43b5500185cb7ae409d1a5d8
BLAKE2b-256 checksum
How to use checksums
0c6d1f89b3ad52d4b8d23bee06d8166f72fd55b926319f44c423695cb1882617
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","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.2.9-py3-none-any.whl

Download URL astra_spectra-1.2.9-py3-none-any.whl
Size 51.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
49de33e06c79a5c63e8ac3c06245aaa99dac74461eb7566f681b5203c5057b0c
BLAKE2b-256 checksum
How to use checksums
33d60c2252e6d3f7f288139f0c4d83a86c25e42d17a4c4818fc1b63cfe06936b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","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 history Release notifications | RSS feed

This release

1.2.9 This release

2 release files

1.2.8

2 release files

1.2.7

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.2

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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