- Identify the file URL or top level URL for the file(s) you want to download. To find a url, head here and find a URL for the data you want to download.
- You'll need to get a Earthdata Login token. To generate a new token or get an existing token, use the following steps:
- Head to the Earthdata Login.
- Select the “Generate Token” option in the top blue bar.
- If you do not have a token, select the green “Generate Token” button.
- Copy the token using the "Copy to Clipboard" button.
- Download your data using the script below.
Code: Select all
URL=<enter the top level URL here> TOKEN=<paste your token here> wget --header "Authorization: Bearer $TOKEN" --recursive --no-parent --reject "index.html*" --execute robots=off $URL
https://www.gnu.org/software/wget/