Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add download from onprem how-to #265

Merged
merged 1 commit into from
Jul 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion docs/tutorials/onprem.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
# Download data for on-prem datasets

Coming soon
Import the `earthaccess` library, search for granules in an on-prem dataset and download to a local computer.
The Sea Ice Concentrations from Nimbus-7 SMMR and DMSP SSM/I-SSMIS Passive Microwave Data, Version 2, dataset is used.
This has the shortname NSIDC-0051. We search for and download data granules for the northern hemisphere for November 2023.
In this example, granules are downloaded to the current working directory using the `local_path` keyword. This can be changed to your preferred download location.

```py
import earthaccess

auth = earthaccess.login()

results = earthaccess.search_data(
short_name='NSIDC-0051',
temporal=('2022-11-01', '2022-11-30'),
bounding_box=(-180, 0, 180, 90)
)

downloaded_files = earthaccess.download(
results,
local_path='.',
)
```