Skip to content

Commit 86fecd1

Browse files
tinuademargaretceb8
authored andcommitted
WIP
1 parent a03f301 commit 86fecd1

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

docs/eso/eso.rst

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

53
******************************
@@ -51,14 +49,14 @@ interaction with the ESO archive.
5149
Authenticating TEST on www.eso.org...
5250
Authentication failed!
5351
>>> # Second example: pretend ICONDOR is a valid username
54-
>>> eso.login("ICONDOR", store_password=True) # doctest: +SKIP
55-
ICONDOR, enter your ESO password:
52+
>>> eso.login("Tinuade", store_password=True) # doctest: +IGNORE_OUTPUT
53+
Tinuade, enter your ESO password:
5654
5755
Authenticating ICONDOR on www.eso.org...
5856
Authentication successful!
5957
>>> # After the first login, your password has been stored
60-
>>> eso.login("ICONDOR") # doctest: +SKIP
61-
Authenticating ICONDOR on www.eso.org...
58+
>>> eso.login("Tinuade")
59+
Authenticating Tinuade on www.eso.org...
6260
Authentication successful!
6361
6462
Automatic password
@@ -108,8 +106,9 @@ list of available instrument-specific queries can be obtained with the
108106
:meth:`~astroquery.eso.EsoClass.list_instruments` method.
109107

110108
.. code-block:: python
109+
.. doctest-remote-data::
111110

112-
>>> eso.list_instruments()
111+
>>> eso.list_instruments() # doctest: +IGNORE_OUTPUT
113112
['fors1', 'fors2', 'vimos', 'omegacam', 'hawki', 'isaac', 'naco', 'visir', 'vircam',
114113
'apex', 'uves', 'giraffe', 'xshooter', 'muse, 'crires', 'kmos', 'sinfoni',
115114
'amber', 'gravity', 'midi', 'pionier']
@@ -125,6 +124,7 @@ inspected by setting the ``help=True`` keyword of the :meth:`~astroquery.eso.Eso
125124
method.
126125

127126
.. code-block:: python
127+
.. doctest-remote-data::
128128

129129
>>> eso.query_instrument('midi', help=True)
130130
List of the column_filters parameters accepted by the midi instrument query.
@@ -176,12 +176,13 @@ target ``NGC 4151`` between ``2007-01-01`` and ``2008-01-01`` are searched, and
176176
return the observation date column.
177177

178178
.. code-block:: python
179+
.. doctest-remote-data::
179180

180181
>>> table = eso.query_instrument('midi', column_filters={'target':'NGC 4151', 'stime':'2007-01-01', 'etime':'2008-01-01'}, columns=['night'])
181182
>>> print(len(table))
182183
38
183184
>>> print(table.columns)
184-
<TableColumns names=('Object','RA', 'DEC','Target l b','DATE OBS','ProgId','DP.ID','OB.ID','OBS.TARG.NAME','DPR.CATG','DPR.TYPE','DPR.TECH','INS.MODE','DIMM S-avg')>
185+
<TableColumns names=('Release Date','Object','RA','DEC','Target Ra Dec','Target l b','DATE OBS','ProgId','DP.ID','OB.ID','OBS.TARG.NAME','DPR.CATG','DPR.TYPE','DPR.TECH','INS.MODE','DIMM Seeing-avg')>
185186
>>> table.pprint(max_width=100)
186187
Object Target Ra Dec Target l b ... INS.MODE DIMM S-avg
187188
----------------------- ----------------------- -------------------- ... -------- -----------
@@ -224,17 +225,18 @@ is identical to :meth:`~astroquery.eso.EsoClass.query_instrument`.
224225
ESO instruments without a specific query interface can be queried with
225226
:meth:`~astroquery.eso.EsoClass.query_main`, specifying the ``instrument`` constraint.
226227
This is the case of e.g. ``harps``, ``feros`` or the all sky cameras APICAM and MASCOT. Here is an example to
227-
query all-sky images from APICAM with ``luminance`` filter.
228+
query all-sky images from APICAM with ``luminance`` filter.
228229

229230
.. code-block:: python
231+
.. doctest-remote-data::
230232

231233
>>> eso.ROW_LIMIT = -1 # Return all results
232234
>>> table = eso.query_main(column_filters={'instrument': 'APICAM', 'filter_path': 'LUMINANCE',
233235
... 'stime':'2019-04-26', 'etime':'2019-04-27'}, cache=False)
234236
>>> print(len(table))
235237
207
236238
>>> print(table.columns)
237-
<TableColumns names=('OBJECT','RA','DEC','Program_ID','Instrument','Category','Type','Mode','Dataset ID','Release_Date','TPL ID','TPL START','Exptime','Exposure','Filter','MJD-OBS','Airmass','DIMM Seeing at Start')>
239+
<TableColumns names=('OBJECT','RA','DEC','Program_ID','Instrument','Category','Type','Mode','Dataset ID','Release_Date','TPL ID','TPL START','Exptime','Exposure','filter_lambda_min','filter_lambda_max','MJD-OBS','Airmass','DIMM Seeing at Start')>
238240
>>> table.pprint(max_width=100)
239241
OBJECT RA DEC Program_ID ... Filter MJD-OBS Airmass DIMM Seeing at Start
240242
------- ----------- ----------- ------------ ... --------- ------------ ------- --------------------
@@ -260,7 +262,7 @@ The list of available surveys can be obtained with :meth:`astroquery.eso.EsoClas
260262

261263
.. code-block:: python
262264
263-
>>> surveys = eso.list_surveys()
265+
>>> surveys = eso.list_surveys() # doctest: +REMOTE_DATA
264266
265267
Query a specific survey with constraints
266268
----------------------------------------
@@ -270,8 +272,9 @@ target ``HD203608``.
270272
The archive can be queried as follows:
271273

272274
.. code-block:: python
275+
.. doctest-remote-data::
273276

274-
>>> table = eso.query_surveys('HARPS', cache=False, target="HD203608")
277+
>>> table = eso.query_surveys('HARPS', cache=False, target="HD203608") # doctest: +REMOTE_DATA
275278

276279
The returned table has an ``ARCFILE`` column. It can be used to retrieve the datasets with
277280
:meth:`astroquery.eso.EsoClass.retrieve_data` (see next section).
@@ -287,6 +290,7 @@ using :meth:`~astroquery.eso.EsoClass.get_headers`.
287290
This method is detailed in the example below, continuing with the previously obtained table.
288291

289292
.. code-block:: python
293+
.. doctest-remote-data::
290294

291295
>>> table_headers = eso.get_headers(table['DP.ID'])
292296
>>> table_headers.pprint()
@@ -331,7 +335,7 @@ using their data product IDs ``DP.ID`` (or ``ARCFILE`` for surveys), and retriev
331335

332336
.. code-block:: python
333337
334-
>>> data_files = eso.retrieve_data(table['DP.ID'][:2])
338+
>>> data_files = eso.retrieve_data(table['DP.ID'][:2]) # doctest: +REMOTE_DATA
335339
Staging request...
336340
Downloading files...
337341
Downloading MIDI.2007-02-07T07:01:51.000.fits.Z...

0 commit comments

Comments
 (0)