XPy-Teal: XP Tool for Emission and Absorption Lines
Project description
🌌 XPy-Teal: XP Tool for Emission and Absorption Lines
XPy-Teal is a Python version of the tool developed by M. Weiler et al. 2023 for the analysis of Gaia DR3 XP spectra.
This repository provides a modular Python toolkit for downloading, processing, and analyzing Gaia DR3 XP (BP/RP) spectra.
It includes tools for XP data retrieval via the Gaia Archive, data calibration, equivalent width measurement, and mathematical utilities for line analysis.
⚠️ Note: The current version only supports the Narrow Line Approximation for equivalent width measurements. See the original paper for more details.
Column Description
Hα line output columns
-
Halpha_W
Equivalent width of the Hα line (nm). Note the sign convention: positive = emission, negative = absorption. -
Halpha_Werror
Uncertainty on the equivalent width (nm). -
Halpha_p
Significance of the detected extremum associated with the Hα line. -
Halpha_D
Line-width parameter (see Eq. 89 in Weiler et al. 2023). Values ≫ 1 indicate a broad line. -
Halpha_order
Derivative order of the detected extremum (0 or 2). If no extremum is detected, this field is set touLand an upper limit on the equivalent width is provided instead.
Notes
- Units are in nanometres (nm) unless otherwise stated.
- The same column naming convention is used for other requested lines.
⚙️ Installation
⚡ Option 1 — Using uv (recommended for speed)
uv is a fast, modern Python package manager built by Astral — it handles environments, dependencies, and builds efficiently.
🪄 Step 1 — Install uv
If you don’t have it already, install with:
pip install uv
or (recommended):
curl -LsSf https://astral.sh/uv/install.sh | sh
⚙️ Step 2 — Install XPy-Teal In the root of this repository, run:
uv pip install xpy-teal
🚀 Step 3 — uv sync
uv sync
🚀 Usage
Here is a simple example of how to use XPy-Teal to run the analysis pipeline on a table of source IDs from Gaia DR3.
from xpy_teal import xpy_teal_pipeline as xpy
results = xpy.run_pipeline(sources_table)
📄 License
GNU GENERAL PUBLIC LICENSE
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xpy_teal-1.1.4.tar.gz.
File metadata
- Download URL: xpy_teal-1.1.4.tar.gz
- Upload date:
- Size: 365.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46d0971999d5091c94c0eb7f5e3ab822aadbc255891bca208a29731bcd0af89a
|
|
| MD5 |
a3f80692519919a9a7fc8c4d1eb75309
|
|
| BLAKE2b-256 |
5f799e0748ba55a3db733732c1d70420b6ec28ce2e55b1a7883ef97751d6df91
|
File details
Details for the file xpy_teal-1.1.4-py3-none-any.whl.
File metadata
- Download URL: xpy_teal-1.1.4-py3-none-any.whl
- Upload date:
- Size: 272.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8dd935140a5e07539a2c5c74f9b4ddeac10d1f46a4acf1bf9da4f11f3bbb22ca
|
|
| MD5 |
5f86702dde0087d69bc492d592d388c1
|
|
| BLAKE2b-256 |
6f48de385e78119a02f4c12bf9957f59c8ae7f11a3d5679244b10434ad4d3f3b
|