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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: PyOngc-0.3.1.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for PyOngc-0.3.1.tar.gz
Algorithm Hash digest
SHA256 e424b4c0346424b3bcac494d697eac1718a89039281a77e35aaf474b5fa58306
MD5 6f16659024ff2cf2d3edc35f27f5d648
BLAKE2b-256 52202ab8c12d3a3665a09defa36a198f915ec7bc2f0c807cdf0ede33dacbc735

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyOngc-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for PyOngc-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1324ea26e24dd49f5d9ecd5bcccce4fd51f083cea144e492592ec1f4a86caba2
MD5 04871d3192b3c90f62d61121c4b0836c
BLAKE2b-256 be426a0227386a27099d872e4834759ad4e8e0dce680a979c782e235acd37077

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