GOTO-OBS / goto-wsdb

A World Sky Database for the GOTO project

Home Page:http://goto-observatory.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GOTO WSDB

A World Sky Database (WSDB) for the GOTO project.

See the Wiki for a list of catalogs available and their schema.

Python usage example

from wsdb import WSDB
from astropy.table import Table

local_catalogue = Table.read("some-local-catalogue.csv")

client = WSDB(database="wsdb", host="goto-observatory.org",
              user="goto", password="ask_andy_on_slack")

print(client.catalogues)
>>> ('apassdr9_main', 'twomass_psc', 'gaiadr1_tgas_source',
     'gaiadr1_gaia_source', 'sdssdr9_phototag', 'goto_sources')

# Nearest-neighbour match with some local catalogue
targets_nearest_neighbour = client.nearest_neighbour_query(
    "apassdr9_main", local_catalogue["ra"], local_catalogue["dec"])

# Polygon search
targets_in_a_box = client.polygon_query("apassdr9_main",
    (127.3239975, 127.3239975,  134.117885,  134.117885),
    (11.5666857, 23.5, 23.5, 11.5666857))

# Cone search
targets_in_a_cone = wsdb.radial_query("apassdr9_main",
    45.212, -34.113, radius=0.1)

About

A World Sky Database for the GOTO project

http://goto-observatory.org


Languages

Language:Shell 98.7%Language:Python 1.3%