1
- .. doctest-skip-all
2
-
3
1
.. _astroquery.eso :
4
2
5
3
******************************
@@ -51,14 +49,14 @@ interaction with the ESO archive.
51
49
Authenticating TEST on www.eso.org...
52
50
Authentication failed!
53
51
>> > # 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:
56
54
57
55
Authenticating ICONDOR on www.eso.org...
58
56
Authentication successful!
59
57
>> > # 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...
62
60
Authentication successful!
63
61
64
62
Automatic password
@@ -108,8 +106,9 @@ list of available instrument-specific queries can be obtained with the
108
106
:meth: `~astroquery.eso.EsoClass.list_instruments ` method.
109
107
110
108
.. code-block :: python
109
+ .. doctest-remote-data ::
111
110
112
- >> > eso.list_instruments()
111
+ >>> eso.list_instruments() # doctest: +IGNORE_OUTPUT
113
112
['fors1', 'fors2', 'vimos', 'omegacam', 'hawki', 'isaac', 'naco', 'visir', 'vircam',
114
113
'apex', 'uves', 'giraffe', 'xshooter', 'muse, 'crires', 'kmos', 'sinfoni',
115
114
'amber', 'gravity', 'midi', 'pionier']
@@ -125,6 +124,7 @@ inspected by setting the ``help=True`` keyword of the :meth:`~astroquery.eso.Eso
125
124
method.
126
125
127
126
.. code-block :: python
127
+ .. doctest-remote-data ::
128
128
129
129
>>> eso.query_instrument(' midi' , help = True )
130
130
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
176
176
return the observation date column.
177
177
178
178
.. code-block :: python
179
+ .. doctest-remote-data ::
179
180
180
181
>>> table = eso.query_instrument(' midi' , column_filters = {' target' :' NGC 4151' , ' stime' :' 2007-01-01' , ' etime' :' 2008-01-01' }, columns = [' night' ])
181
182
>>> print (len (table))
182
183
38
183
184
>>> 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')>
185
186
>>> table.pprint(max_width = 100 )
186
187
Object Target Ra Dec Target l b ... INS.MODE DIMM S-avg
187
188
----------------------- ----------------------- -------------------- ... -------- -----------
@@ -224,17 +225,18 @@ is identical to :meth:`~astroquery.eso.EsoClass.query_instrument`.
224
225
ESO instruments without a specific query interface can be queried with
225
226
:meth: `~astroquery.eso.EsoClass.query_main `, specifying the ``instrument `` constraint.
226
227
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.
228
229
229
230
.. code-block :: python
231
+ .. doctest-remote-data ::
230
232
231
233
>>> eso.ROW_LIMIT = - 1 # Return all results
232
234
>>> table = eso.query_main(column_filters = {' instrument' : ' APICAM' , ' filter_path' : ' LUMINANCE' ,
233
235
... ' stime' :' 2019-04-26' , ' etime' :' 2019-04-27' }, cache= False )
234
236
>>> print (len (table))
235
237
207
236
238
>>> 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')>
238
240
>>> table.pprint(max_width = 100 )
239
241
OBJECT RA DEC Program_ID ... Filter MJD-OBS Airmass DIMM Seeing at Start
240
242
------- ----------- ----------- ------------ ... --------- ------------ ------- --------------------
@@ -260,7 +262,7 @@ The list of available surveys can be obtained with :meth:`astroquery.eso.EsoClas
260
262
261
263
.. code-block :: python
262
264
263
- >> > surveys = eso.list_surveys()
265
+ >> > surveys = eso.list_surveys() # doctest: +REMOTE_DATA
264
266
265
267
Query a specific survey with constraints
266
268
----------------------------------------
@@ -270,8 +272,9 @@ target ``HD203608``.
270
272
The archive can be queried as follows:
271
273
272
274
.. code-block :: python
275
+ .. doctest-remote-data ::
273
276
274
- >> > table = eso.query_surveys(' HARPS' , cache = False , target = " HD203608" )
277
+ >>> table = eso.query_surveys(' HARPS' , cache = False , target = " HD203608" ) # doctest: +REMOTE_DATA
275
278
276
279
The returned table has an ``ARCFILE `` column. It can be used to retrieve the datasets with
277
280
:meth: `astroquery.eso.EsoClass.retrieve_data ` (see next section).
@@ -287,6 +290,7 @@ using :meth:`~astroquery.eso.EsoClass.get_headers`.
287
290
This method is detailed in the example below, continuing with the previously obtained table.
288
291
289
292
.. code-block :: python
293
+ .. doctest-remote-data ::
290
294
291
295
>>> table_headers = eso.get_headers(table[' DP.ID' ])
292
296
>>> table_headers.pprint()
@@ -331,7 +335,7 @@ using their data product IDs ``DP.ID`` (or ``ARCFILE`` for surveys), and retriev
331
335
332
336
.. code-block :: python
333
337
334
- >> > data_files = eso.retrieve_data(table[' DP.ID' ][:2 ])
338
+ >> > data_files = eso.retrieve_data(table[' DP.ID' ][:2 ]) # doctest: +REMOTE_DATA
335
339
Staging request...
336
340
Downloading files...
337
341
Downloading MIDI .2007- 02 - 07T07 :01 :51.000 .fits.Z...
0 commit comments