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

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 main module and a command line utility named ongcbrowse which can be used to print object details in a terminal.

PyOngc data can provide 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.Dso("NGC7000")
>>> DSOobject.getCoords()
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:                                                          |
|    C20, LBN 373                                                             |
+-----------------------------------------------------------------------------+
| OpenNGC notes:                                                              |
|    B-Mag taken from LEDA                                                    |
+-----------------------------------------------------------------------------+

License

PyOngc is licensed under MIT.

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.3.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

PyOngc-0.3.0-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: PyOngc-0.3.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/3.7.1

File hashes

Hashes for PyOngc-0.3.0.tar.gz
Algorithm Hash digest
SHA256 89ec3fcb7237d3fbc60557d405c4e27a094c62d59a4bfa297b2ca9359bfb01b1
MD5 d80244433f46f46503747ff93579aeb0
BLAKE2b-256 5bcaf7a9fa87bb766d979b79d92635bf7d111adf74da1a289e037d50df43e7b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyOngc-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.10.0 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.19.6 CPython/3.7.1

File hashes

Hashes for PyOngc-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c6b02bde7d43378f3b5719ea849d2a2d5c44dc84f616d5bf3e120257d26b9d2
MD5 47dd92fa5ca9e36d64bac5c6c4d654d3
BLAKE2b-256 d40d98fe6891d7aaea2af68a75ece81183ffecc796f8dc1b0f0ba6b27f7f1bb7

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