eDR3 zero point functions from Lindegren et al. 2020 implemented in Python.
Project description
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:
To install the package:
From source (recommended)
- Clone the Github repository or download the source files
- cd to the directory
- Run
python setup.py install
orpython 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
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
File details
Details for the file gaiadr3_zeropoint-0.0.5.tar.gz
.
File metadata
- Download URL: gaiadr3_zeropoint-0.0.5.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/7.0.1 pkginfo/1.9.6 requests/2.28.1 requests-toolbelt/1.0.0 tqdm/4.65.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0ef81fd9cea98d4d957062dc0782beac42381e7622d1ff505179f0cd56b1509 |
|
MD5 | eed52564cf8ac124c4040928e38b400d |
|
BLAKE2b-256 | 61f719e1015d32ddc9d43b346accfcdf87ade553da3fde688587ef44c28bbc74 |
File details
Details for the file gaiadr3_zeropoint-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: gaiadr3_zeropoint-0.0.5-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/7.0.1 pkginfo/1.9.6 requests/2.28.1 requests-toolbelt/1.0.0 tqdm/4.65.0 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a11555cedc1e3e199b3598262aa27f4fcd40141ad3f867708caf8bf0ea7e77f6 |
|
MD5 | 7710a87bd8feb96f9e8da7134c5db994 |
|
BLAKE2b-256 | b7b565ed3fd8b56f680c851a4916b9e3eb7a21e66ecab556bde994f2c8ff459a |