HiromonGON / GaiaXPcorrection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GaiaXPcorrection

GaiaDR3XPspectracorrectionV1 is an astronomy Python package to provide a correction for the Gaia DR3 XP spectra. The corrected spectra can significantly eliminate the systematic errors of the original Gaia DR3 XP spectra, please refer to our paper (Huang et al. 2024) for more details.

We can give robust corrections for sources in the roughly following range: −0.5 < BP − RP < 2 3 < G < 17.5  E(B − V) < 0.8 Sources that do not fall into this range are not tested for the correctness of the corrections given by the correction package.

How to install

From source

This package can be installed from the source code after downloading it from the git repo: https://github.com/HiromonGON/GaiaXPcorrection

or download the source code from the permalink: https://doi.org/10.12149/101375

Quick start

Correction for one spectrum

from GaiaDR3XPspectracorrectionV1 import Gaia_Correction_V1 [flux_out,caution,C2,C3] = Gaia_Correction_V1.correction(flux_origin,G,error,Truncation=False,absolute_correction=True)

Or refer to example.py

More information for the usage of this package

English Version in https://github.com/HiromonGON/GaiaXPcorrection/blob/main/GaiaDR3XPspectracorrectionV1/readme

Chinese Version in https://github.com/HiromonGON/GaiaXPcorrection/blob/main/GaiaDR3XPspectracorrectionV1/%E8%87%AA%E8%BF%B0%E6%96%87%E4%BB%B6

About


Languages

Language:Python 100.0%