From 85c28a6ca0dc153f23872d6f8887618394bc337d Mon Sep 17 00:00:00 2001 From: tinumide Date: Wed, 13 Jan 2021 19:09:29 +0100 Subject: [PATCH 1/3] added remote data directive --- docs/dace/dace.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/dace/dace.rst b/docs/dace/dace.rst index a0095a3395..e7180f7065 100644 --- a/docs/dace/dace.rst +++ b/docs/dace/dace.rst @@ -1,5 +1,3 @@ -.. doctest-skip-all - .. _astroquery.dace: ************************ @@ -18,10 +16,11 @@ Query radial velocities If you need to get radial velocities data for an object you can do the following and get a `~astropy.table.Table` : .. code-block:: python +.. doctest-remote-data:: >>> from astroquery.dace import Dace >>> radial_velocities_table = Dace.query_radial_velocities('HD40307') - >>> print(radial_velocities_table) + >>> print(radial_velocities_table) # doctest: +IGNORE_OUTPUT rjd rv rv_err ins_name ------------------ ------------------ ------------------ --------- ... From e22fea17aa073dcf2ffdf0642a24af3d00c72a86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Fri, 18 Feb 2022 20:56:20 -0800 Subject: [PATCH 2/3] Testing output, and minor cleanup --- docs/dace/dace.rst | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/docs/dace/dace.rst b/docs/dace/dace.rst index e7180f7065..c67e6a7de7 100644 --- a/docs/dace/dace.rst +++ b/docs/dace/dace.rst @@ -8,34 +8,28 @@ This module let you query DACE (Data Analysis Center for Exoplanets) data. This at Observatory of Geneva and can be accessed online at https://dace.unige.ch -API -=== - Query radial velocities ----------------------- If you need to get radial velocities data for an object you can do the following and get a `~astropy.table.Table` : -.. code-block:: python + .. doctest-remote-data:: >>> from astroquery.dace import Dace >>> radial_velocities_table = Dace.query_radial_velocities('HD40307') - >>> print(radial_velocities_table) # doctest: +IGNORE_OUTPUT - - rjd rv rv_err ins_name - ------------------ ------------------ ------------------ --------- ... - 51131.82401522994 31300.4226771379 5.420218247708816 CORALIE98 - 51139.809670339804 31295.5671320506 4.0697289792344185 CORALIE98 - 51188.67579095997 31294.3391634734 3.4386352834851026 CORALIE98 - 51259.531961040106 31298.3278930888 7.0721030870398245 CORALIE98 + >>> radial_velocities_table.pprint(max_lines=5, max_width=120) + berv berv_err ... date_night raw_file + ----------------- -------- ... ---------- ------------------------------------------------------------------------- + 1.73905237267071 NaN ... 1998-11-13 coralie98/DRS-3.3/reduced/1998-11-13/CORALIE.1998-11-14T07:42:28.001.fits + 1.30280483191029 NaN ... 1998-11-21 coralie98/DRS-3.3/reduced/1998-11-21/CORALIE.1998-11-22T07:21:45.001.fits + ... ... ... ... ... + -3.37421721287255 NaN ... 2014-03-31 harps/DRS-3.5/reduced/2014-03-31/HARPS.2014-03-31T23:53:00.821.fits + -3.32906204496065 NaN ... 2014-04-05 harps/DRS-3.5/reduced/2014-04-05/HARPS.2014-04-06T01:00:15.375.fits + Length = 600 rows - ... ... ... ... - 56403.48691046983 31333.3379143329 0.5476157667089154 HARPS03 - 56596.82446234021 31334.9563430348 0.508056405864858 HARPS03 - 56602.871036310215 31337.4095684621 0.4167374664543639 HARPS03 Reference/API ============= .. automodapi:: astroquery.dace - :no-inheritance-diagram: \ No newline at end of file + :no-inheritance-diagram: From 03c6e241433999cb5cdc61e2c7bb280e42cb4684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Fri, 18 Feb 2022 21:02:27 -0800 Subject: [PATCH 3/3] Adding title level --- docs/dace/dace.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/dace/dace.rst b/docs/dace/dace.rst index c67e6a7de7..651fcc150a 100644 --- a/docs/dace/dace.rst +++ b/docs/dace/dace.rst @@ -7,6 +7,9 @@ DACE (`astroquery.dace`) This module let you query DACE (Data Analysis Center for Exoplanets) data. This project is developed at Observatory of Geneva and can be accessed online at https://dace.unige.ch +Getting started +=============== + Query radial velocities -----------------------