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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: PyOngc-0.6.1.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.10

File hashes

Hashes for PyOngc-0.6.1.tar.gz
Algorithm Hash digest
SHA256 ca0e432d2871a888eb42d5829831835fdd7c9bfc7d83f59b24417c7bde683017
MD5 123fa1a56dbe35fec928ee39b8abd86f
BLAKE2b-256 1c496f54a59fbf0115d12cb57f857ce6269c5a85d0aa296c1aea333a065e7014

See more details on using hashes here.

File details

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

File metadata

  • Download URL: PyOngc-0.6.1-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.10

File hashes

Hashes for PyOngc-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e07e9a189dc86bd31683b8987a3d09ae06ee8aa4ebb3df4b751fd9f6c72a3421
MD5 f057803d0d43bf97d7beed23428a0679
BLAKE2b-256 d2b353b4503ae584118cda2dead68c5ace223907eb17c151f38e380f8cefb514

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