Skip to main content

gaiadr3_zeropoint

This Python package contains the necessary tools to query the value of the parallax zero-point for Gaia EDR3 and Gaia DR3. Based on the functions described in Lindegren et al. 2020, the code returns the estimated parallax zero -point given the ecliptic latitude, magnitude and colour of any Gaia (E)DR3 source.

NOTE: the zero-point returned by the code should be subtracted from the parallax value given in the Gaia archive. Run help(zpt.get_zpt) for more details.

Documentation

All classes and methods/functions are documented so use the python help() function to find out more.

Installation

This is a Python3 package (issues may arise if executed with Python2).

The required dependencies are:

  • numpy
  • pandas (only if you want to use the wrapper provided with the code)

To install the package:

From source (recommended)

  1. Clone the Github repository or download the source files
  2. cd to the directory
  3. Run python setup.py install or python setup install --user for installation in your own home directory

With pip

pip install gaiadr3-zeropoint

Basic usage

Once the package is installed, you can import it in Python:

from zero_point import zpt

Then, first load the coefficient tables by calling the load_tables() function.

Once the tables are loaded, the parallax zero-point can be queried as:

zpt.get_zpt(phot_g_mean_mag, nu_eff_used_in_astrometry, pseudocolour, ecl_lat, astrometric_params_solved)

This function accepts both single values as well as iterables, and returns a float (or array of such) corresponding to the zero-point of the source(s) with those parameters.

NOTE: for 5-p solutions (ra-dec-parallax-pmra-pmdec), the field astrometric_params_solved equals 31 and the pseudocolour variable can take any arbitrary values (even None). On the other hand, for 6-p solutions (ra-dec -parallax-pmra-pmdec-pseudocolour), the field astrometric_params_solved equals 95 and the nu_eff_used_in_astrometry variable can take any arbitrary values (even None).

Finally, if you have a pandas DataFrame (DF) of sources with the columns phot_g_mean_mag, nu_eff_used_in_astrometry, pseudocolour, ecl_lat, astrometric_params_solved, you can simply use the pandas wrapper zpt_wrapper:

zero_point = DF.apply(zpt_wrapper,axis=1) 

Attribution

If you make use of this package for your research, please acknowledge the following papers: Lindegren+20.

Help

If you encounter any problem with the software, please make use of the GitLub Issues page. Otherwise, contact pau.ramos@nao.ac.jp.

Copyright: Pau Ramos, University of Barcelona

Metadata

Release files for gaiadr3-zeropoint 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gaiadr3-zeropoint 0.1.0
File Size Uploaded Provenance Actions
gaiadr3_zeropoint-0.1.0.tar.gz 10.5 kB Without provenance Details for gaiadr3_zeropoint-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gaiadr3-zeropoint 0.1.0
File Interpreter ABI Platform Actions
gaiadr3_zeropoint-0.1.0-py3-none-any.whl Python 3 none any Details for gaiadr3_zeropoint-0.1.0-py3-none-any.whl

Total release size: 21.7 kB

Release files / gaiadr3_zeropoint-0.1.0.tar.gz

Download URL gaiadr3_zeropoint-0.1.0.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
95687809acb82cf6ed20034c3d59aa10b39028069f37fcd1939877af7adb3f5d
BLAKE2b-256 checksum
How to use checksums
f9f729d108a7965154828211dd27b0bddd0ce8c5c596c89c0c023428bb7d1b89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.6

Release files / gaiadr3_zeropoint-0.1.0-py3-none-any.whl

Download URL gaiadr3_zeropoint-0.1.0-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39b6ab4c58807a5313674767b494684bd8bea263b3c55a4ea489c8b13b1fe7fb
BLAKE2b-256 checksum
How to use checksums
898b08547b59619f29e63205686603c0275e37cc193725a2248164959a1e838b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.6

Security for gaiadr3-zeropoint 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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