1
- .. doctest-skip-all
2
-
3
1
.. _astroquery.nasa_exoplanet_archive :
4
2
5
3
************************************************************
@@ -26,7 +24,7 @@ Query methods
26
24
The `~astroquery.nasa_exoplanet_archive.NasaExoplanetArchiveClass.query_object ` method can be used to query for a specific planet or planet host.
27
25
For example, the following query searches the ``ps `` table of confirmed exoplanets for information about the planet K2-18 b.
28
26
29
- .. code-block :: python
27
+ .. doctest-remote-data ::
30
28
31
29
>>> from astroquery.nasa_exoplanet_archive import NasaExoplanetArchive
32
30
>>> NasaExoplanetArchive.query_object(" K2-18 b" )
@@ -50,7 +48,7 @@ For example, the following query searches the ``ps`` table of confirmed exoplane
50
48
51
49
Similarly, cone searches can be executed using the `~astroquery.nasa_exoplanet_archive.NasaExoplanetArchiveClass.query_region ` method:
52
50
53
- .. code-block :: python
51
+ .. doctest-remote-data ::
54
52
55
53
>>> import astropy.units as u
56
54
>>> from astropy.coordinates import SkyCoord
@@ -70,7 +68,7 @@ Similarly, cone searches can be executed using the `~astroquery.nasa_exoplanet_a
70
68
The most general queries can be performed using the `~astroquery.nasa_exoplanet_archive.NasaExoplanetArchiveClass.query_criteria ` method.
71
69
For example, a full table can be queried as follows:
72
70
73
- .. code-block :: python
71
+ .. doctest-remote-data ::
74
72
75
73
>>> from astroquery.nasa_exoplanet_archive import NasaExoplanetArchive
76
74
>>> NasaExoplanetArchive.query_criteria(table = " cumulative" , select = " *" )
@@ -97,7 +95,7 @@ In this section, we demonstrate
97
95
98
96
1. The number of confirmed planets discovered by TESS:
99
97
100
- .. code-block :: python
98
+ .. doctest-remote-data ::
101
99
102
100
>>> from astroquery.nasa_exoplanet_archive import NasaExoplanetArchive
103
101
>>> NasaExoplanetArchive.query_criteria(table = " pscomppars" , select = " count(*)" ,
@@ -111,7 +109,7 @@ In this section, we demonstrate
111
109
112
110
2. The list of confirmed planets discovered by TESS and their host star coordinates:
113
111
114
- .. code-block :: python
112
+ .. doctest-remote-data ::
115
113
116
114
>>> from astroquery.nasa_exoplanet_archive import NasaExoplanetArchive
117
115
>>> NasaExoplanetArchive.query_criteria(table = " pscomppars" , select = " pl_name,ra,dec" ,
@@ -132,7 +130,7 @@ In this section, we demonstrate
132
130
133
131
3. The list of confirmed planets discovered using microlensing that have data available in the archive:
134
132
135
- .. code-block :: python
133
+ .. doctest-remote-data ::
136
134
137
135
>>> from astroquery.nasa_exoplanet_archive import NasaExoplanetArchive
138
136
>>> NasaExoplanetArchive.query_criteria(
@@ -155,7 +153,7 @@ In this section, we demonstrate
155
153
156
154
4. The list of confirmed planets where the host star name starts with "Kepler" using a *wildcard search *:
157
155
158
- .. code-block :: python
156
+ .. doctest-remote-data ::
159
157
160
158
>>> from astroquery.nasa_exoplanet_archive import NasaExoplanetArchive
161
159
>>> NasaExoplanetArchive.query_criteria(
@@ -181,7 +179,7 @@ In this section, we demonstrate
181
179
182
180
5. The Kepler Objects of Interest that were vetted more recently than January 24, 2015 using a *date search *:
183
181
184
- .. code-block :: python
182
+ .. doctest-remote-data ::
185
183
186
184
>>> from astroquery.nasa_exoplanet_archive import NasaExoplanetArchive
187
185
>>> NasaExoplanetArchive.query_criteria(
0 commit comments