Skip to content

Commit

Permalink
removing python blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
ceb8 committed Feb 22, 2022
1 parent b4ce0ff commit 9472e6a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions docs/sdss/sdss.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,16 @@ arcsecond radius for optical counterparts in SDSS. Note use of the keyword
argument spectro, which requires matches to have spectroscopy, not just
photometry:

.. code-block:: python
.. doctest-remote-data::

>>> from astroquery.sdss import SDSS
>>> from astropy import coordinates as coords
>>> pos = coords.SkyCoord('0h8m05.63s +14d50m23.3s', frame='icrs')
>>> xid = SDSS.query_region(pos, spectro=True)
>>> print(xid)
ra dec objid ... run2d instrument
---------------- ---------------- ------------------- ... ----- ----------
2.02344596573482 14.8398237551311 1237652943176138868 ... 26 SDSS
ra dec ... specobjid run2d
---------------- ---------------- ... ------------------ -----
2.02344596573482 14.8398237551311 ... 845594848269461504 26

The result is an astropy.Table.

Expand All @@ -32,7 +31,6 @@ Downloading data
If we'd like to download spectra and/or images for our match, we have all
the information we need in the elements of "xid" from the above example.

.. code-block:: python
.. doctest-remote-data::

>>> sp = SDSS.get_spectra(matches=xid)
Expand All @@ -58,7 +56,6 @@ Spectral templates
It is also possible to download spectral templates from SDSS. To see what is
available, do

.. code-block:: python
.. doctest-remote-data::

>>> from astroquery.sdss import SDSS
Expand Down

0 comments on commit 9472e6a

Please sign in to comment.