Tools for calculate campbell and covmat from Gaia CU4 sources
Project description
nsstools
This python tools has two methods that applies on nss_two_body_orbit Gaia DR3 solutions
- covmat: for all kind of nss_solution_type, converts the correlation matrix+uncertainties to the covariance matrix of the solution
- campbell: for a NSS solution that is either astrometric Orbital* or AstroSpectroSB1, converts the Thiele-Innes orbital elements to the Campbell elements and propagates the uncertainties. Ref: Halbwachs et al., 2022, Gaia Data Release 3. Astrometric binary star processing, Astronomy and Astrophysics, Appendix A input: dataframe output: dataframe
A R version is available here.
Installation
with pip
pip3 install --user nsstools
with setup
python3 setup.py install
Usage
See the notebook
import pandas as pd
from nsstools import NssSource
nss = pd.read_csv("tests/data/nss_two_body_orbit_sample.csv.gz")
source_index = 0 # position of the source in the csv file
source = NssSource(nss, indice=source_index)
print(source.covmat())
print(source.campbell())
Authors and acknowledgment
Authors: Nicolas Leclerc from a code by Jean-Louis Halbwachs and Carine Babusiaux. Reference: Halbwachs et al., 2022, Gaia Data Release 3. Astrometric binary star processing, Astronomy and Astrophysics, Appendix A and B. R version: https://gricad-gitlab.univ-grenoble-alpes.fr/ipag-public/gaia/nsstools
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nsstools-0.1.11.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for nsstools-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 469efdcc9e469add4175e6c3a47f12f9d98baf58b406526f6114a77469b15372 |
|
MD5 | d3a05bf0b6ca3245317a0a6b241924f2 |
|
BLAKE2b-256 | 53add9d59e264e8033108f2cc90c1dc7af3861445a59f28bb5472df61018fe85 |