Skip to content

Commit 346fe21

Browse files
tinuademargaretbsipocz
authored andcommitted
added remote data directive
1 parent bb92dd1 commit 346fe21

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

docs/exoplanet_orbit_database/exoplanet_orbit_database.rst

Lines changed: 12 additions & 15 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
****************************************************************
@@ -13,22 +11,23 @@ You can access the complete tables from each table source, with units assigned
1311
to columns wherever possible.
1412

1513
.. code-block:: python
14+
.. doctest-remote-data::
1615

1716
>>> from astroquery.exoplanet_orbit_database import ExoplanetOrbitDatabase
18-
>>> eod_table = ExoplanetOrbitDatabase.get_confirmed_planets_table()
19-
17+
>>> eod_table = ExoplanetOrbitDatabase.get_table()
2018
>>> 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
19+
<QTable length=2>
20+
A AUPPER ... NAME_LOWERCASE sky_coord
21+
AU AU ... deg,deg
22+
float64 float64 ... str19 object
23+
--------- ----------- ... -------------- -----------------------------------
24+
0.0780099 0.00130017 ... kepler-107d 297.0282083332539,48.20861111111111
25+
0.0344721 0.000675924 ... kepler-1049b 287.3467499971389,47.7729444445504
2826

2927
You can query for the row from each table corresponding to one exoplanet:
3028

3129
.. code-block:: python
30+
.. doctest-remote-data::
3231

3332
>>> from astroquery.exoplanet_orbit_database import ExoplanetOrbitDatabase
3433
>>> hatp11b = ExoplanetOrbitDatabase.query_planet('HAT-P-11 b')
@@ -42,19 +41,17 @@ the Exoplanet Orbit Database <http://exoplanets.org/help/common/data>`_. There
4241
is also a special column of sky coordinates for each target, named ``sky_coord``.
4342

4443
.. code-block:: python
44+
.. doctest-remote-data::
4545

4646
>>> from astroquery.exoplanet_orbit_database import ExoplanetOrbitDatabase
4747
>>> hatp11b = ExoplanetOrbitDatabase.query_planet('HAT-P-11 b')
48-
4948
>>> hatp11b['PER'] # Planet period
5049
<Quantity 4.8878162 d>
51-
5250
>>> hatp11b['R'] # Planet radius
5351
<Quantity 0.422 jupiterRad>
54-
5552
>>> hatp11b['sky_coord'] # Position of host star
5653
<SkyCoord (ICRS): (ra, dec) in deg
57-
( 297.70891666, 48.08029444)>
54+
(297.70890417, 48.08029444)>
5855

5956
Reference/API
6057
=============

0 commit comments

Comments
 (0)