@@ -284,9 +284,9 @@ with `~astroquery.mast.ObservationsClass.get_product_list`
284
284
(see `here <https://mast.stsci.edu/api/v0/_c_a_o_mfields.html >`__ for more details).
285
285
Using "obs_id" instead of "obsid" from the previous example will result in the following error:
286
286
287
- .. doctest-skip ::
287
+ .. doctest-remote-data ::
288
288
>>> obs_ids = obs_table[0 :2 ][' obs_id' ]
289
- >>> data_products_by_id = Observations.get_product_list(obs_ids)
289
+ >>> data_products_by_id = Observations.get_product_list(obs_ids) # doctest: +IGNORE_OUTPUT
290
290
Traceback (most recent call last):
291
291
...
292
292
RemoteServiceError: Error converting data type varchar to bigint.
@@ -467,24 +467,23 @@ Alternatively, this workflow can be streamlined by providing the query criteria
467
467
This approach is recommended for code brevity. Query criteria are supplied as keyword arguments, and filters are supplied through the
468
468
``filter_products `` parameter. If both ``data_products `` and query criteria are provided, ``data_products `` takes precedence.
469
469
470
- .. doctest-skip ::
470
+ .. doctest-remote-data ::
471
471
472
472
>>> import os
473
473
>>> from astroquery.mast import Observations
474
474
...
475
475
>>> Observations.enable_cloud_dataset(provider = ' AWS' )
476
- INFO: Using the S3 STScI public dataset [astroquery.mast.core]
477
- ...
476
+ INFO: Using the S3 STScI public dataset [astroquery.mast.cloud]
478
477
>>> # Getting the cloud URIs
479
478
>>> s3_uris = Observations.get_cloud_uris(obs_collection = ' HST' ,
480
- filters='F606W',
481
- instrument_name='ACS/WFC',
482
- proposal_id=['12062'],
483
- dataRights='PUBLIC',
484
- filter_products={'productSubGroupDescription': 'DRZ'})
479
+ ... filters= ' F606W' ,
480
+ ... instrument_name= ' ACS/WFC' ,
481
+ ... proposal_id= [' 12062' ],
482
+ ... dataRights= ' PUBLIC' ,
483
+ ... filter_products= {' productSubGroupDescription' : ' DRZ' })
484
+ INFO: 2 of 4 products were duplicates. Only downloading 2 unique product(s). [astroquery.mast.observations]
485
485
>>> print (s3_uris)
486
486
['s3://stpubdata/hst/public/jbev/jbeveo010/jbeveo010_drz.fits', 's3://stpubdata/hst/public/jbev/jbevet010/jbevet010_drz.fits']
487
- ...
488
487
>>> Observations.disable_cloud_dataset()
489
488
490
489
Downloading data products from S3:
0 commit comments