You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/mast/mast.rst
+45-60Lines changed: 45 additions & 60 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -343,26 +343,18 @@ the *local_path* keyword argument.
343
343
344
344
Cloud Data Access
345
345
------------------
346
-
Public datasets from the Hubble, Kepler and TESS telescopes are also available on Amazon Web Services
346
+
Public datasets from the Hubble, Kepler and TESS telescopes are also available for free on Amazon Web Services
347
347
in `public S3 buckets <https://registry.opendata.aws/collab/stsci/>`__.
348
348
349
-
Using AWS resources to process public data requires an `AWS account <https://aws.amazon.com/>`__ and associated
350
-
`credentials file <https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html>`__. The `boto3
351
-
<https://boto3.amazonaws.com/v1/documentation/api/latest/index.html>`__ library is also required as it handles
352
-
connections to the AWS servers. Instructions for creating AWS credentials are available `here
353
-
<https://stackoverflow.com/questions/21440709/how-do-i-get-aws-access-key-id-for-amazon>`__. Data transfer charges
354
-
are the responsibility of the requester (see `request pricing <https://aws.amazon.com/s3/pricing/>`__), however
355
-
transfers are free within the US-East AWS region.
349
+
Using AWS resources to process public data no longer requires an AWS account for all AWS regions. To enable cloud data access for the Hubble, Kepler, and TESS missions, follow the steps below:
356
350
357
-
Cload data access is enabled using the `~astroquery.mast.ObservationsClass.enable_cloud_dataset` function, which
358
-
will cause AWS to become the prefered source for data access until it is disabled
You can enable cloud data access via the `~astroquery.mast.ObservationsClass.enable_cloud_dataset` function, which sets AWS to become the preferred source for data access as opposed to on-premise MAST until it is disabled with `~astroquery.mast.ObservationsClass.disable_cloud_dataset`.
360
352
361
353
To directly access a list of cloud URIs for a given dataset, use the `~astroquery.mast.ObservationsClass.get_cloud_uris`
362
-
function, however when cloud access is enabled, the standatd download function
363
-
`~astroquery.mast.ObservationsClass.download_products` will preferentially pull files from AWS when they are avilable.
364
-
There is also a ``cloud_only`` flag, which when set to True will cause all data products not available in the
365
-
cloud to be skipped.
354
+
function (Python will prompt you to enable cloud access if you haven't already).
355
+
356
+
When cloud access is enabled, the standard download function
357
+
`~astroquery.mast.ObservationsClass.download_products` preferentially pulls files from AWS when they are available. When set to `True`, the ``cloud_only`` parameter in `~astroquery.mast.ObservationsClass.download_products` skips all data products not available in the cloud.
366
358
367
359
368
360
Getting a list of S3 URIs:
@@ -372,15 +364,9 @@ Getting a list of S3 URIs:
372
364
>>>import os
373
365
>>>from astroquery.mast import Observations
374
366
375
-
>>># If credential environment are not already set, we can set them within python.
>>># Simply call the `enable_cloud_dataset` method from `Observations`. The default provider is `AWS`, but we will write it in manually for this example:
INFO: Using the S3 STScI public dataset [astroquery.mast.core]
382
-
INFO: See Request Pricing in https://aws.amazon.com/s3/pricing/for details [astroquery.mast.core]
383
-
INFO: If you have not configured boto3, follow the instructions here: https://boto3.readthedocs.io/en/latest/guide/configuration.html [astroquery.mast.core]
>>># Simply call the `enable_cloud_dataset` method from `Observations`. The default provider is `AWS`, but we will write it in manually for this example:
INFO: Using the S3 STScI public dataset [astroquery.mast.core]
416
-
INFO: See Request Pricing in https://aws.amazon.com/s3/pricing/for details [astroquery.mast.core]
417
-
INFO: If you have not configured boto3, follow the instructions here: https://boto3.readthedocs.io/en/latest/guide/configuration.html [astroquery.mast.core]
0 commit comments