1
- .. doctest-skip-all
2
-
3
1
Astroquery
4
2
==========
5
3
@@ -99,6 +97,7 @@ and for running the tests:
99
97
100
98
* `curl <https://curl.haxx.se/ >`__
101
99
* `pytest-astropy <https://github.com/astropy/pytest-astropy >`__
100
+ * `pytest-rerunfailures <https://github.com/pytest-dev/pytest-rerunfailures >`__
102
101
103
102
The following packages are optional dependencies and are required for the
104
103
full functionality of the `~astroquery.alma ` module:
@@ -126,21 +125,19 @@ Using astroquery
126
125
All astroquery modules are supposed to follow the same API. In its simplest form, the API involves
127
126
queries based on coordinates or object names. Some simple examples, using SIMBAD:
128
127
129
- .. code-block :: python
128
+ .. doctest-remote-data ::
130
129
131
130
>>> from astroquery.simbad import Simbad
132
131
>>> result_table = Simbad.query_object(" m1" )
133
- >> > result_table.pprint(show_unit = True )
134
- MAIN_ID RA DEC RA_PREC ... COO_QUAL COO_WAVELENGTH COO_BIBCODE
135
- " h:m:s" " d:m:s" ...
136
- ------ - ---------- - ---------- - ------ - ... -------- -------------- ------------------ -
137
- M 1 05 34 31.94 + 22 00 52.2 6 ... C R 2011A & A... 533A ..10L
138
-
139
-
132
+ >>> result_table.pprint()
133
+ MAIN_ID RA DEC ... COO_WAVELENGTH COO_BIBCODE SCRIPT_NUMBER_ID
134
+ "h:m:s" "d:m:s" ...
135
+ ------- -------- -------- ... -------------- ----------- ----------------
136
+ M 1 05 34 32 +22 00.8 ... R 1
140
137
141
138
All query tools allow coordinate-based queries:
142
139
143
- .. code-block :: python
140
+ .. doctest-remote-data ::
144
141
145
142
>>> from astropy import coordinates
146
143
>>> import astropy.units as u
@@ -149,13 +146,14 @@ All query tools allow coordinate-based queries:
149
146
>>> r = 5 * u.arcminute
150
147
>>> result_table = Simbad.query_region(c, radius = r)
151
148
>>> result_table.pprint(show_unit = True , max_width = 80 , max_lines = 5 )
152
- MAIN_ID RA DEC ... COO_WAVELENGTH COO_BIBCODE
153
- " h:m:s" " d:m:s" ...
154
- ------------ ------------ ------------ ... -------------- ------------------ -
155
- M 42 05 35 17.3 - 05 23 28 ... 1981MNRAS .194..693L
156
- ... ... ... ... ... ...
157
- V* V2114 Ori 05 35 01.671 - 05 26 36.30 ... I 2003yCat .2246... .0C
158
-
149
+ MAIN_ID RA ... COO_BIBCODE SCRIPT_NUMBER_ID
150
+ "h:m:s" ...
151
+ ----------------------- ------------- ... ------------------- ----------------
152
+ NAME Ori Region 05 35 17.30 ... 1
153
+ ... ... ... ... ...
154
+ 2MASS J05353573-0525256 05 35 35.7755 ... 2020yCat.1350....0G 1
155
+ V* V2114 Ori 05 35 01.6720 ... 2020yCat.1350....0G 1
156
+ Length = 3273 rows
159
157
160
158
For additional guidance and examples, read the documentation for the individual services below.
161
159
@@ -419,7 +417,7 @@ services in Astroquery, you can use them for your scripts, but we don't guarante
419
417
420
418
To debug astroquery, logging level can be configured with the following:
421
419
422
- .. code-block :: python
420
+ .. doctest-skip ::
423
421
424
422
>>> from astroquery import log
425
423
>>> log.setLevel(level)
0 commit comments