.. SPDX-FileCopyrightText: 2017 Mattia Verga <mattia.verga@tiscali.it>
..
.. SPDX-License-Identifier: CC-BY-SA-4.0
PyOngc
======
A python interface for accessing OpenNGC database data
.. image:: https://img.shields.io/pypi/v/PyOngc.svg
:target: https://pypi.python.org/pypi/PyOngc
.. image:: https://img.shields.io/pypi/status/PyOngc.svg
.. image:: https://img.shields.io/pypi/pyversions/PyOngc.svg
.. image:: https://github.com/mattiaverga/PyOngc/actions/workflows/python-package.yml/badge.svg?branch=master
:target: https://github.com/mattiaverga/PyOngc/actions/workflows/python-package.yml
.. image:: https://coveralls.io/repos/github/mattiaverga/PyOngc/badge.svg?branch=master
:target: https://coveralls.io/github/mattiaverga/PyOngc?branch=master
Description
-----------
PyOngc provides a python module to access astronomical data about NGC
and IC objects.
The data is based on OpenNGC database
https://github.com/mattiaverga/OpenNGC.
It is composed by a python module and a command line interface named
(guess what) ongc, which can be used to quickly see object details or build
object lists based on several parameters.
PyOngc can pass data to PyEphem in a simple way to get
ephemerides of NGC/IC objects: see the documentation about
ongc.xephemFormat method.
Usage
-----
::
>>> from pyongc import ongc
>>> DSOobject = ongc.get("NGC7000")
>>> DSOobject.coords
array([[20. , 59. , 17.14],
[44. , 31. , 43.6 ]])
Object data is easily available from command line also:
::
$ ongc view NGC7000 --details
+-----------------------------------------------------------------------------+
| Id: 13067 Name: NGC7000 Type: HII Ionized region |
| R.A.: 20:59:17.14 Dec.: +44:31:43.6 Constellation: Cyg |
| Common names: |
| North America Nebula |
+-----------------------------------------------------------------------------+
| Major axis: 120.0' Minor axis: 30.0' Position angle: N/A |
| B-mag: 4.0 V-mag: N/A J-mag: N/A H-mag: N/A K-mag: N/A |
| |
| Parallax: N/A Radial velocity: N/A Redshift: N/A |
| |
| Proper apparent motion in RA: N/A |
| Proper apparent motion in Dec: N/A |
| |
+-----------------------------------------------------------------------------+
| Other identifiers: |
| C 020, LBN 373 |
+-----------------------------------------------------------------------------+
Additionally, the available data can be manipulated through Pandas:
::
>>> from pyongc import data
>>> data.clusters(globular=True, open=False)
name type ra dec const ... parallax pmra pmdec radvel redshift
0 IC1257 GCl 4.569009 -0.123798 Oph ... NaN NaN NaN NaN NaN
1 IC1276 GCl 4.759242 -0.125796 Se2 ... 0.1100 -2.47 -4.41 155.0 0.000517
2 IC2134 GCl 1.409778 -1.316796 Men ... NaN NaN NaN NaN NaN
3 IC2140 GCl 1.454580 -1.315548 Men ... NaN NaN NaN NaN NaN
4 IC2146 GCl 1.473853 -1.305213 Men ... NaN NaN NaN 226.0 0.000755
.. ... ... ... ... ... ... ... ... ... ... ...
199 NGC7006 GCl 5.504278 0.282526 Del ... NaN -0.08 -0.61 -383.0 -0.001278
200 NGC7078 GCl 5.628569 0.212351 Peg ... 0.0522 -0.63 -3.80 -107.0 -0.000356
201 NGC7089 GCl 5.643741 -0.014369 Aqr ... 0.0612 3.51 -2.16 -4.0 -0.000012
202 NGC7099 GCl 5.673921 -0.404551 Cap ... 0.0676 -0.73 -7.24 -185.0 -0.000618
203 NGC7492 GCl 6.058233 -0.272472 Aqr ... 0.0528 0.76 -2.30 -177.0 -0.000589
[204 rows x 22 columns]
The full documentation is available at https://pyongc.readthedocs.io/en/latest/.
License
-------
PyOngc code is licensed under MIT. The documentation and the database from OpenNGC are
licensed under CC-BY-SA-4.0.
Raw data
{
"_id": null,
"home_page": "",
"name": "PyOngc",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "astronomy,database",
"author": "Mattia Verga",
"author_email": "mattia.verga@tiscali.it",
"download_url": "https://files.pythonhosted.org/packages/c9/1f/8920ab015c52379352fd8037094ab50c8c798a5f9a27398a743e0063d669/PyOngc-1.1.0.tar.gz",
"platform": null,
"description": ".. SPDX-FileCopyrightText: 2017 Mattia Verga <mattia.verga@tiscali.it>\n..\n.. SPDX-License-Identifier: CC-BY-SA-4.0\n\nPyOngc\n======\n\nA python interface for accessing OpenNGC database data\n\n.. image:: https://img.shields.io/pypi/v/PyOngc.svg\n :target: https://pypi.python.org/pypi/PyOngc\n.. image:: https://img.shields.io/pypi/status/PyOngc.svg\n.. image:: https://img.shields.io/pypi/pyversions/PyOngc.svg\n\n\n.. image:: https://github.com/mattiaverga/PyOngc/actions/workflows/python-package.yml/badge.svg?branch=master\n :target: https://github.com/mattiaverga/PyOngc/actions/workflows/python-package.yml\n.. image:: https://coveralls.io/repos/github/mattiaverga/PyOngc/badge.svg?branch=master\n :target: https://coveralls.io/github/mattiaverga/PyOngc?branch=master\n\n\nDescription\n-----------\n\nPyOngc provides a python module to access astronomical data about NGC\nand IC objects.\n\nThe data is based on OpenNGC database\nhttps://github.com/mattiaverga/OpenNGC.\n\nIt is composed by a python module and a command line interface named\n(guess what) ongc, which can be used to quickly see object details or build\nobject lists based on several parameters.\n\nPyOngc can pass data to PyEphem in a simple way to get\nephemerides of NGC/IC objects: see the documentation about\nongc.xephemFormat method.\n\nUsage\n-----\n\n::\n\n >>> from pyongc import ongc\n >>> DSOobject = ongc.get(\"NGC7000\")\n >>> DSOobject.coords\n array([[20. , 59. , 17.14],\n [44. , 31. , 43.6 ]])\n\nObject data is easily available from command line also:\n\n::\n\n $ ongc view NGC7000 --details\n +-----------------------------------------------------------------------------+\n | Id: 13067 Name: NGC7000 Type: HII Ionized region |\n | R.A.: 20:59:17.14 Dec.: +44:31:43.6 Constellation: Cyg |\n | Common names: |\n | North America Nebula |\n +-----------------------------------------------------------------------------+\n | Major axis: 120.0' Minor axis: 30.0' Position angle: N/A |\n | B-mag: 4.0 V-mag: N/A J-mag: N/A H-mag: N/A K-mag: N/A |\n | |\n | Parallax: N/A Radial velocity: N/A Redshift: N/A |\n | |\n | Proper apparent motion in RA: N/A |\n | Proper apparent motion in Dec: N/A |\n | |\n +-----------------------------------------------------------------------------+\n | Other identifiers: |\n | C 020, LBN 373 |\n +-----------------------------------------------------------------------------+\n\nAdditionally, the available data can be manipulated through Pandas:\n\n::\n\n >>> from pyongc import data\n >>> data.clusters(globular=True, open=False)\n name type ra dec const ... parallax pmra pmdec radvel redshift\n 0 IC1257 GCl 4.569009 -0.123798 Oph ... NaN NaN NaN NaN NaN\n 1 IC1276 GCl 4.759242 -0.125796 Se2 ... 0.1100 -2.47 -4.41 155.0 0.000517\n 2 IC2134 GCl 1.409778 -1.316796 Men ... NaN NaN NaN NaN NaN\n 3 IC2140 GCl 1.454580 -1.315548 Men ... NaN NaN NaN NaN NaN\n 4 IC2146 GCl 1.473853 -1.305213 Men ... NaN NaN NaN 226.0 0.000755\n .. ... ... ... ... ... ... ... ... ... ... ...\n 199 NGC7006 GCl 5.504278 0.282526 Del ... NaN -0.08 -0.61 -383.0 -0.001278\n 200 NGC7078 GCl 5.628569 0.212351 Peg ... 0.0522 -0.63 -3.80 -107.0 -0.000356\n 201 NGC7089 GCl 5.643741 -0.014369 Aqr ... 0.0612 3.51 -2.16 -4.0 -0.000012\n 202 NGC7099 GCl 5.673921 -0.404551 Cap ... 0.0676 -0.73 -7.24 -185.0 -0.000618\n 203 NGC7492 GCl 6.058233 -0.272472 Aqr ... 0.0528 0.76 -2.30 -177.0 -0.000589\n\n [204 rows x 22 columns]\n\nThe full documentation is available at https://pyongc.readthedocs.io/en/latest/.\n\nLicense\n-------\n\nPyOngc code is licensed under MIT. The documentation and the database from OpenNGC are\nlicensed under CC-BY-SA-4.0.\n",
"bugtrack_url": null,
"license": "MIT AND CC-BY-SA-4.0",
"summary": "Python interface to OpenNGC database data",
"version": "1.1.0",
"project_urls": {
"homepage": "https://github.com/mattiaverga/PyOngc"
},
"split_keywords": [
"astronomy",
"database"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8145419439b279db5865c1c45be33d901c1e593a66e34021cf08d0f9f2f9cefd",
"md5": "1ecf099c116c8141742a1f8026303973",
"sha256": "706b75a40fbfe4a3ae2d59656333eea22bb515d00750220182f8f29305cb4e3e"
},
"downloads": -1,
"filename": "PyOngc-1.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1ecf099c116c8141742a1f8026303973",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 2315432,
"upload_time": "2023-12-03T14:43:34",
"upload_time_iso_8601": "2023-12-03T14:43:34.538250Z",
"url": "https://files.pythonhosted.org/packages/81/45/419439b279db5865c1c45be33d901c1e593a66e34021cf08d0f9f2f9cefd/PyOngc-1.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "c91f8920ab015c52379352fd8037094ab50c8c798a5f9a27398a743e0063d669",
"md5": "496667ed1d792a18c3c75f6a9e27532c",
"sha256": "a6447f21b97676dbd20702a12a1d1365e16362d9c98f66aa7b9e295d7467815e"
},
"downloads": -1,
"filename": "PyOngc-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "496667ed1d792a18c3c75f6a9e27532c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 3230295,
"upload_time": "2023-12-03T14:43:38",
"upload_time_iso_8601": "2023-12-03T14:43:38.753599Z",
"url": "https://files.pythonhosted.org/packages/c9/1f/8920ab015c52379352fd8037094ab50c8c798a5f9a27398a743e0063d669/PyOngc-1.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-03 14:43:38",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mattiaverga",
"github_project": "PyOngc",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pyongc"
}