Skip to content

Commit 9c98e64

Browse files
authored
Merge pull request #793 from fpavogt/patch-1
Update simbad.rst
2 parents ac6461e + da557e2 commit 9c98e64

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/simbad/simbad.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,27 @@ Continuing from the above example:
530530
531531
['main_id', 'coordinates']
532532
533+
Specifying the format of the included VOTable fields
534+
----------------------------------------------------
535+
536+
The output for several of the VOTable fields can be formatted in many
537+
different ways described in the help page of the SIMBAD query interface (see
538+
Sect. 4.3 of `this page
539+
<http://simbad.u-strasbg.fr/simbad/sim-help?Page=sim-fscript>`__). As an
540+
example, the epoch and equinox for the Right Ascension and Declination can
541+
be specified as follows (e.g. epoch of J2017.5 and equinox of 2000):
542+
543+
.. code-block:: python
544+
545+
>>> customSimbad.add_votable_fields('ra(2;A;ICRS;J2017.5;2000)', 'dec(2;D;ICRS;2017.5;2000)')
546+
>>> customSimbad.remove_votable_fields('coordinates')
547+
>>> customSimbad.query_object("HD189733")
548+
<Table masked=True length=1>
549+
MAIN_ID RA_2_A_ICRS_J2017_5_2000 DEC_2_D_ICRS_2017_5_2000
550+
"h:m:s" "d:m:s"
551+
object str13 str13
552+
--------- ------------------------ ------------------------
553+
HD 189733 20 00 43.7107 +22 42 39.064
533554
534555
535556
Reference/API

0 commit comments

Comments
 (0)