@@ -26,7 +26,6 @@ In addition, the module provides access to the MPC's hosted list of
26
26
27
27
To return the orbit of Ceres and an ephemeris for the next 20 days:
28
28
29
- .. code-block :: python
30
29
.. doctest-remote-data ::
31
30
32
31
>>> from astroquery.mpc import MPC
@@ -127,7 +126,6 @@ queried in three manners:
127
126
128
127
An example of an exact match:
129
128
130
- .. code-block :: python
131
129
.. doctest-remote-data ::
132
130
133
131
>>> from astroquery.mpc import MPC
@@ -196,7 +194,6 @@ Customizing return fields
196
194
If a consumer isn't interested in some return fields, they can use the
197
195
MPC to limit the fields they're interested in.
198
196
199
- .. code-block :: python
200
197
.. doctest-remote-data ::
201
198
202
199
>>> result = MPC .query_object(' asteroid' , name = " ceres" , return_fields = " name,number" )
@@ -224,7 +221,7 @@ Dates and intervals
224
221
For the ephemeris of asteroid (24) Themis, starting today with the
225
222
default time step (1 day) and location (geocenter):
226
223
227
- .. code-block :: python
224
+
228
225
.. doctest-remote-data ::
229
226
230
227
>>> from astroquery.mpc import MPC
@@ -246,7 +243,7 @@ default time step (1 day) and location (geocenter):
246
243
247
244
Step sizes are parsed with Astropy's `~astropy.units.Quantity `. For a time step of 1 hour:
248
245
249
- .. code-block :: python
246
+
250
247
.. doctest-remote-data ::
251
248
252
249
>>> eph = MPC .get_ephemeris(' 24' , step = ' 1h' )
@@ -268,7 +265,7 @@ Step sizes are parsed with Astropy's `~astropy.units.Quantity`. For a time step
268
265
Start dates are parsed with Astropy's `~astropy.time.Time `. For a
269
266
weekly ephemeris in 2020:
270
267
271
- .. code-block :: python
268
+
272
269
.. doctest-remote-data ::
273
270
274
271
>>> eph = MPC .get_ephemeris(' 24' , start = ' 2020-01-01' , step = ' 7d' , number = 52 )
@@ -295,7 +292,7 @@ Ephemerides may be calculated for Earth-based observers. To calculate
295
292
Makemake's ephemeris for the Discovery Channel Telescope (IAU
296
293
observatory code G37):
297
294
298
- .. code-block :: python
295
+
299
296
.. doctest-remote-data ::
300
297
301
298
>>> eph = MPC .get_ephemeris(' Makemake' , location = ' G37' )
@@ -322,7 +319,7 @@ an array of longitude (east), latitude, and altitude (parsed with
322
319
`~astropy.coordinates.EarthLocation `. For example, to compute
323
320
Encke's parallax between Mauna Kea and Botswana:
324
321
325
- .. code-block :: python
322
+
326
323
.. doctest-remote-data ::
327
324
328
325
>>> from astropy.table import Table
@@ -357,7 +354,7 @@ Convert the columns to Astropy quantities using the ``.quantity``
357
354
attribute. To find comet Hyakutake's peak proper motion in the sky in
358
355
degrees per hour:
359
356
360
- .. code-block :: python
357
+
361
358
.. doctest-remote-data ::
362
359
363
360
>>> eph = MPC .get_ephemeris(' C/1996 B2' , start = ' 1996-03-01' , step = ' 1h' , number = 30 * 24 )
@@ -370,7 +367,7 @@ strings using the ``ra_format`` and ``dec_format`` keyword arguments
370
367
(see ``Angle ``'s `~astropy.coordinates.Angle.to_string ` for formatting
371
368
options):
372
369
373
- .. code-block :: python
370
+
374
371
.. doctest-remote-data ::
375
372
376
373
>>> eph = MPC .get_ephemeris(' 2P' , ra_format = {' sep' : ' :' , ' unit' : ' hourangle' , ' precision' : 1 }, dec_format = {' sep' : ' :' , ' precision' : 0 })
@@ -396,7 +393,7 @@ IAU Observatory Codes and Locations
396
393
Two methods are available for working with the MPC's observatory list.
397
394
To retrieve a list of all observatories:
398
395
399
- .. code-block :: python
396
+
400
397
.. doctest-remote-data ::
401
398
402
399
>>> obs = MPC .get_observatory_codes()
@@ -444,7 +441,6 @@ Observations
444
441
The following code snippet queries all reported observations for
445
442
asteroid 12893:
446
443
447
- .. code-block :: python
448
444
.. doctest-remote-data ::
449
445
450
446
>>> obs = MPC .get_observations(12893 )
0 commit comments