Question about using wget on for Aqua and Merra2
Posted: Thu Feb 02, 2023 5:36 pm America/New_York
Hello all, I am new at using wget for downloading data from a Windows command prompt using wget.
I was able to generate a user/password cookie file using either of the the two commands:
wget -qO- --keep-session-cookies --save-cookies cookies.txt --post-data --user=USERNAME --ask-password https://urs.earthdata.nasa.gov/
OR
wget -qO- --keep-session-cookies --save-cookies cookies.txt --post-data --user=USERNAME password=PASSWORD https://urs.earthdata.nasa.gov/
For downloading Aqua data with wget, any of the commands below worked well:
wget URL
wget --user=USERNAME --ask-password URL
wget --user=USERNAME --ask-password --auth-no-challenge=on URL
(where URL = https://oceandata.sci.gsfc.nasa.gov/ob/getfile/AQUA_MODIS.20211202.L3m.DAY.SST4.sst4.4km.nc).
As can be seen above, downloading the Aqua file did not care whether or not I used the call to the user/password, but it also worked fine with the call to the user/password.
However, when trying to download Merra2 data, I keep getting the error "Unable to establish SSL connection", regardless of how I configure the wget line:
wget URL
wget --user=USERNAME --ask-password URL
wget --user=USERNAME --ask-password --auth-no-challenge=on URL
(where URL = https://goldsmr5.gesdisc.eosdis.nasa.gov/data/MERRA2/M2I3NPASM.5.12.4/2022/01/MERRA2_400.inst3_3d_asm_Np.20220101.nc4)
My approved applications on the EarthData site are:
OB.DAAC Modis
Earthdata Feedback Module
Earthdata Code Collaborative
Earthdata Website
OB.DAAC User Support Services
GESDISC Test Data Archive
OB.DAAC L3 Browser
CMR SSO APP for EDL in PROD
Metadata Management Tool
NASA GESDISC DATA ARCHIVE
Earthdata Forum
What am I doing wrong with trying to download Merra2 data with wget?
I was able to generate a user/password cookie file using either of the the two commands:
wget -qO- --keep-session-cookies --save-cookies cookies.txt --post-data --user=USERNAME --ask-password https://urs.earthdata.nasa.gov/
OR
wget -qO- --keep-session-cookies --save-cookies cookies.txt --post-data --user=USERNAME password=PASSWORD https://urs.earthdata.nasa.gov/
For downloading Aqua data with wget, any of the commands below worked well:
wget URL
wget --user=USERNAME --ask-password URL
wget --user=USERNAME --ask-password --auth-no-challenge=on URL
(where URL = https://oceandata.sci.gsfc.nasa.gov/ob/getfile/AQUA_MODIS.20211202.L3m.DAY.SST4.sst4.4km.nc).
As can be seen above, downloading the Aqua file did not care whether or not I used the call to the user/password, but it also worked fine with the call to the user/password.
However, when trying to download Merra2 data, I keep getting the error "Unable to establish SSL connection", regardless of how I configure the wget line:
wget URL
wget --user=USERNAME --ask-password URL
wget --user=USERNAME --ask-password --auth-no-challenge=on URL
(where URL = https://goldsmr5.gesdisc.eosdis.nasa.gov/data/MERRA2/M2I3NPASM.5.12.4/2022/01/MERRA2_400.inst3_3d_asm_Np.20220101.nc4)
My approved applications on the EarthData site are:
OB.DAAC Modis
Earthdata Feedback Module
Earthdata Code Collaborative
Earthdata Website
OB.DAAC User Support Services
GESDISC Test Data Archive
OB.DAAC L3 Browser
CMR SSO APP for EDL in PROD
Metadata Management Tool
NASA GESDISC DATA ARCHIVE
Earthdata Forum
What am I doing wrong with trying to download Merra2 data with wget?