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
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 nsstools-0.1.12.tar.gz.
File metadata
- Download URL: nsstools-0.1.12.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47fd6372c856f65b5c4633fc7da89aa048092482867a3375442a4f66bb6f7858
|
|
| MD5 |
3146ebceddd1ce67e2a0f19f59b9d264
|
|
| BLAKE2b-256 |
8d162ffc7c4bc782efec35b24ba97a4e52fb385d7bb003a1e5ed6ed9177556cd
|
File details
Details for the file nsstools-0.1.12-py3-none-any.whl.
File metadata
- Download URL: nsstools-0.1.12-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4812384d299fa6da1326eaa92cf6d3a5f76a66de7a81db8810cc04624097da1d
|
|
| MD5 |
a1c32bc70d47432911917cdbee4bdf97
|
|
| BLAKE2b-256 |
6648b2d48712fc84980002a26b27426303cb733ca054c2cc408c4ad2c83874ef
|