Skip to content

Commit 80f8b8f

Browse files
authored
Merge pull request #1944 from tinumide/exoplanet-doc-cleanup
Exoplanet doc cleanup
2 parents 3fc5893 + b63bcdc commit 80f8b8f

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

docs/exoplanet_orbit_database/exoplanet_orbit_database.rst

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. doctest-skip-all
2-
31
.. _astroquery.exoplanet_orbit_database:
42

53
****************************************************************
@@ -12,23 +10,22 @@ Accessing the planet table
1210
You can access the complete tables from each table source, with units assigned
1311
to columns wherever possible.
1412

15-
.. code-block:: python
13+
.. doctest-remote-data::
1614

1715
>>> from astroquery.exoplanet_orbit_database import ExoplanetOrbitDatabase
18-
>>> eod_table = ExoplanetOrbitDatabase.get_confirmed_planets_table()
19-
16+
>>> eod_table = ExoplanetOrbitDatabase.get_table()
2017
>>> eod_table[:2]
21-
<Table masked=True length=2>
22-
pl_hostname pl_letter pl_discmethod ... pl_nnotes rowupdate NAME_LOWERCASE
23-
...
24-
str27 str1 str29 ... int64 str10 str29
25-
----------- --------- ------------- ... --------- ---------- --------------
26-
Kepler-151 b Transit ... 1 2014-05-14 kepler-151 b
27-
Kepler-152 b Transit ... 1 2014-05-14 kepler-152 b
18+
<QTable length=2>
19+
A AUPPER ... NAME_LOWERCASE sky_coord
20+
AU AU ... deg,deg
21+
float64 float64 ... str19 object
22+
--------- ----------- ... -------------- -----------------------------------
23+
0.0780099 0.00130017 ... kepler-107d 297.0282083332539,48.20861111111111
24+
0.0344721 0.000675924 ... kepler-1049b 287.3467499971389,47.7729444445504
2825

2926
You can query for the row from each table corresponding to one exoplanet:
3027

31-
.. code-block:: python
28+
.. doctest-remote-data::
3229

3330
>>> from astroquery.exoplanet_orbit_database import ExoplanetOrbitDatabase
3431
>>> hatp11b = ExoplanetOrbitDatabase.query_planet('HAT-P-11 b')
@@ -41,20 +38,17 @@ The properties of each planet are stored in a table, with `columns defined by
4138
the Exoplanet Orbit Database <http://exoplanets.org/help/common/data>`_. There
4239
is also a special column of sky coordinates for each target, named ``sky_coord``.
4340

44-
.. code-block:: python
41+
.. doctest-remote-data::
4542

4643
>>> from astroquery.exoplanet_orbit_database import ExoplanetOrbitDatabase
4744
>>> hatp11b = ExoplanetOrbitDatabase.query_planet('HAT-P-11 b')
48-
4945
>>> hatp11b['PER'] # Planet period
5046
<Quantity 4.8878162 d>
51-
5247
>>> hatp11b['R'] # Planet radius
5348
<Quantity 0.422 jupiterRad>
54-
5549
>>> hatp11b['sky_coord'] # Position of host star
5650
<SkyCoord (ICRS): (ra, dec) in deg
57-
( 297.70891666, 48.08029444)>
51+
(297.70890417, 48.08029444)>
5852

5953
Reference/API
6054
=============

0 commit comments

Comments
 (0)