Re: Question about using wget on for Aqua and Merra2
Posted: Mon Feb 06, 2023 10:43 am America/New_York
Hello mgreene,
I attempted the MERRA2 download again, and am still getting the "unable to establish SSL connection" error.
Am I making any syntax errors in the MERRA2 request?
Below is the Windows command line response to my unsuccessful MERRA2 request.
As a sanity check, I also did an AQUA request, which was successful; see Windows command line response for the successful AQUA request also, for reference.
-----------------------------------------------------------------------------------------------------------------------------------------------------
UNSUCCESSFUL MERRA REQUEST:
C:\Users\alcook1\wget>wget --user=anthcook --ask-password --auth-no-challenge=on https://goldsmr5.gesdisc.eosdis.nasa.gov/data/MERRA2/M2I3NPASM.5.12.4/2022/01/MERRA2_400.inst3_3d_asm_Np.20220101.nc4
Password for user 'anthcook':
--2023-02-06 10:37:57-- https://goldsmr5.gesdisc.eosdis.nasa.gov/data/MERRA2/M2I3NPASM.5.12.4/2022/01/MERRA2_400.inst3_3d_asm_Np.20220101.nc4
Resolving goldsmr5.gesdisc.eosdis.nasa.gov (goldsmr5.gesdisc.eosdis.nasa.gov)... 198.118.197.96
Connecting to goldsmr5.gesdisc.eosdis.nasa.gov (goldsmr5.gesdisc.eosdis.nasa.gov)|198.118.197.96|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://urs.earthdata.nasa.gov/oauth/authorize/?scope=uid&app_type=401&client_id=e2WVk8Pw6weeLUKZYOxvTQ&response_type=code&redirect_uri=http%3A%2F%2Fgoldsmr5.gesdisc.eosdis.nasa.gov%2Fdata-redirect&state=aHR0cHM6Ly9nb2xkc21yNS5nZXNkaXNjLmVvc2Rpcy5uYXNhLmdvdi9kYXRhL01FUlJBMi9NMkkzTlBBU00uNS4xMi40LzIwMjIvMDEvTUVSUkEyXzQwMC5pbnN0M18zZF9hc21fTnAuMjAyMjAxMDEubmM0 [following]
--2023-02-06 10:37:57-- https://urs.earthdata.nasa.gov/oauth/authorize/?scope=uid&app_type=401&client_id=e2WVk8Pw6weeLUKZYOxvTQ&response_type=code&redirect_uri=http%3A%2F%2Fgoldsmr5.gesdisc.eosdis.nasa.gov%2Fdata-redirect&state=aHR0cHM6Ly9nb2xkc21yNS5nZXNkaXNjLmVvc2Rpcy5uYXNhLmdvdi9kYXRhL01FUlJBMi9NMkkzTlBBU00uNS4xMi40LzIwMjIvMDEvTUVSUkEyXzQwMC5pbnN0M18zZF9hc21fTnAuMjAyMjAxMDEubmM0
Resolving urs.earthdata.nasa.gov (urs.earthdata.nasa.gov)... 198.118.243.33
Connecting to urs.earthdata.nasa.gov (urs.earthdata.nasa.gov)|198.118.243.33|:443... connected.
Unable to establish SSL connection.
-----------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------
SUCCESSFUL AQUA REQUEST:
C:\Users\alcook1\wget>wget --user=anthcook --ask-password --auth-no-challenge=on https://oceandata.sci.gsfc.nasa.gov/ob/getfile/AQUA_MODIS.20220101.L3m.DAY.IOP.a_531.4km.nc
Password for user 'anthcook':
--2023-02-06 10:36:59-- https://oceandata.sci.gsfc.nasa.gov/ob/getfile/AQUA_MODIS.20220101.L3m.DAY.IOP.a_531.4km.nc
Resolving oceandata.sci.gsfc.nasa.gov (oceandata.sci.gsfc.nasa.gov)... 169.154.128.84
Connecting to oceandata.sci.gsfc.nasa.gov (oceandata.sci.gsfc.nasa.gov)|169.154.128.84|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://urs.earthdata.nasa.gov/oauth/authorize?client_id=Z0u-MdLNypXBjiDREZ3roA&redirect_uri=https%3A%2F%2Foceandata.sci.gsfc.nasa.gov%2Fob%2Fgetfile%2Frestrict&response_type=code [following]
--2023-02-06 10:36:59-- https://urs.earthdata.nasa.gov/oauth/authorize?client_id=Z0u-MdLNypXBjiDREZ3roA&redirect_uri=https%3A%2F%2Foceandata.sci.gsfc.nasa.gov%2Fob%2Fgetfile%2Frestrict&response_type=code
Resolving urs.earthdata.nasa.gov (urs.earthdata.nasa.gov)... 198.118.243.33
Connecting to urs.earthdata.nasa.gov (urs.earthdata.nasa.gov)|198.118.243.33|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://oceandata.sci.gsfc.nasa.gov/ob/getfile/restrict?code=f871a46667bf06030080ec40607996ff318131c101db6807d0c9c4ab9c6f183e [following]
--2023-02-06 10:37:00-- https://oceandata.sci.gsfc.nasa.gov/ob/getfile/restrict?code=f871a46667bf06030080ec40607996ff318131c101db6807d0c9c4ab9c6f183e
Connecting to oceandata.sci.gsfc.nasa.gov (oceandata.sci.gsfc.nasa.gov)|169.154.128.84|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: /ob/getfile/AQUA_MODIS.20220101.L3m.DAY.IOP.a_531.4km.nc [following]
--2023-02-06 10:37:00-- https://oceandata.sci.gsfc.nasa.gov/ob/getfile/AQUA_MODIS.20220101.L3m.DAY.IOP.a_531.4km.nc
Reusing existing connection to oceandata.sci.gsfc.nasa.gov:443.
HTTP request sent, awaiting response... 200 OK
Length: 3920979 (3.7M) [application/octet-stream]
Saving to: 'AQUA_MODIS.20220101.L3m.DAY.IOP.a_531.4km.nc'
AQUA_MODIS.20220101.L3m.DAY.I 100%[=================================================>] 3.74M 6.27MB/s in 0.6s
2023-02-06 10:37:01 (6.27 MB/s) - 'AQUA_MODIS.20220101.L3m.DAY.IOP.a_531.4km.nc' saved [3920979/3920979]
-----------------------------------------------------------------------------------------------------------------------------------------
I attempted the MERRA2 download again, and am still getting the "unable to establish SSL connection" error.
Am I making any syntax errors in the MERRA2 request?
Below is the Windows command line response to my unsuccessful MERRA2 request.
As a sanity check, I also did an AQUA request, which was successful; see Windows command line response for the successful AQUA request also, for reference.
-----------------------------------------------------------------------------------------------------------------------------------------------------
UNSUCCESSFUL MERRA REQUEST:
C:\Users\alcook1\wget>wget --user=anthcook --ask-password --auth-no-challenge=on https://goldsmr5.gesdisc.eosdis.nasa.gov/data/MERRA2/M2I3NPASM.5.12.4/2022/01/MERRA2_400.inst3_3d_asm_Np.20220101.nc4
Password for user 'anthcook':
--2023-02-06 10:37:57-- https://goldsmr5.gesdisc.eosdis.nasa.gov/data/MERRA2/M2I3NPASM.5.12.4/2022/01/MERRA2_400.inst3_3d_asm_Np.20220101.nc4
Resolving goldsmr5.gesdisc.eosdis.nasa.gov (goldsmr5.gesdisc.eosdis.nasa.gov)... 198.118.197.96
Connecting to goldsmr5.gesdisc.eosdis.nasa.gov (goldsmr5.gesdisc.eosdis.nasa.gov)|198.118.197.96|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://urs.earthdata.nasa.gov/oauth/authorize/?scope=uid&app_type=401&client_id=e2WVk8Pw6weeLUKZYOxvTQ&response_type=code&redirect_uri=http%3A%2F%2Fgoldsmr5.gesdisc.eosdis.nasa.gov%2Fdata-redirect&state=aHR0cHM6Ly9nb2xkc21yNS5nZXNkaXNjLmVvc2Rpcy5uYXNhLmdvdi9kYXRhL01FUlJBMi9NMkkzTlBBU00uNS4xMi40LzIwMjIvMDEvTUVSUkEyXzQwMC5pbnN0M18zZF9hc21fTnAuMjAyMjAxMDEubmM0 [following]
--2023-02-06 10:37:57-- https://urs.earthdata.nasa.gov/oauth/authorize/?scope=uid&app_type=401&client_id=e2WVk8Pw6weeLUKZYOxvTQ&response_type=code&redirect_uri=http%3A%2F%2Fgoldsmr5.gesdisc.eosdis.nasa.gov%2Fdata-redirect&state=aHR0cHM6Ly9nb2xkc21yNS5nZXNkaXNjLmVvc2Rpcy5uYXNhLmdvdi9kYXRhL01FUlJBMi9NMkkzTlBBU00uNS4xMi40LzIwMjIvMDEvTUVSUkEyXzQwMC5pbnN0M18zZF9hc21fTnAuMjAyMjAxMDEubmM0
Resolving urs.earthdata.nasa.gov (urs.earthdata.nasa.gov)... 198.118.243.33
Connecting to urs.earthdata.nasa.gov (urs.earthdata.nasa.gov)|198.118.243.33|:443... connected.
Unable to establish SSL connection.
-----------------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------------
SUCCESSFUL AQUA REQUEST:
C:\Users\alcook1\wget>wget --user=anthcook --ask-password --auth-no-challenge=on https://oceandata.sci.gsfc.nasa.gov/ob/getfile/AQUA_MODIS.20220101.L3m.DAY.IOP.a_531.4km.nc
Password for user 'anthcook':
--2023-02-06 10:36:59-- https://oceandata.sci.gsfc.nasa.gov/ob/getfile/AQUA_MODIS.20220101.L3m.DAY.IOP.a_531.4km.nc
Resolving oceandata.sci.gsfc.nasa.gov (oceandata.sci.gsfc.nasa.gov)... 169.154.128.84
Connecting to oceandata.sci.gsfc.nasa.gov (oceandata.sci.gsfc.nasa.gov)|169.154.128.84|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://urs.earthdata.nasa.gov/oauth/authorize?client_id=Z0u-MdLNypXBjiDREZ3roA&redirect_uri=https%3A%2F%2Foceandata.sci.gsfc.nasa.gov%2Fob%2Fgetfile%2Frestrict&response_type=code [following]
--2023-02-06 10:36:59-- https://urs.earthdata.nasa.gov/oauth/authorize?client_id=Z0u-MdLNypXBjiDREZ3roA&redirect_uri=https%3A%2F%2Foceandata.sci.gsfc.nasa.gov%2Fob%2Fgetfile%2Frestrict&response_type=code
Resolving urs.earthdata.nasa.gov (urs.earthdata.nasa.gov)... 198.118.243.33
Connecting to urs.earthdata.nasa.gov (urs.earthdata.nasa.gov)|198.118.243.33|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://oceandata.sci.gsfc.nasa.gov/ob/getfile/restrict?code=f871a46667bf06030080ec40607996ff318131c101db6807d0c9c4ab9c6f183e [following]
--2023-02-06 10:37:00-- https://oceandata.sci.gsfc.nasa.gov/ob/getfile/restrict?code=f871a46667bf06030080ec40607996ff318131c101db6807d0c9c4ab9c6f183e
Connecting to oceandata.sci.gsfc.nasa.gov (oceandata.sci.gsfc.nasa.gov)|169.154.128.84|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: /ob/getfile/AQUA_MODIS.20220101.L3m.DAY.IOP.a_531.4km.nc [following]
--2023-02-06 10:37:00-- https://oceandata.sci.gsfc.nasa.gov/ob/getfile/AQUA_MODIS.20220101.L3m.DAY.IOP.a_531.4km.nc
Reusing existing connection to oceandata.sci.gsfc.nasa.gov:443.
HTTP request sent, awaiting response... 200 OK
Length: 3920979 (3.7M) [application/octet-stream]
Saving to: 'AQUA_MODIS.20220101.L3m.DAY.IOP.a_531.4km.nc'
AQUA_MODIS.20220101.L3m.DAY.I 100%[=================================================>] 3.74M 6.27MB/s in 0.6s
2023-02-06 10:37:01 (6.27 MB/s) - 'AQUA_MODIS.20220101.L3m.DAY.IOP.a_531.4km.nc' saved [3920979/3920979]
-----------------------------------------------------------------------------------------------------------------------------------------