Skip to content

Commit 8dc4ae4

Browse files
committed
DOC: fixing more doctest and sphinx for imcee
1 parent 4f63ca3 commit 8dc4ae4

File tree

1 file changed

+48
-42
lines changed

1 file changed

+48
-42
lines changed

docs/imcce/imcce.rst

Lines changed: 48 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ Cone Search
2929
A simple cone search for Solar System objects in a circular field
3030
looks like this:
3131

32-
.. code-block:: python
3332
.. doctest-remote-data::
3433

3534
>>> from astroquery.imcce import Skybot
@@ -38,14 +37,24 @@ looks like this:
3837
>>> import astropy.units as u
3938
>>> field = SkyCoord(0*u.deg, 0*u.deg)
4039
>>> epoch = Time('2019-05-29 21:42', format='iso')
41-
>>> Skybot.cone_search(field, 5*u.arcmin, epoch) # doctest: +IGNORE_OUTPUT
42-
<QTable length=2>
43-
Number Name RA ... vy vz epoch
44-
deg ... AU / d AU / d d
45-
int64 str10 float64 ... float64 float64 float64
46-
------ ---------- ------------------ ... ----------- ----------- ---------
47-
516566 2007 DH36 0.005535 ... 0.008556458 0.002875929 2458630.0
48-
163149 2002 CV106 359.98691791666664 ... 0.009078103 0.00267749 2458630.0
40+
>>> Skybot.cone_search(field, 5*u.arcmin, epoch)
41+
<QTable length=12>
42+
Number Name RA ... vy vz epoch
43+
deg ... AU / d AU / d d
44+
int64 str10 float64 ... float64 float64 float64
45+
------ ---------- -------------------- ... ----------- ----------- ---------
46+
-- -- 0.0 ... 0.002324846 0.000311389 2458630.0
47+
-- -- 0.0 ... ——— ——— 2458630.0
48+
-- -- 0.0 ... ——— ——— 2458630.0
49+
-- -- 0.0 ... ——— ——— 2458630.0
50+
-- -- 0.0 ... ——— ——— 2458630.0
51+
-- -- 0.0 ... ——— ——— 2458630.0
52+
-- -- 0.0 ... ——— ——— 2458630.0
53+
-- -- 0.0 ... ——— ——— 2458630.0
54+
-- 2012 BO42 0.019414999999999998 ... 0.009345668 0.005003011 2458630.0
55+
516566 2007 DH36 0.005546249999999999 ... 0.00855646 0.002875928 2458630.0
56+
-- 2019 SS82 359.9931945833333 ... 0.009809784 0.004636687 2458630.0
57+
163149 2002 CV106 359.98692374999996 ... 0.009078104 0.00267749 2458630.0
4958

5059
`~astroquery.imcce.SkybotClass.cone_search` produces a
5160
`~astropy.table.QTable` object with the properties of all Solar System
@@ -140,17 +149,16 @@ The *Miriade* service enable the query of Solar System object ephemerides.
140149
The most minimalistic `~astroquery.imcce.MiriadeClass.get_ephemerides`
141150
query looks like this:
142151

143-
.. code-block:: python
144152
.. doctest-remote-data::
145153

146154
>>> from astroquery.imcce import Miriade
147-
>>> Miriade.get_ephemerides('Ceres') # doctest: +IGNORE_OUTPUT
155+
>>> Miriade.get_ephemerides('Ceres') # doctest: +IGNORE_OUTPUT
148156
<Table length=1>
149-
target epoch RA ... DEC_rate delta_rate
150-
d deg ... arcsec / min km / s
151-
str20 float64 float64 ... float64 float64
152-
------ -------------------- ------------ ... ------------ ------------
153-
Ceres 2459243.5488214926 355.21360625 ... 0.42203 15.7644188
157+
target epoch RA ... DEC_rate delta_rate
158+
d deg ... arcsec / min km / s
159+
str20 float64 float64 ... float64 float64
160+
------ -------------------- ------------------ ... ------------ ------------
161+
Ceres 2459914.7406457304 178.71843708333333 ... -0.18976 -21.5458636
154162

155163
This query will return ephemerides for asteroid Ceres, for the current
156164
epoch, and for a geocentric location. The query output is formatted as
@@ -180,37 +188,36 @@ which means that only a single epoch ``epoch`` will be queried.
180188
Consider the following example, which queries ephemerides for asteroid
181189
Pallas over an entire year with a time step of 1 day:
182190

183-
.. code-block:: python
184191
.. doctest-remote-data::
185192

186193
>>> from astroquery.imcce import Miriade
187194
>>> Miriade.get_ephemerides('Pallas', epoch='2019-01-01',
188-
... epoch_step='1d', epoch_nsteps=365)
189-
<Table length=365>
195+
... epoch_step='1d', epoch_nsteps=365)
196+
<Table length=365>
190197
target epoch RA ... DEC_rate delta_rate
191198
d deg ... arcsec / min km / s
192-
str20 float64 float64 ... float64 float64
193-
------ -------------------- ------------------ ... ------------ ------------
194-
Pallas 2458484.5 200.58657499999998 ... 0.15854 -19.3678409
195-
Pallas 2458485.5 200.92700499999998 ... 0.16727 -19.4137895
196-
Pallas 2458486.5 201.26417583333333 ... 0.17613 -19.4552637
197-
Pallas 2458487.5 201.59802 ... 0.18511 -19.4921101
198-
Pallas 2458488.5 201.92847124999997 ... 0.19421 -19.524196
199-
Pallas 2458489.5 202.25546166666663 ... 0.20344 -19.551409
200-
Pallas 2458490.5 202.57892541666664 ... 0.21278 -19.573655
201-
Pallas 2458491.5 202.89879624999998 ... 0.22224 -19.5908573
202-
Pallas 2458492.5 203.2150083333333 ... 0.23182 -19.6029527
203-
... ... ... ... ... ...
204-
Pallas 2458839.5 259.61457874999996 ... 0.0069182 -1.4120106
205-
Pallas 2458840.5 259.9944708333333 ... 0.011429 -1.6321318
206-
Pallas 2458841.5 260.37383125 ... 0.015948 -1.8522288
207-
Pallas 2458842.5 260.75262958333326 ... 0.020475 -2.072131
208-
Pallas 2458843.5 261.13083624999996 ... 0.025007 -2.2916715
209-
Pallas 2458844.5 261.50842124999997 ... 0.029542 -2.5106991
210-
Pallas 2458845.5 261.88535499999995 ... 0.034077 -2.7290872
211-
Pallas 2458846.5 262.26160791666666 ... 0.038612 -2.946737
212-
Pallas 2458847.5 262.63715249999996 ... 0.043144 -3.1635762
213-
Pallas 2458848.5 263.0119604166667 ... 0.047672 -3.3795543
199+
str20 float64 float64 ... float64 float64
200+
------ -------------------- ------------------ ... ------------ ------------
201+
Pallas 2458484.5 200.58650791666665 ... 0.15854 -19.3678463
202+
Pallas 2458485.5 200.92693791666662 ... 0.16727 -19.4137948
203+
Pallas 2458486.5 201.26410874999996 ... 0.17613 -19.455269
204+
Pallas 2458487.5 201.59795291666666 ... 0.18511 -19.4921153
205+
Pallas 2458488.5 201.92840374999994 ... 0.19421 -19.5242013
206+
Pallas 2458489.5 202.25539416666663 ... 0.20344 -19.5514142
207+
Pallas 2458490.5 202.57885791666664 ... 0.21278 -19.5736602
208+
Pallas 2458491.5 202.8987283333333 ... 0.22224 -19.5908624
209+
Pallas 2458492.5 203.21493999999996 ... 0.23181 -19.6029579
210+
... ... ... ... ... ...
211+
Pallas 2458839.5 259.61455249999995 ... 0.0069182 -1.4120216
212+
Pallas 2458840.5 259.994445 ... 0.011429 -1.632143
213+
Pallas 2458841.5 260.373805 ... 0.015948 -1.8522401
214+
Pallas 2458842.5 260.75260374999993 ... 0.020475 -2.0721425
215+
Pallas 2458843.5 261.13081041666663 ... 0.025007 -2.2916831
216+
Pallas 2458844.5 261.50839541666664 ... 0.029542 -2.5107109
217+
Pallas 2458845.5 261.8853291666666 ... 0.034077 -2.7290991
218+
Pallas 2458846.5 262.2615820833333 ... 0.038612 -2.9467491
219+
Pallas 2458847.5 262.63712666666663 ... 0.043144 -3.1635884
220+
Pallas 2458848.5 263.0119345833333 ... 0.047672 -3.3795666
214221

215222

216223
The observer location is defined through the ``location`` keyword,
@@ -466,7 +473,6 @@ results:
466473

467474

468475

469-
470476
Acknowledgements
471477
================
472478

0 commit comments

Comments
 (0)