https://disc.gsfc.nasa.gov/data-access#windows_wget
wget for Mac/Linux
cd ~
or cd $HOME
touch .netrc
echo "machine urs.earthdata.nasa.gov login <uid> password <password>" >> .netrc
(where <uid> is your user name and <password> is your Earthdata Login password without the brackets)chmod 0600 .netrc
(so only you can access it)wget
or curl
.
cd ~
or cd $HOME
touch .urs_cookies
.wget --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --auth-no-challenge=on --keep-session-cookies <url>
* If you are using subsetting services through the GES DISC website:
wget --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --auth-no-challenge=on --keep-session-cookies --content-disposition <url>
wget --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --auth-no-challenge=on --keep-session-cookies -i <url.txt>
Add the --content-disposition
to your command when using subsetting services:
wget --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --auth-no-challenge=on --keep-session-cookies --content-disposition -i <url.txt>
--auth-no-challenge
may not be needed depending on your version of wget
<url>
is the link that points to a file you wish to download or to an OPeNDAP resource.--content-disposition
for downloading subsetted files through the GES DISC website.<url.txt>
file with each line containing a GES DISC data file URL. Then, enter the following command: