gaiadr3-zeropoint


Namegaiadr3-zeropoint JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://gitlab.com/icc-ub/public/gaiadr3_zeropoint
SummaryeDR3 zero point functions from Lindegren et al. 2020 implemented in Python.
upload_time2025-01-10 05:27:34
maintainerNone
docs_urlNone
authorPau Ramos
requires_python>=3.6
licenseLGPLv3+
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://numpy.org/)
* [pandas](https://pandas.pydata.org/) (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


            

Raw data

            {
    "_id": null,
    "home_page": "https://gitlab.com/icc-ub/public/gaiadr3_zeropoint",
    "name": "gaiadr3-zeropoint",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Pau Ramos",
    "author_email": "pau.ramos@nao.ac.jp",
    "download_url": "https://files.pythonhosted.org/packages/f9/f7/29d108a7965154828211dd27b0bddd0ce8c5c596c89c0c023428bb7d1b89/gaiadr3_zeropoint-0.1.0.tar.gz",
    "platform": null,
    "description": "# gaiadr3_zeropoint\n\nThis Python package contains the necessary tools to query the value of the parallax zero-point for Gaia EDR3  and\n Gaia DR3. Based on the functions described in Lindegren et al. 2020, the code returns the estimated parallax zero\n -point given the ecliptic latitude, magnitude and colour of any Gaia (E)DR3 source.\n\n **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.\n\n## Documentation\n\nAll classes and methods/functions are documented so use the python help() function to find out more. \n\n\n## Installation\n\nThis is a Python3 package (*issues may arise if executed with Python2*).\n\nThe required dependencies are:\n* [numpy](https://numpy.org/)\n* [pandas](https://pandas.pydata.org/) (only if you want to use the wrapper provided with the code)\n\n\nTo install the package:\n\n### From source (recommended)\n1. Clone the Github repository or download the source files\n2. cd to the directory\n3. Run `python setup.py install` or `python setup install --user` for installation in your own home directory\n\n### With pip\n```\npip install gaiadr3-zeropoint\n```\n\n\n## Basic usage\n\nOnce the package is installed, you can import it in Python:\n\n```\nfrom zero_point import zpt\n```\n\nThen, first load the coefficient tables by calling the `load_tables()` function. \n\nOnce the tables are loaded, the\n parallax zero-point can be queried as:\n\n```\nzpt.get_zpt(phot_g_mean_mag, nu_eff_used_in_astrometry, pseudocolour, ecl_lat, astrometric_params_solved)\n```\n\nThis 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.\n\n**NOTE**: for 5-p solutions (ra-dec-parallax-pmra-pmdec), the field `astrometric_params_solved` equals 31 and the\n `pseudocolour` variable can take any arbitrary values (even *None*). On the other hand, for 6-p solutions (ra-dec\n -parallax-pmra-pmdec-pseudocolour), the field `astrometric_params_solved` equals 95 and the\n  `nu_eff_used_in_astrometry` variable can take any arbitrary values (even *None*).\n\nFinally, 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```:\n\n``` \nzero_point = DF.apply(zpt_wrapper,axis=1) \n```\n\n## Attribution\n\nIf you make use of this package for your research, please acknowledge the following papers: Lindegren+20.\n\n## Help\n\nIf you encounter any problem with the software, please make use of the GitLub Issues page. Otherwise, contact pau.ramos@nao.ac.jp.\n\nCopyright: Pau Ramos, University of Barcelona\n\n",
    "bugtrack_url": null,
    "license": "LGPLv3+",
    "summary": "eDR3 zero point functions from Lindegren et al. 2020 implemented in Python.",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://gitlab.com/icc-ub/public/gaiadr3_zeropoint"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "898b08547b59619f29e63205686603c0275e37cc193725a2248164959a1e838b",
                "md5": "59632433ac3acc00fe400fe64f4b8800",
                "sha256": "39b6ab4c58807a5313674767b494684bd8bea263b3c55a4ea489c8b13b1fe7fb"
            },
            "downloads": -1,
            "filename": "gaiadr3_zeropoint-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "59632433ac3acc00fe400fe64f4b8800",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 11204,
            "upload_time": "2025-01-10T05:27:32",
            "upload_time_iso_8601": "2025-01-10T05:27:32.727686Z",
            "url": "https://files.pythonhosted.org/packages/89/8b/08547b59619f29e63205686603c0275e37cc193725a2248164959a1e838b/gaiadr3_zeropoint-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f9f729d108a7965154828211dd27b0bddd0ce8c5c596c89c0c023428bb7d1b89",
                "md5": "fa8c037ac955acca5fed7d58cfc4f408",
                "sha256": "95687809acb82cf6ed20034c3d59aa10b39028069f37fcd1939877af7adb3f5d"
            },
            "downloads": -1,
            "filename": "gaiadr3_zeropoint-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "fa8c037ac955acca5fed7d58cfc4f408",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 10499,
            "upload_time": "2025-01-10T05:27:34",
            "upload_time_iso_8601": "2025-01-10T05:27:34.873657Z",
            "url": "https://files.pythonhosted.org/packages/f9/f7/29d108a7965154828211dd27b0bddd0ce8c5c596c89c0c023428bb7d1b89/gaiadr3_zeropoint-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-10 05:27:34",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "codeberg": false,
    "gitlab_user": "icc-ub",
    "gitlab_project": "public",
    "lcname": "gaiadr3-zeropoint"
}
        
Elapsed time: 0.34358s