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://github.com/mattiaverga/PyOngc/actions/workflows/python-package.yml/badge.svg?branch=master 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.

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.4.tar.gz (1.9 MB view hashes)

Uploaded Source

Built Distribution

PyOngc-0.6.4-py3-none-any.whl (1.9 MB view hashes)

Uploaded Python 3

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