Skip to main content

Python interface to OpenNGC database data.

Project description

A python interface for accessing OpenNGC database data

https://img.shields.io/pypi/v/PyOngc.svg https://img.shields.io/pypi/status/PyOngc.svg https://img.shields.io/pypi/pyversions/PyOngc.svg https://travis-ci.org/mattiaverga/PyOngc.svg?branch=master https://ci.appveyor.com/api/projects/status/ee72q5vkbi7quri6/branch/master?svg=true https://coveralls.io/repos/github/mattiaverga/PyOngc/badge.svg?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

>>> import pyongc
>>> DSOobject = pyongc.Dso("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: 13055     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      |
|                                                                             |
+-----------------------------------------------------------------------------+
| Other identifiers:                                                          |
|    C 020, LBN 373                                                           |
+-----------------------------------------------------------------------------+
| OpenNGC notes:                                                              |
|    B-Mag taken from LEDA                                                    |
+-----------------------------------------------------------------------------+

The full documentation is available at https://pyongc.readthedocs.io/en/latest/.

License

PyOngc is licensed under MIT.

https://www.ko-fi.com/img/githubbutton_sm.svg https://liberapay.com/assets/widgets/donate.svg

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

PyOngc-0.6.0.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

PyOngc-0.6.0-py3-none-any.whl (1.9 MB view details)

Uploaded Python 3

File details

Details for the file PyOngc-0.6.0.tar.gz.

File metadata

  • Download URL: PyOngc-0.6.0.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.44.0 CPython/3.7.6

File hashes

Hashes for PyOngc-0.6.0.tar.gz
Algorithm Hash digest
SHA256 be661cf5d444f45ebd4bc1dded3d9680ab83fd491c20c418d46d7cec338598ec
MD5 b37498b7f3ad474f51942dc235f4bc0b
BLAKE2b-256 427c648590a2d01bf7a8554bd432229a5d8f3b19f5fc2810df95ed96c6955bf5

See more details on using hashes here.

File details

Details for the file PyOngc-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: PyOngc-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.44.0 CPython/3.7.6

File hashes

Hashes for PyOngc-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d515687a91cf9b99c3fa616eccacd340861bbbdc81ed31fc2429ce247f47b2e
MD5 61c1dae44aae3a323b655398ae2dd17e
BLAKE2b-256 9562d28ce158bdf82721d12ddac6c7164e0b49d66493a305e291a6f751caab4b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page