The CLI interface

Synopsis

ongc COMMAND [OPTIONS] [ARGS]…

Description

ongc is the command line interface to used to browse ONGC database data. It can be used to query data about an object or to build up lists based on some parameters.

Commands

Nearby

The nearby command allows to list objects in proximity of given J2000 coordinates. If the ouput exceed 20 objects, the user can choose to view the list in a pager.

The coordinates must be expressed in the form HH:MM:SS(.SS) +/-DD:MM:SS(.S)

ongc nearby [options] RA DEC

RA

Right Ascension in the form HH:MM:SS(.SS)

DEC

Declination in the form +/-DD:MM:SS(.S)

--radius INTEGER

It’s the radius ot the search, expressed in arcmin. If it’s not provided, the search is made with a default value of 60’.

--catalog [all|NGC|IC]

Allows to list only objects from NGC or IC catalog. By default the search will ouput all objects.

Neighbors

The neighbors command allows to list objects in proximity of another object. If the ouput exceed 20 objects, the user can choose to view the list in a pager.

ongc neighbors [options] NAME

NAME

The identifier of the object. It can be the main identifier (NGC or IC id) or one of the alternative identifier.

--radius INTEGER

It’s the radius ot the search, expressed in arcmin. If it’s not provided, the search is made with a default value of 30’.

--catalog [all|NGC|IC]

Allows to list only objects from NGC or IC catalog. By default the search will ouput all objects.

Separation

The separation command returns the apparent angular separation between two objects.

ongc separation OBJ1 OBJ2

OBJ1

The identifier of the object. It can be the main identifier (NGC or IC id) or one of the alternative identifier.

OBJ2

The identifier of the object. It can be the main identifier (NGC or IC id) or one of the alternative identifier.

Stats

The stats command shows some information about the database in use.

ongc stats

View

The view command allows to gather information about a specific object.

ongc view [options] NAME

Without options, prints a brief description of the object composed by the main identifier used in ONGC database, the object type and the constellation where the object is located.

NAME

The identifier of the object. It can be the main identifier (NGC or IC id) or one of the alternative identifier.

-D, --details

Prints all the available information about the object.

The output is rendered in a table suited to be viewed in a 80cols terminal.

Help

If you find bugs in ongc (or in the man page), please feel free to file a bug report or a pull request:

https://github.com/mattiaverga/PyOngc