Instructions for how to use the download access script provided by Earthdata Search, allowing users to download large quantities of files easily.
IMPORTANT: The download access script works best on Mac and Linux systems. Windows systems will require a program that emulates a Unix command line, such as Cyqwin.
After downloading the script, open a terminal window and navigate to the folder that contains your script
The files downloaded by this script will be downloaded to the folder that your script is in. If you want your files downloaded to a specific folder, please make sure to move the script to that folder before executing the script.
Next, run the following command to make the script executable:
chmod 777 download.sh
Now that your script is executable, run the script using the following command. (Note: the period and forward slash is required.)
./download.sh
The script will ask for your Earthdata Login credentials.
Note: your Earthdata userid and password are case-sensitive, so be sure CAPSLOCK is off.
When asked for your Username, please enter your Earthdata userid.
When asked for your Password, please enter your Earthdata password. Note that when entering your password, you cannot see your password as you type. This is a Unix convention for security, but it can be confusing.
After entering your password, be sure to hit the RETURN key.
IF YOU HAVE PROBLEMS
A quick workaround is to use the wget command as follows:
wget --user=username --password=password -i url_list.txt
where username is your Earthdata userid, password is your Earthdata password, and url_list.txt is a text file with one granule download link per line.
For convenience, wget can pull urls directly out of Earthdata Search's download script, so the following will also work:
wget --user=username --password=password -i download.sh