Python interface to OpenNGC database data.
Project description
A python interface for accessing OpenNGC database data
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file PyOngc-0.6.3.tar.gz
.
File metadata
- Download URL: PyOngc-0.6.3.tar.gz
- Upload date:
- Size: 1.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c312bcfd3f7ee60c41e1ce8e26615a08f1d244d5d077e02ab6512141abe5079d |
|
MD5 | f68db740840f7b0a8d5ba17fe81a17c1 |
|
BLAKE2b-256 | 29a4f6cfa8149280690ef2d07ebcc404cb7da9b45efd3026b1f2015d3389eab6 |
File details
Details for the file PyOngc-0.6.3-py3-none-any.whl
.
File metadata
- Download URL: PyOngc-0.6.3-py3-none-any.whl
- Upload date:
- Size: 1.9 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd93fba9cc468394da73fd6f38835ed075666b8853d4b92ef9990e6c1e3eb49c |
|
MD5 | 793656d3c60c8935c7575b6572a8d0d3 |
|
BLAKE2b-256 | f29f46f8682e31cb6492df1bce289a7e7a6bb96548ef224d4393fc8dfc1b58ff |