1
- .. doctest-skip-all
2
-
3
1
.. _astroquery.exoplanet_orbit_database :
4
2
5
3
****************************************************************
@@ -12,23 +10,22 @@ Accessing the planet table
12
10
You can access the complete tables from each table source, with units assigned
13
11
to columns wherever possible.
14
12
15
- .. code-block :: python
13
+ .. doctest-remote-data ::
16
14
17
15
>>> from astroquery.exoplanet_orbit_database import ExoplanetOrbitDatabase
18
- >> > eod_table = ExoplanetOrbitDatabase.get_confirmed_planets_table()
19
-
16
+ >>> eod_table = ExoplanetOrbitDatabase.get_table()
20
17
>>> 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 - 0 5 - 14 kepler- 151 b
27
- Kepler - 152 b Transit ... 1 2014 - 0 5 - 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
28
25
29
26
You can query for the row from each table corresponding to one exoplanet:
30
27
31
- .. code-block :: python
28
+ .. doctest-remote-data ::
32
29
33
30
>>> from astroquery.exoplanet_orbit_database import ExoplanetOrbitDatabase
34
31
>>> 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
41
38
the Exoplanet Orbit Database <http://exoplanets.org/help/common/data> `_. There
42
39
is also a special column of sky coordinates for each target, named ``sky_coord ``.
43
40
44
- .. code-block :: python
41
+ .. doctest-remote-data ::
45
42
46
43
>>> from astroquery.exoplanet_orbit_database import ExoplanetOrbitDatabase
47
44
>>> hatp11b = ExoplanetOrbitDatabase.query_planet(' HAT-P-11 b' )
48
-
49
45
>>> hatp11b[' PER' ] # Planet period
50
46
<Quantity 4.8878162 d>
51
-
52
47
>>> hatp11b[' R' ] # Planet radius
53
48
<Quantity 0.422 jupiterRad>
54
-
55
49
>>> hatp11b[' sky_coord' ] # Position of host star
56
50
<SkyCoord (ICRS): (ra, dec) in deg
57
- ( 297.70891666 , 48.08029444 )>
51
+ (297.70890417, 48.08029444)>
58
52
59
53
Reference/API
60
54
=============
0 commit comments