Skip to content

Commit 9a86abe

Browse files
committed
Fix syntax for directive usage
1 parent cbec82e commit 9a86abe

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

docs/esasky/esasky.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,13 +391,15 @@ type of the desired object. For example:
391391
In this case, you can specify the sso_type
392392
393393
.. code-block:: python
394+
394395
>>> from astroquery.esasky import ESASky
395396
>>> ESASky.query_sso(sso_name="503", sso_type="SATELLITE")
396397
397398
398399
You can see the available missions with:
399400
400401
.. code-block:: python
402+
401403
>>> from astroquery.esasky import ESASky
402404
>>> ESASky.list_sso()
403405
@@ -410,6 +412,7 @@ This function works very similar to :meth:`astroquery.esasky.ESASkyClass.get_ima
410412
are the same. You can for example, download a table list just like in get_maps by doing something like this:
411413
412414
.. code-block:: python
415+
413416
>>> from astroquery.esasky import ESASky
414417
>>> table_list_from_query_maps=ESASky.query_sso(sso_name="ganymede", missions="XMM")
415418
>>> table_list_from_query_maps['XMM'].remove_rows(list(range(0, 32)))
@@ -418,6 +421,7 @@ are the same. You can for example, download a table list just like in get_maps b
418421
Or download everything on an SSO by something like this:
419422
420423
.. code-block:: python
424+
421425
>>> from astroquery.esasky import ESASky
422426
>>> images=ESASky.get_images_sso(sso_name="ganymede")
423427
@@ -427,6 +431,7 @@ objects with a given name. Here you can see all matches and there aliases and ty
427431
specify which SSO you are after. Use :meth:`astroquery.esasky.ESASkyClass.find_sso` like this:
428432
429433
.. code-block:: python
434+
430435
>>> from astroquery.esasky import ESASky
431436
>>> list_of_matches=ESASky.find_sso(sso_name="Io")
432437

docs/jplhorizons/jplhorizons.rst

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ As we have seen before, we can display a truncated version of table
329329
.. code-block:: python
330330
331331
>>> print(eph)
332-
targetname datetime_str ... PABLon PABLat
333-
--- --- ... deg deg
332+
targetname datetime_str ... PABLon PABLat
333+
--- --- ... deg deg
334334
-------------------------- ----------------- ... -------- --------
335335
3552 Don Quixote (1983 SA) 2010-Jan-01 00:00 ... 8.0371 18.9349
336336
3552 Don Quixote (1983 SA) 2011-Jan-01 00:00 ... 85.4082 34.5611
@@ -354,6 +354,7 @@ Columns
354354
-------
355355

356356
We can get at list of all the columns in this table with:
357+
357358
.. code-block:: python
358359
359360
>>> print(eph.columns)
@@ -362,12 +363,11 @@ We can get at list of all the columns in this table with:
362363
We can address each column individually by indexing it using its name as
363364
provided in this list. For instance, we can get all RAs for Don Quixote by using
364365

365-
366366
.. code-block:: python
367367
368368
>>> print(eph['RA'])
369-
RA
370-
deg
369+
RA
370+
deg
371371
---------
372372
345.50204
373373
78.77158
@@ -385,9 +385,10 @@ This column is formatted like the entire table; it has a column name and a unit.
385385
We can select several columns at a time, for instance RA and DEC for each epoch
386386

387387
.. code-block:: python
388+
388389
>>> print(eph['datetime_str', 'RA', 'DEC'])
389-
datetime_str RA DEC
390-
--- deg deg
390+
datetime_str RA DEC
391+
--- deg deg
391392
----------------- --------- --------
392393
2010-Jan-01 00:00 345.50204 13.43621
393394
2011-Jan-01 00:00 78.77158 61.48831
@@ -409,7 +410,7 @@ in quadrature:
409410
410411
>>> import numpy as np
411412
>>> print(np.sqrt(eph['RA_rate']**2 + eph['DEC_rate']**2))
412-
dRA*cosD
413+
dRA*cosD
413414
------------------
414415
86.18728612153883
415416
26.337249029653798
@@ -437,7 +438,7 @@ h`` - arcseconds per hour:
437438
.. code-block:: python
438439
439440
>>> print(eph['RA_rate'])
440-
RA_rate
441+
RA_rate
441442
arcsec / h
442443
----------
443444
72.35438
@@ -459,8 +460,8 @@ same dimensions. For instance, we can turn ``RA_rate`` into ``arcsec / s``:
459460
460461
>>> eph['RA_rate'].convert_unit_to('arcsec/s')
461462
>>> print(eph['RA_rate'])
462-
RA_rate
463-
arcsec / s
463+
RA_rate
464+
arcsec / s
464465
----------------------
465466
0.02009843888888889
466467
-0.0066177499999999995

0 commit comments

Comments
 (0)