Skip to content

Commit 4f63ca3

Browse files
tinuademargaretbsipocz
authored andcommitted
added remote data directive
1 parent 8a7e23d commit 4f63ca3

File tree

1 file changed

+49
-42
lines changed

1 file changed

+49
-42
lines changed

docs/imcce/imcce.rst

Lines changed: 49 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. doctest-skip-all
2-
31
.. _astroquery.imcce:
42

53
******************************************************************************************************************************************
@@ -17,7 +15,7 @@ IMCCE provides a number of Solar System-related services, two of which are curre
1715
* `Miriade <http://vo.imcce.fr/webservices/miriade/>`_: ephemerides service
1816

1917
Use cases for both services are detailed below.
20-
18+
2119

2220
SkyBot - Solar System Body Identification Service
2321
=================================================
@@ -32,14 +30,15 @@ A simple cone search for Solar System objects in a circular field
3230
looks like this:
3331

3432
.. code-block:: python
33+
.. doctest-remote-data::
3534

3635
>>> from astroquery.imcce import Skybot
3736
>>> from astropy.coordinates import SkyCoord
3837
>>> from astropy.time import Time
3938
>>> import astropy.units as u
4039
>>> field = SkyCoord(0*u.deg, 0*u.deg)
4140
>>> epoch = Time('2019-05-29 21:42', format='iso')
42-
>>> Skybot.cone_search(field, 5*u.arcmin, epoch) # doctest: +SKIP
41+
>>> Skybot.cone_search(field, 5*u.arcmin, epoch) # doctest: +IGNORE_OUTPUT
4342
<QTable length=2>
4443
Number Name RA ... vy vz epoch
4544
deg ... AU / d AU / d d
@@ -50,8 +49,8 @@ looks like this:
5049

5150
`~astroquery.imcce.SkybotClass.cone_search` produces a
5251
`~astropy.table.QTable` object with the properties of all Solar System
53-
bodies that are present in the cone at the given epoch.
54-
52+
bodies that are present in the cone at the given epoch.
53+
5554
The required input arguments for
5655
`~astroquery.imcce.SkybotClass.cone_search` are the center coordinates
5756
of the cone, its radius, as well as the epoch of the
@@ -142,16 +141,17 @@ The most minimalistic `~astroquery.imcce.MiriadeClass.get_ephemerides`
142141
query looks like this:
143142

144143
.. code-block:: python
144+
.. doctest-remote-data::
145+
146+
>>> from astroquery.imcce import Miriade
147+
>>> Miriade.get_ephemerides('Ceres') # doctest: +IGNORE_OUTPUT
148+
<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
145154

146-
>>> from astroquery.miriade import Miriade
147-
>>> Miriade.get_ephemerides('Ceres')
148-
<Table masked=True length=1>
149-
target epoch RA ... DEC_rate delta_rate
150-
d deg ... arcs / min km / s
151-
bytes20 float64 float64 ... float64 float64
152-
------- -------------------- ----------------- ... ---------- ------------
153-
Ceres 2458519.315165116 242.1874308333333 ... -0.14926 -20.9668673
154-
155155
This query will return ephemerides for asteroid Ceres, for the current
156156
epoch, and for a geocentric location. The query output is formatted as
157157
a `~astropy.table.Table`.
@@ -181,30 +181,38 @@ Consider the following example, which queries ephemerides for asteroid
181181
Pallas over an entire year with a time step of 1 day:
182182

183183
.. code-block:: python
184+
.. doctest-remote-data::
184185

185-
>>> from astroquery.miriade import Miriade
186+
>>> from astroquery.imcce import Miriade
186187
>>> Miriade.get_ephemerides('Pallas', epoch='2019-01-01',
187-
>>> epoch_step='1d', epoch_nsteps=365) # doctest: +SKIP
188-
<Table masked=True length=365>
189-
target epoch RA ... DEC_rate delta_rate
190-
d deg ... arcs / min km / s
191-
bytes20 float64 float64 ... float64 float64
192-
------- -------------------- ------------------ ... ---------- ------------
193-
Pallas 2458484.5 200.5865645833333 ... 0.15854 -19.3678422
194-
Pallas 2458485.5 200.92699458333328 ... 0.16727 -19.4137907
195-
Pallas 2458486.5 201.26416541666663 ... 0.17613 -19.4552649
196-
Pallas 2458487.5 201.59800958333332 ... 0.18511 -19.4921113
197-
Pallas 2458488.5 201.9284608333333 ... 0.19421 -19.5241972
198-
Pallas 2458489.5 202.25545124999996 ... 0.20344 -19.5514101
199-
... ... ... ... ... ...
200-
Pallas 2458843.5 261.1308308333333 ... 0.025007 -2.2916737
201-
Pallas 2458844.5 261.5084158333333 ... 0.029542 -2.5107013
202-
Pallas 2458845.5 261.88534958333327 ... 0.034077 -2.7290895
203-
Pallas 2458846.5 262.2616025 ... 0.038612 -2.9467393
204-
Pallas 2458847.5 262.6371470833333 ... 0.043144 -3.1635784
205-
Pallas 2458848.5 263.011955 ... 0.047672 -3.3795565
206-
207-
188+
... epoch_step='1d', epoch_nsteps=365)
189+
<Table length=365>
190+
target epoch RA ... DEC_rate delta_rate
191+
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
214+
215+
208216
The observer location is defined through the ``location`` keyword,
209217
expecting a string containing the official IAU observatory code, a
210218
spacecraft name, or a set of coordinates (see the `Miriade manual
@@ -306,8 +314,8 @@ to be provided to the keyword ``coordtype`` to use these sets) :
306314
+------------------+-----------------------------------------------+
307315
| ``vz_h`` | Z heliocentric vel. vector (au/d, float) |
308316
+------------------+-----------------------------------------------+
309-
310-
317+
318+
311319
3. Local coordinates:
312320

313321
+------------------+-----------------------------------------------+
@@ -454,7 +462,7 @@ results:
454462
ecliptical coordinates
455463
* ``elements``: switch to MPCORB ephemerides instead of ASTORB
456464
* ``radial_velocity``: provides additional information on target's radial
457-
velocity
465+
velocity
458466

459467

460468

@@ -483,10 +491,9 @@ Please consider the following notes from IMCCE:
483491
The development of this submodule is funded through NASA PDART Grant
484492
No. 80NSSC18K0987 to the `sbpy project <http://sbpy.org>`_.
485493

486-
494+
487495
Reference/API
488496
=============
489497

490498
.. automodapi:: astroquery.imcce
491499
:no-inheritance-diagram:
492-

0 commit comments

Comments
 (0)