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
>>> from pyongc import ongc
>>> DSOobject = ongc.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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file PyOngc-1.0.1.tar.gz.
File metadata
- Download URL: PyOngc-1.0.1.tar.gz
- Upload date:
- Size: 3.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
237b63c59d2138a020978356f8bc65919f449c9deccb92b7789b5815efd09761
|
|
| MD5 |
89fbbf207d161b2c5032683bec2550b1
|
|
| BLAKE2b-256 |
ca98efe0b7478852197ac074effb48545bea535fa67bd74825302a79573c3b84
|
File details
Details for the file PyOngc-1.0.1-py3-none-any.whl.
File metadata
- Download URL: PyOngc-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b5888b2eef636a758a49d0321cb577969b54dde995c296c5e9bf3af09bd1cb6
|
|
| MD5 |
780c74a5992f55665b71560d04fde2b1
|
|
| BLAKE2b-256 |
c6f77000a5635d04e62834e6f2504ea9b2212358a5522c293262f2c602d9b74c
|