Skip to content

Commit 486a777

Browse files
committed
DOC: fixing examples that caused remote test failures
1 parent 630686c commit 486a777

File tree

10 files changed

+84
-92
lines changed

10 files changed

+84
-92
lines changed

docs/casda/casda.rst

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ For example:
2929
obs_publisher_did s_ra s_dec obs_release_date
3030
deg deg
3131
----------------- --------------- ---------------- ------------------------
32-
cube-11460 326.52250211117 -43.891190432671 2020-11-18T09:49:27.134Z
33-
cube-11461 326.52250211117 -43.891190432671 2020-11-18T09:49:27.134Z
34-
cube-11462 326.52250211117 -43.891190432671 2020-11-18T09:49:27.134Z
35-
cube-11463 326.52250211117 -43.891190432671 2020-11-18T09:49:27.134Z
36-
cube-11464 326.52250211117 -43.891190432671 2020-11-18T09:49:27.134Z
32+
cube-1170 333.70448386919 -45.966341151806 2019-01-30T13:00:00.000Z
33+
cube-60339 333.74878924962 -46.50601666028 2022-03-18T00:32:52.674Z
34+
cube-60338 333.74878924962 -46.50601666028 2022-03-18T00:32:52.674Z
35+
cube-60337 333.74878924962 -46.50601666028 2022-03-18T00:32:52.674Z
36+
cube-60336 333.74878924962 -46.50601666028 2022-03-18T00:32:52.674Z
3737

3838

3939
In most cases only public data is required. While most ASKAP data is public, some data products may not be released for quality reasons.
@@ -49,11 +49,11 @@ For example to filter out the 30 non-public results from the above data set:
4949
obs_publisher_did s_ra s_dec obs_release_date
5050
deg deg
5151
----------------- --------------- ---------------- ------------------------
52-
cube-11460 326.52250211117 -43.891190432671 2020-11-18T09:49:27.134Z
53-
cube-11461 326.52250211117 -43.891190432671 2020-11-18T09:49:27.134Z
54-
cube-11462 326.52250211117 -43.891190432671 2020-11-18T09:49:27.134Z
55-
cube-11463 326.52250211117 -43.891190432671 2020-11-18T09:49:27.134Z
56-
cube-11464 326.52250211117 -43.891190432671 2020-11-18T09:49:27.134Z
52+
cube-1170 333.70448386919 -45.966341151806 2019-01-30T13:00:00.000Z
53+
cube-60339 333.74878924962 -46.50601666028 2022-03-18T00:32:52.674Z
54+
cube-60338 333.74878924962 -46.50601666028 2022-03-18T00:32:52.674Z
55+
cube-60337 333.74878924962 -46.50601666028 2022-03-18T00:32:52.674Z
56+
cube-60336 333.74878924962 -46.50601666028 2022-03-18T00:32:52.674Z
5757

5858

5959
Authentication
@@ -71,7 +71,7 @@ date. To change user-registration details, or to request a new OPAL password,
7171
use the link to 'Log in or reset password'.
7272

7373
To use download tasks, you should create an instance of the ``Casda`` class
74-
and call the :meth:`~astroquery.casda.CasdaClass.login` method with a username. The password will either be taken
74+
and call the :meth:`~astroquery.casda.CasdaClass.login` method with a username. The password will either be taken
7575
from the keyring, or if in an interactive environment then it will be requested. e.g.:
7676

7777
.. doctest-skip::
@@ -90,14 +90,14 @@ Data Access
9090

9191
.. versionadded:: 0.4.4
9292

93-
In order to access data in CASDA you must first stage the data using the :meth:`~astroquery.casda.CasdaClass.stage_data`
93+
In order to access data in CASDA you must first stage the data using the :meth:`~astroquery.casda.CasdaClass.stage_data`
9494
method.
9595
This is because only some of the data in CASDA is held on disc at any particular time.
96-
The :meth:`~astroquery.casda.CasdaClass.stage_data` method should be passed an astropy Table object containing an
96+
The :meth:`~astroquery.casda.CasdaClass.stage_data` method should be passed an astropy Table object containing an
9797
'access_url' column.
9898
This column should contain the datalink address of the data product.
9999

100-
Once the data has been assembled you can then download the data using the :meth:`~astroquery.casda.CasdaClass.download_files`
100+
Once the data has been assembled you can then download the data using the :meth:`~astroquery.casda.CasdaClass.download_files`
101101
method, or using tools such as wget.
102102
Authentication is required when staging the data, but not for the download.
103103

@@ -128,9 +128,9 @@ Cutouts
128128

129129
As well as accessing full data products, the CASDA service can produce cutout images and cubes from larger data products.
130130
The cutout support in AstroQuery allows both spatial and spectral cutouts.
131-
To produce a spatial cutout, pass in a coordinate and either a radius or a height and a width to the
131+
To produce a spatial cutout, pass in a coordinate and either a radius or a height and a width to the
132132
:meth:`~astroquery.casda.CasdaClass.cutout` method.
133-
To produce a spectral cutout, pass in either a band or a channel value.
133+
To produce a spectral cutout, pass in either a band or a channel value.
134134
For band, the value must be a list or tuple of two `astropy.units.Quantity` objects specifying a low and high frequency
135135
or wavelength. For an open ended range use `None` as the open value.
136136
For channel, the value must be a list or tuple of two integers specifying the low and high channels (i.e. planes of a
@@ -176,7 +176,7 @@ is shown below:
176176
>>> url_list = casda.cutout(eridanus_cube, coordinates=centre, radius=9*u.arcmin, band=freq)
177177
>>> filelist = casda.download_files(url_list, savedir='/tmp')
178178

179-
An example script to download a 3D cutout of a spectral channel range from the WALLABY Pre-Pilot Eridanus cube
179+
An example script to download a 3D cutout of a spectral channel range from the WALLABY Pre-Pilot Eridanus cube
180180
is shown below:
181181

182182
.. doctest-skip::

docs/imcce/imcce.rst

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ looks like this:
3939
>>> epoch = Time('2019-05-29 21:42', format='iso')
4040
>>> results = Skybot.cone_search(field, 5*u.arcmin, epoch)
4141
>>> results.pprint(max_width=80) # doctest: +IGNORE_OUTPUT
42-
Number Name RA ... vy vz epoch
43-
deg ... AU / d AU / d d
42+
Number Name RA ... vy vz epoch
43+
deg ... AU / d AU / d d
4444
------ ---------- -------------------- ... ----------- ----------- ---------
4545
-- 2012 BO42 0.019414999999999998 ... 0.009345668 0.005003011 2458630.0
4646
516566 2007 DH36 0.005546249999999999 ... 0.00855646 0.002875928 2458630.0
@@ -184,31 +184,22 @@ Pallas over an entire year with a time step of 1 day:
184184
>>> from astroquery.imcce import Miriade
185185
>>> Miriade.get_ephemerides('Pallas', epoch='2019-01-01',
186186
... epoch_step='1d', epoch_nsteps=365)
187-
<Table length=365>
188-
target epoch RA ... DEC_rate delta_rate
189-
d deg ... arcsec / min km / s
190-
str20 float64 float64 ... float64 float64
191-
------ -------------------- ------------------ ... ------------ ------------
192-
Pallas 2458484.5 200.58650874999998 ... 0.15854 -19.3678463
193-
Pallas 2458485.5 200.92693874999998 ... 0.16727 -19.4137948
194-
Pallas 2458486.5 201.2641095833333 ... 0.17613 -19.4552689
195-
Pallas 2458487.5 201.59795375 ... 0.18511 -19.4921153
196-
Pallas 2458488.5 201.9284045833333 ... 0.19421 -19.5242013
197-
Pallas 2458489.5 202.25539499999996 ... 0.20344 -19.5514142
198-
Pallas 2458490.5 202.57885874999997 ... 0.21278 -19.5736602
199-
Pallas 2458491.5 202.89872916666664 ... 0.22224 -19.5908624
200-
Pallas 2458492.5 203.21494124999998 ... 0.23181 -19.6029579
201-
... ... ... ... ... ...
202-
Pallas 2458839.5 259.6145529166667 ... 0.0069182 -1.4120214
203-
Pallas 2458840.5 259.9944454166666 ... 0.011429 -1.6321428
204-
Pallas 2458841.5 260.37380541666664 ... 0.015948 -1.85224
205-
Pallas 2458842.5 260.75260416666663 ... 0.020475 -2.0721423
206-
Pallas 2458843.5 261.13081083333327 ... 0.025007 -2.2916829
207-
Pallas 2458844.5 261.5083958333333 ... 0.029542 -2.5107107
208-
Pallas 2458845.5 261.88532958333326 ... 0.034077 -2.729099
209-
Pallas 2458846.5 262.2615825 ... 0.038612 -2.946749
210-
Pallas 2458847.5 262.63712708333327 ... 0.043144 -3.1635882
211-
Pallas 2458848.5 263.011935 ... 0.047672 -3.3795665
187+
<Table length=365>
188+
target epoch RA ... DEC_rate delta_rate
189+
d deg ... arcsec / min km / s
190+
str20 float64 float64 ... float64 float64
191+
------ -------------------- ------------------ ... ------------ ------------
192+
Pallas 2458484.5 200.58653041666665 ... 0.15854 -19.3678426
193+
Pallas 2458485.5 200.92696041666662 ... 0.16727 -19.4137911
194+
Pallas 2458486.5 201.2641308333333 ... 0.17613 -19.4552654
195+
Pallas 2458487.5 201.59797541666663 ... 0.18511 -19.4921119
196+
Pallas 2458488.5 201.92842624999997 ... 0.19421 -19.5241979
197+
... ... ... ... ... ...
198+
Pallas 2458844.5 261.5083995833333 ... 0.029542 -2.5107101
199+
Pallas 2458845.5 261.8853333333333 ... 0.034077 -2.7290984
200+
Pallas 2458846.5 262.26158625 ... 0.038612 -2.9467484
201+
Pallas 2458847.5 262.63713083333334 ... 0.043144 -3.1635878
202+
Pallas 2458848.5 263.01193875 ... 0.047672 -3.3795661
212203

213204

214205
The observer location is defined through the ``location`` keyword,

docs/index.rst

Lines changed: 4 additions & 4 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_WAVELENGTH COO_BIBCODE SCRIPT_NUMBER_ID
145-
"h:m:s" "d:m:s" ...
146-
------- -------- -------- ... -------------- ----------- ----------------
147-
M 1 05 34 32 +22 00.8 ... R 1
144+
MAIN_ID RA DEC ... COO_BIBCODE SCRIPT_NUMBER_ID
145+
"h:m:s" "d:m:s" ...
146+
------- ---------- --------- ... ------------------- ----------------
147+
M 1 05 34 30.9 +22 00 53 ... 1995AuJPh..48..143S 1
148148

149149
All query tools allow coordinate-based queries:
150150

docs/ipac/ned/ned.rst

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ instance if you want to query NGC 224
2929
No. Object Name RA ... Redshift Points Diameter Points Associations
3030
degrees ...
3131
--- ----------- ---------- ... --------------- --------------- ------------
32-
1 MESSIER 031 10.68479 ... 39 13 2
32+
1 MESSIER 031 10.68479 ... 40 13 2
3333

3434

3535
Query a region
@@ -58,11 +58,11 @@ specified. By default this is J2000.0 but can also be set to B1950.0.
5858
3 SSTSL2 J122855.23+020341.5 187.23013 ... 0 0
5959
4 SSTSL2 J122855.36+020346.9 187.23068 ... 0 0
6060
... ... ... ... ... ...
61-
863 SSTSL2 J122918.24+020330.7 187.326 ... 0 0
62-
864 SDSS J122918.38+020323.4 187.3266 ... 4 0
63-
865 SSTSL2 J122918.52+020338.9 187.32718 ... 0 0
64-
866 SSTSL2 J122918.64+020326.7 187.32767 ... 0 0
65-
Length = 866 rows
61+
864 SSTSL2 J122918.24+020330.7 187.326 ... 0 0
62+
865 SDSS J122918.38+020323.4 187.3266 ... 4 0
63+
866 SSTSL2 J122918.52+020338.9 187.32718 ... 0 0
64+
867 SSTSL2 J122918.64+020326.7 187.32767 ... 0 0
65+
Length = 867 rows
6666

6767

6868
Instead of using the name, the target may also be specified via
@@ -220,7 +220,8 @@ Similarly the list of URLs for spectra of a particular object may be fetched:
220220
>>> spectra_list
221221
['http://ned.ipac.caltech.edu/spc1/1992/1992ApJS...80..109B/PG_1226+023:S:B_V:bg1992.fits.gz',
222222
'http://ned.ipac.caltech.edu/spc1/2009/2009A+A...495.1033B/3C_273:S:B:bcc2009.fits.gz',
223-
'http://ned.ipac.caltech.edu/spc1/2009/2009A+A...495.1033B/3C_273:S:RI:bcc2009.fits.gz']
223+
...
224+
'http://ned.ipac.caltech.edu/spc1/2016/2016ApJS..226...19F/3C_273:S:CII158.3x3.fits.gz']
224225

225226

226227
Fetching other data tables for an object
@@ -251,17 +252,17 @@ for the specified object. We look at a simple example:
251252
8 12h29m06.7001s ... Uncertain origin
252253
9 12h29m06.7001s ... Uncertain origin
253254
... ... ... ... ...
254-
138 12h29m06.05s ... Broad-band measurement From new, raw data
255-
139 12h29m06.5s ... Broad-band measurement From new, raw data
256-
140 12h29m06.5s ... Broad-band measurement From reprocessed raw data
257-
141 12h29m09.0s ... Uncertain origin
258-
142 12h29m08.9s ... Uncertain origin
259-
143 12h29m07.9s ... Uncertain origin
260-
144 12h29m04s ... Uncertain origin
261-
145 12h29m06s ... Uncertain origin
262-
146 12h29m08s ... Uncertain origin
263-
147 12h29m06s ... Uncertain origin
264-
Length = 148 rows
255+
144 12h29m06.05s ... Broad-band measurement From new, raw data
256+
145 12h29m06.5s ... Broad-band measurement From new, raw data
257+
146 12h29m06.5s ... Broad-band measurement From reprocessed raw data
258+
147 12h29m09.0s ... Uncertain origin
259+
148 12h29m08.9s ... Uncertain origin
260+
149 12h29m07.9s ... Uncertain origin
261+
150 12h29m04s ... Uncertain origin
262+
151 12h29m06s ... Uncertain origin
263+
152 12h29m08s ... Uncertain origin
264+
153 12h29m06s ... Uncertain origin
265+
Length = 154 rows
265266

266267

267268
Reference/API

docs/ipac/nexsci/nasa_exoplanet_archive.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ A list of accessible tables can be found in the ``TAP_TABLES`` attribute:
9595
>>> NasaExoplanetArchive.TAP_TABLES
9696
['superwasptimeseries',
9797
'kelttimeseries',
98+
'DI_STARS_EXEP',
9899
'transitspec',
99100
'emissionspec',
100101
'ps',

docs/jplhorizons/jplhorizons.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -434,19 +434,19 @@ We can select several columns at a time, for instance RA and DEC for each epoch
434434
.. code-block:: python
435435
436436
>>> print(eph['datetime_str', 'RA', 'DEC']) # doctest: +REMOTE_DATA
437-
datetime_str RA DEC
438-
--- deg deg
439-
----------------- --------- --------
440-
2010-Jan-01 00:00 345.50204 13.43621
441-
2011-Jan-01 00:00 78.77158 61.48831
442-
2012-Jan-01 00:00 119.85659 54.21955
443-
2013-Jan-01 00:00 136.60021 45.8241
444-
2014-Jan-01 00:00 147.44947 37.79876
445-
2015-Jan-01 00:00 156.58967 29.23058
446-
2016-Jan-01 00:00 166.32129 18.48174
447-
2017-Jan-01 00:00 180.6992 1.20453
448-
2018-Jan-01 00:00 232.11974 -37.9554
449-
2019-Jan-01 00:00 16.1066 45.50296
437+
datetime_str RA DEC
438+
--- deg deg
439+
----------------- --------- --------
440+
2010-Jan-01 00:00 345.50204 13.43621
441+
2011-Jan-01 00:00 78.77158 61.48831
442+
2012-Jan-01 00:00 119.85659 54.21955
443+
2013-Jan-01 00:00 136.60021 45.82409
444+
2014-Jan-01 00:00 147.44947 37.79876
445+
2015-Jan-01 00:00 156.58967 29.23058
446+
2016-Jan-01 00:00 166.32129 18.48174
447+
2017-Jan-01 00:00 180.6992 1.20453
448+
2018-Jan-01 00:00 232.11974 -37.9554
449+
2019-Jan-01 00:00 16.1066 45.50296
450450
451451
452452
We can use the same representation to do math with these columns. For instance,
@@ -646,4 +646,4 @@ Reference/API
646646
.. _astropy units: http://docs.astropy.org/en/stable/units/index.html
647647
.. _Definition of Observer Table Quantities: https://ssd.jpl.nasa.gov/horizons/manual.html#observer-table
648648
.. _Horizons documentation: https://ssd.jpl.nasa.gov/horizons/manual.html#observer-table
649-
.. _this section of the Horizons manual: <https://ssd.jpl.nasa.gov/horizons/manual.html#center>
649+
.. _this section of the Horizons manual: <https://ssd.jpl.nasa.gov/horizons/manual.html#center>

docs/linelists/cdms/cdms.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ each setting yields:
3535
... get_query_payload=False)
3636
>>> response.pprint(max_width=120)
3737
FREQ ERR LGINT DR ELO GUP MOLWT TAG QNFMT Ju Ku vu F1u F2u F3u Jl Kl vl F1l F2l F3l name Lab
38-
MHz MHz MHz nm2 1 / cm u
38+
MHz MHz nm2 MHz 1 / cm u
3939
----------- ------ ------- --- -------- --- ----- --- ----- --- --- --- --- --- --- --- --- --- --- --- --- ------- ----
4040
115271.2018 0.0005 -5.0105 2 0.0 3 28 503 101 1 -- -- -- -- -- 0 -- -- -- -- -- CO, v=0 True
4141
230538.0 0.0005 -4.1197 2 3.845 5 28 503 101 2 -- -- -- -- -- 1 -- -- -- -- -- CO, v=0 True
@@ -76,7 +76,7 @@ The units of the columns of the query can be displayed by calling
7676
----- ------- ------- ------------ -----
7777
FREQ float64 MHz Column 0
7878
ERR float64 MHz Column 0
79-
LGINT float64 MHz nm2 Column 0
79+
LGINT float64 nm2 MHz Column 0
8080
DR int64 Column 0
8181
ELO float64 1 / cm Column 0
8282
GUP int64 Column 0

0 commit comments

Comments
 (0)