Skip to content

Commit cc279d5

Browse files
committed
DOC: fix more example doctest failures
1 parent ed7d702 commit cc279d5

File tree

6 files changed

+103
-103
lines changed

6 files changed

+103
-103
lines changed

docs/gemini/gemini.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ Positional queries can be based on a sky position. Radius is an optional parame
2424
>>> coord = coordinates.SkyCoord(210.80242917, 54.34875, unit="deg")
2525
>>> data = Observations.query_region(coordinates=coord, radius=0.3*units.deg)
2626
>>> print(data[0:5])
27-
exposure_time detector_roi_setting ... release dec
27+
exposure_time detector_roi_setting ... release dec
2828
------------- -------------------- ... ---------- ---------------
29-
119.9986 Full Frame ... 2008-08-21 54.34877772501
30-
119.9983 Full Frame ... 2008-09-25 54.376194395654
31-
119.9986 Full Frame ... 2008-09-25 54.366916626746
32-
119.9983 Full Frame ... 2008-09-25 54.274527402457
33-
99.9983 Full Frame ... 2013-08-16 54.307561057825
29+
119.998583 Full Frame ... 2008-08-21 54.34877772501
30+
119.998312 Full Frame ... 2008-09-25 54.376194395654
31+
119.998634 Full Frame ... 2008-09-25 54.366916626746
32+
119.998292 Full Frame ... 2008-09-25 54.274527402457
33+
99.998281 Full Frame ... 2013-08-16 54.307561057825
3434

3535

3636
Observation Name Queries
@@ -43,13 +43,13 @@ You may also do a query by the name of the object you are interested in.
4343
>>> from astroquery.gemini import Observations
4444
>>> data = Observations.query_object(objectname='m101')
4545
>>> print(data[0:5])
46-
exposure_time detector_roi_setting ... release dec
46+
exposure_time detector_roi_setting ... release dec
4747
------------- -------------------- ... ---------- ---------------
4848
-- Undefined ... 2013-12-21 --
4949
-- Undefined ... 2013-12-21 --
50-
49.9987 Full Frame ... 2013-08-28 54.348777039949
51-
49.9987 Full Frame ... 2013-08-28 54.346975563951
52-
49.9989 Full Frame ... 2013-08-28 54.347048438693
50+
49.998716 Full Frame ... 2013-08-28 54.348777039949
51+
49.998719 Full Frame ... 2013-08-28 54.346975563951
52+
49.998904 Full Frame ... 2013-08-28 54.347048438693
5353

5454

5555
Observation Criteria Queries

docs/index.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ queries based on coordinates or object names. Some simple examples, using SIMBA
141141
>>> from astroquery.simbad import Simbad
142142
>>> result_table = Simbad.query_object("m1")
143143
>>> result_table.pprint()
144-
main_id ra dec coo_err_maj ... coo_err_angle coo_wavelength coo_bibcode matched_id
145-
deg deg mas ... deg
146-
------- ------- ------- ----------- ... ------------- -------------- ------------------- ----------
147-
M 1 83.6287 22.0147 18500.0 ... 0 R 1995AuJPh..48..143S M 1
144+
main_id ra dec coo_err_maj coo_err_min coo_err_angle coo_wavelength coo_bibcode matched_id
145+
deg deg mas mas deg
146+
------- ------- ------- ----------- ----------- ------------- -------------- ------------------- ----------
147+
M 1 83.6324 22.0174 5000.0 5000.0 90 X 2022A&A...661A..38P M 1
148148

149149
All query tools allow coordinate-based queries:
150150

@@ -156,14 +156,14 @@ All query tools allow coordinate-based queries:
156156
>>> r = 5 * u.arcminute
157157
>>> result_table = Simbad.query_region(c, radius=r)
158158
>>> result_table.pprint(show_unit=True, max_width=80, max_lines=5)
159-
main_id ra ... coo_wavelength coo_bibcode
160-
deg ...
161-
--------------------- ----------------- ... -------------- -------------------
162-
COUP J053515.3-052225 83.81426666666665 ... O 1999AJ....117.1375S
163-
... ... ... ... ...
164-
* tet01 Ori H 83.81580416666667 ... I 2003yCat.2246....0C
165-
[H97b] 9009 83.79990004111 ... O 2020yCat.1350....0G
166-
Length = 3270 rows
159+
main_id ra ... coo_bibcode
160+
deg ...
161+
---------------------------- -------------- ... -------------------
162+
ALMA J053514.4142-052220.792 83.8100591667 ... 2023MNRAS.522...56V
163+
... ... ... ...
164+
2MASS J05351163-0522515 83.79846499816 ... 2020yCat.1350....0G
165+
[H97b] 9009 83.79990004111 ... 2020yCat.1350....0G
166+
Length = 3324 rows
167167

168168
For additional guidance and examples, read the documentation for the individual services below.
169169

docs/ipac/irsa/irsa.rst

Lines changed: 61 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,16 @@ entered as a string that is parsable by `~astropy.coordinates.Angle`.
7070
>>> table = Irsa.query_region("m31", catalog="fp_psc", spatial="Cone",
7171
... radius=2 * u.arcmin)
7272
>>> print(table)
73-
ra dec err_maj err_min ... coadd_key coadd htm20
74-
deg deg arcsec arcsec ...
75-
---------- ---------- ------- ------- ... --------- ----- -------------------
76-
10.692216 41.260162 0.10 0.09 ... 1590591 33 4805203678124326400
77-
10.700059 41.263481 0.31 0.30 ... 1590591 33 4805203678125364736
78-
10.699131 41.263248 0.28 0.20 ... 1590591 33 4805203678125474304
79-
... ... ... ... ... ... ... ...
80-
10.661414 41.242363 0.21 0.20 ... 1590591 33 4805203679644192256
81-
10.665184 41.240238 0.14 0.13 ... 1590591 33 4805203679647824896
82-
10.663245 41.240646 0.24 0.21 ... 1590591 33 4805203679649555456
73+
ra dec err_maj err_min ... coadd_key coadd htm20
74+
deg deg arcsec arcsec ...
75+
--------- --------- ------- ------- ... --------- ----- -------------------
76+
10.692216 41.260162 0.10 0.09 ... 1590591 33 4805203678124326400
77+
10.700059 41.263481 0.31 0.30 ... 1590591 33 4805203678125364736
78+
10.699131 41.263248 0.28 0.20 ... 1590591 33 4805203678125474304
79+
... ... ... ... ... ... ... ...
80+
10.661414 41.242363 0.21 0.20 ... 1590591 33 4805203679644192256
81+
10.665184 41.240238 0.14 0.13 ... 1590591 33 4805203679647824896
82+
10.663245 41.240646 0.24 0.21 ... 1590591 33 4805203679649555456
8383
Length = 774 rows
8484

8585
The coordinates of the center may be specified rather than using the target
@@ -94,16 +94,16 @@ object or a string resolvable by the `~astropy.coordinates.SkyCoord` constructor
9494
>>> table = Irsa.query_region(coordinates=coord,
9595
... catalog='fp_psc', radius='0d2m0s')
9696
>>> print(table)
97-
ra dec err_maj err_min ... coadd_key coadd htm20
98-
deg deg arcsec arcsec ...
99-
---------- ---------- ------- ------- ... --------- ----- -------------------
100-
10.692216 41.260162 0.10 0.09 ... 1590591 33 4805203678124326400
101-
10.700059 41.263481 0.31 0.30 ... 1590591 33 4805203678125364736
102-
10.699131 41.263248 0.28 0.20 ... 1590591 33 4805203678125474304
103-
... ... ... ... ... ... ... ...
104-
10.661414 41.242363 0.21 0.20 ... 1590591 33 4805203679644192256
105-
10.665184 41.240238 0.14 0.13 ... 1590591 33 4805203679647824896
106-
10.663245 41.240646 0.24 0.21 ... 1590591 33 4805203679649555456
97+
ra dec err_maj err_min ... coadd_key coadd htm20
98+
deg deg arcsec arcsec ...
99+
--------- --------- ------- ------- ... --------- ----- -------------------
100+
10.692216 41.260162 0.10 0.09 ... 1590591 33 4805203678124326400
101+
10.700059 41.263481 0.31 0.30 ... 1590591 33 4805203678125364736
102+
10.699131 41.263248 0.28 0.20 ... 1590591 33 4805203678125474304
103+
... ... ... ... ... ... ... ...
104+
10.661414 41.242363 0.21 0.20 ... 1590591 33 4805203679644192256
105+
10.665184 41.240238 0.14 0.13 ... 1590591 33 4805203679647824896
106+
10.663245 41.240646 0.24 0.21 ... 1590591 33 4805203679649555456
107107
Length = 774 rows
108108

109109
Queries over a polygon
@@ -129,16 +129,16 @@ options is illustrated below:
129129
... coordinates.SkyCoord(ra=10.0, dec=10.0, unit=(u.deg, u.deg), frame='icrs')
130130
... ])
131131
>>> print(table)
132-
ra dec err_maj err_min ... coadd_key coadd htm20
133-
deg deg arcsec arcsec ...
134-
---------- ---------- ------- ------- ... --------- ----- -------------------
135-
10.015839 10.038061 0.09 0.06 ... 1443005 91 4805087709670704640
136-
10.015696 10.099228 0.10 0.07 ... 1443005 91 4805087709940635648
137-
10.011170 10.093903 0.23 0.21 ... 1443005 91 4805087710032524288
138-
10.031016 10.063082 0.19 0.18 ... 1443005 91 4805087710169327616
139-
10.036776 10.060278 0.11 0.06 ... 1443005 91 4805087710175392768
140-
10.059964 10.085445 0.23 0.20 ... 1443005 91 4805087710674674176
141-
10.005549 10.018401 0.16 0.14 ... 1443005 91 4805087784811171840
132+
ra dec err_maj err_min ... coadd_key coadd htm20
133+
deg deg arcsec arcsec ...
134+
--------- --------- ------- ------- ... --------- ----- -------------------
135+
10.015839 10.038061 0.09 0.06 ... 1443005 91 4805087709670704640
136+
10.015696 10.099228 0.10 0.07 ... 1443005 91 4805087709940635648
137+
10.011170 10.093903 0.23 0.21 ... 1443005 91 4805087710032524288
138+
10.031016 10.063082 0.19 0.18 ... 1443005 91 4805087710169327616
139+
10.036776 10.060278 0.11 0.06 ... 1443005 91 4805087710175392768
140+
10.059964 10.085445 0.23 0.20 ... 1443005 91 4805087710674674176
141+
10.005549 10.018401 0.16 0.14 ... 1443005 91 4805087784811171840
142142

143143
Another way to specify the polygon is directly as a list of tuples - each tuple
144144
is an ra, dec pair expressed in degrees:
@@ -149,16 +149,16 @@ is an ra, dec pair expressed in degrees:
149149
>>> table = Irsa.query_region("m31", catalog="fp_psc", spatial="Polygon",
150150
... polygon = [(10.1, 10.1), (10.0, 10.1), (10.0, 10.0)]) # doctest: +IGNORE_WARNINGS
151151
>>> print(table)
152-
ra dec err_maj err_min ... coadd_key coadd htm20
153-
deg deg arcsec arcsec ...
154-
---------- ---------- ------- ------- ... --------- ----- -------------------
155-
10.015839 10.038061 0.09 0.06 ... 1443005 91 4805087709670704640
156-
10.015696 10.099228 0.10 0.07 ... 1443005 91 4805087709940635648
157-
10.011170 10.093903 0.23 0.21 ... 1443005 91 4805087710032524288
158-
10.031016 10.063082 0.19 0.18 ... 1443005 91 4805087710169327616
159-
10.036776 10.060278 0.11 0.06 ... 1443005 91 4805087710175392768
160-
10.059964 10.085445 0.23 0.20 ... 1443005 91 4805087710674674176
161-
10.005549 10.018401 0.16 0.14 ... 1443005 91 4805087784811171840
152+
ra dec err_maj err_min ... coadd_key coadd htm20
153+
deg deg arcsec arcsec ...
154+
--------- --------- ------- ------- ... --------- ----- -------------------
155+
10.015839 10.038061 0.09 0.06 ... 1443005 91 4805087709670704640
156+
10.015696 10.099228 0.10 0.07 ... 1443005 91 4805087709940635648
157+
10.011170 10.093903 0.23 0.21 ... 1443005 91 4805087710032524288
158+
10.031016 10.063082 0.19 0.18 ... 1443005 91 4805087710169327616
159+
10.036776 10.060278 0.11 0.06 ... 1443005 91 4805087710175392768
160+
10.059964 10.085445 0.23 0.20 ... 1443005 91 4805087710674674176
161+
10.005549 10.018401 0.16 0.14 ... 1443005 91 4805087784811171840
162162

163163
Selecting Columns
164164
-----------------
@@ -178,10 +178,10 @@ star HIP 12 with just the ra, dec and w1mpro columns would be:
178178
>>> from astroquery.ipac.irsa import Irsa
179179
>>> table = Irsa.query_region("HIP 12", catalog="allwise_p3as_psd", spatial="Cone", columns="ra,dec,w1mpro")
180180
>>> print(table)
181-
ra dec w1mpro
182-
deg deg mag
183-
----------- ----------- -------
184-
0.0407905 -35.9602605 4.837
181+
ra dec w1mpro
182+
deg deg mag
183+
--------- ----------- ------
184+
0.0407905 -35.9602605 4.837
185185

186186
A list of available columns for each catalog can be found at
187187
https://irsa.ipac.caltech.edu/holdings/catalogs.html. The "Long Form" button
@@ -204,20 +204,20 @@ returned as a `~pyvo.dal.TAPResults` object. Its ``to_table`` or ``to_qtable`` m
204204
>>> results = Irsa.query_tap(query=query).to_qtable() # doctest: +IGNORE_WARNINGS
205205
>>> results
206206
<QTable length=10>
207-
ra dec j_m j_msigcom ... k_m k_msigcom ph_qual cc_flg
208-
deg deg mag mag ... mag mag
209-
float64 float64 float32 float32 ... float32 float32 object object
210-
---------- ---------- ------- --------- ... ------- --------- ------- ------
211-
202.900750 46.961285 16.168 0.096 ... 15.180 0.158 ABC 000
212-
202.951614 47.024986 15.773 0.072 ... 15.541 0.234 ABD 000
213-
202.922589 47.024452 14.628 0.032 ... 14.036 0.059 AAA 000
214-
202.911833 47.011093 13.948 0.025 ... 13.318 0.036 AAA 000
215-
202.925932 47.004223 16.461 0.131 ... 17.007 ——— BCU 000
216-
202.515450 46.929302 15.967 0.088 ... 15.077 0.140 AAB 000
217-
202.532240 46.931587 16.575 0.145 ... 15.888 ——— BDU 000
218-
202.607930 46.932255 16.658 0.147 ... 15.430 0.193 BUC 000
219-
202.823902 47.011593 16.555 0.143 ... 16.136 ——— BBU 000
220-
202.809023 46.964558 15.874 0.081 ... 15.322 0.188 AAC 000
207+
ra dec j_m j_msigcom ... k_m k_msigcom ph_qual cc_flg
208+
deg deg mag mag ... mag mag
209+
float64 float64 float32 float32 ... float32 float32 object object
210+
---------- --------- ------- --------- ... ------- --------- ------- ------
211+
202.900750 46.961285 16.168 0.096 ... 15.180 0.158 ABC 000
212+
202.951614 47.024986 15.773 0.072 ... 15.541 0.234 ABD 000
213+
202.922589 47.024452 14.628 0.032 ... 14.036 0.059 AAA 000
214+
202.911833 47.011093 13.948 0.025 ... 13.318 0.036 AAA 000
215+
202.925932 47.004223 16.461 0.131 ... 17.007 ——— BCU 000
216+
202.515450 46.929302 15.967 0.088 ... 15.077 0.140 AAB 000
217+
202.532240 46.931587 16.575 0.145 ... 15.888 ——— BDU 000
218+
202.607930 46.932255 16.658 0.147 ... 15.430 0.193 BUC 000
219+
202.823902 47.011593 16.555 0.143 ... 16.136 ——— BBU 000
220+
202.809023 46.964558 15.874 0.081 ... 15.322 0.188 AAC 000
221221

222222

223223
Simple image access queries
@@ -244,9 +244,9 @@ will return a `~astropy.table.Table`:
244244

245245
>>> from astroquery.ipac.irsa import Irsa
246246
>>> Irsa.list_collections()
247-
<Table length=123>
248-
collection
249-
object
247+
<Table length=124>
248+
collection
249+
object
250250
---------------------
251251
akari_allskymaps
252252
blast

0 commit comments

Comments
 (0)