Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ruizca/hscquery

Python module for querying the HSC-SSP database
https://github.com/ruizca/hscquery

astronomical-catalogs astronomy python27 python3

Last synced: 9 days ago
JSON representation

Python module for querying the HSC-SSP database

Awesome Lists containing this project

README

        

hscquery
========
.. inclusion-marker-main-readme

``hscquery`` is a Python 2/3 module for querying the
*Hyper Suprime-Cam Subaru Strategic Program* database. `HSC-SSP`_

Based on the python script developed by michitaro, NAOJ / HSC
Collaboration. `Source`_

Dependencies
------------

``hscquery`` depends on ``astropy`` and ``future`` packages.

Installation
------------

``hscquery`` can be easily installed using ``pip``::

pip install hscquery

Example
-------
A simple example of using ``hscquery``::

from hscquery import HSC
from astropy import units as u
from astropy.coordinates import SkyCoord

coords = SkyCoord(34.0, -5.0, unit='deg')
radius = 5.0 * u.arcsec

h = HSC(survey='wide')
data = h.query_region(coords, radius)
print data

|astropy|

.. _HSC-SSP: https://hsc.mtk.nao.ac.jp/ssp/
.. _Source: https://hsc-gitlab.mtk.nao.ac.jp/snippets/17

.. |astropy| image:: http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat
:target: http://www.astropy.org/