Skip to content
Mattia Verga edited this page Sep 25, 2018 · 4 revisions

Description

PyOngc consists of a python module to access astronomical data about NGC and IC objects and a python script to display objects information from command line.

The data is based on OpenNGC database https://github.com/mattiaverga/OpenNGC.

Usage of python module

    >>> from pyongc import ongc
    >>> DSOobject = ongc.Dso("NGC7000")
    >>> DSOobject.getCoords()
    array([[20.  , 59.  , 17.14],
           [44.  , 31.  , 43.6 ]])

Usage of python script

    $ ongcbrowse -n 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                                                    |
    +-----------------------------------------------------------------------------+
Clone this wiki locally