Skip to content

Commit

Permalink
Removed outdated documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
hover2pi committed Feb 9, 2016
1 parent 5a387f5 commit 6117bc0
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,6 @@ Now that you have the database at your fingertips, you’ll want to get some inf

.. _Here is a detailed post about how to write a SQL query: http://www.bdnyc.org/?p=898

The result of a SQL query is a Numpy array with the data requested from each record. For example, we can get a source's photometry from the PHOTOMETRY table with::

db.query("select band,magnitude from photometry where source_id=202")

which gives the output::

np.array([['J', 13.526],['H', 12.807],['Ks', 12.503],['W1', 12.486],['W2', 12.386],['W3', 12.313],['W4', 8.525]])

Alternatively, we can have this data returned as a Python dictionary with::

db.query("select band,magnitude from photometry where source_id=202", DICT=True)

whose output looks like::

[{'band': 'J', 'magnitude': 13.526},{'band': 'H', 'magnitude': 12.807},{'band': 'Ks', 'magnitude': 12.503},{'band': 'W1', 'magnitude': 12.486},{'band': 'W2', 'magnitude': 12.386},{'band': 'W3', 'magnitude': 12.313},{'band': 'W4', 'magnitude': 8.525}]


Contents
========

Expand Down

0 comments on commit 6117bc0

Please sign in to comment.