Hello,
I've been trying to use wget to download MERRA data from this link:
https://goldsmr4.gesdisc.eosdis.nasa.gov/opendap/MERRA2_MONTHLY/M2TMNXFLX.5.12.4/1991/MERRA2_100.tavgM_2d_flx_Nx.199101.nc4.nc4?SPEED[0:0][0:60][0:575],time,lat[0:60],lon[0:575].
But i keep getting this error: Unable to establish SSL connection. I tried downloading with python "requests" and "pydap" but I get the 401 Unauthorized Error and webob.exc.HTTPError: 404 Not Found, respectively.
(the reason why i don't download it directly from the URL is that i have a .txt with +100 urls to download and I'm trying to download one as a test, I've tried with other URL's but i get the same errors)
Here's my code
C:\>wget --load-cookies C:\.urs_cookies --save-cookies C:\.urs_cookies --auth-no-challenge=on --keep-session-cookies --user=paunaranjo --ask-password https://goldsmr4.gesdisc.eosdis.nasa.gov/opendap/MERRA2_MONTHLY/M2TMNXFLX.5.12.4/1991/MERRA2_100.tavgM_2d_flx_Nx.199101.nc4.nc4?SPEED[0:0][0:60][0:575],time,lat[0:60],lon[0:575]
Password for user 'paunaranjo':
--2023-02-16 20:18:41-- https://goldsmr4.gesdisc.eosdis.nasa.gov/opendap/MERRA2_MONTHLY/M2TMNXFLX.5.12.4/1991/MERRA2_100.tavgM_2d_flx_Nx.199101.nc4.nc4?SPEED[0:0][0:60][0:575],time,lat[0:60],lon[0:575]
Resolving goldsmr4.gesdisc.eosdis.nasa.gov (goldsmr4.gesdisc.eosdis.nasa.gov)... 198.118.197.95
Connecting to goldsmr4.gesdisc.eosdis.nasa.gov (goldsmr4.gesdisc.eosdis.nasa.gov)|198.118.197.95|: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%2Fgoldsmr4.gesdisc.eosdis.nasa.gov%2Fdata-redirect&state=aHR0cHM6Ly9nb2xkc21yNC5nZXNkaXNjLmVvc2Rpcy5uYXNhLmdvdi9vcGVuZGFwL01FUlJBMl9NT05USExZL00yVE1OWEZMWC41LjEyLjQvMTk5MS9NRVJSQTJfMTAwLnRhdmdNXzJkX2ZseF9OeC4xOTkxMDEubmM0Lm5jND9TUEVFRFswOjBdWzA6NjBdWzA6NTc1XSx0aW1lLGxhdFswOjYwXSxsb25bMDo1NzVd [following]
--2023-02-16 20:18:42-- https://urs.earthdata.nasa.gov/oauth/authorize/?scope=uid&app_type=401&client_id=e2WVk8Pw6weeLUKZYOxvTQ&response_type=code&redirect_uri=http%3A%2F%2Fgoldsmr4.gesdisc.eosdis.nasa.gov%2Fdata-redirect&state=aHR0cHM6Ly9nb2xkc21yNC5nZXNkaXNjLmVvc2Rpcy5uYXNhLmdvdi9vcGVuZGFwL01FUlJBMl9NT05USExZL00yVE1OWEZMWC41LjEyLjQvMTk5MS9NRVJSQTJfMTAwLnRhdmdNXzJkX2ZseF9OeC4xOTkxMDEubmM0Lm5jND9TUEVFRFswOjBdWzA6NjBdWzA6NTc1XSx0aW1lLGxhdFswOjYwXSxsb25bMDo1NzVd
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.
Unable to establish SSL connection.
-
- Posts: 1
- Joined: Thu Feb 16, 2023 6:21 pm America/New_York
Re: Unable to establish SSL connection.
User paunaranjo ,
Please perform the following,
1. Check if you can download https://goldsmr4.gesdisc.eosdis.nasa.gov/data/MERRA2_MONTHLY/M2TMNXFLX.5.12.4/1991/MERRA2_100.tavgM_2d_flx_Nx.199101.nc4 from Web Browser
2. Execute wget --load-cookies C:\.urs_cookies --save-cookies C:\.urs_cookies --auth-no-challenge=on --keep-session-cookies --user=paunaranjo --ask-password https://goldsmr4.gesdisc.eosdis.nasa.gov/data/MERRA2_MONTHLY/M2TMNXFLX.5.12.4/1991/MERRA2_100.tavgM_2d_flx_Nx.199101.nc4 -v
3. Check version of wget, 'wget -V', upgrade to at least 1.19.5
Also I see that you provided your Earthdata Login password, for security purposes please go to https://urs.earthdata.nasa.gov/change_password to make the change.
Please perform the following,
1. Check if you can download https://goldsmr4.gesdisc.eosdis.nasa.gov/data/MERRA2_MONTHLY/M2TMNXFLX.5.12.4/1991/MERRA2_100.tavgM_2d_flx_Nx.199101.nc4 from Web Browser
2. Execute wget --load-cookies C:\.urs_cookies --save-cookies C:\.urs_cookies --auth-no-challenge=on --keep-session-cookies --user=paunaranjo --ask-password https://goldsmr4.gesdisc.eosdis.nasa.gov/data/MERRA2_MONTHLY/M2TMNXFLX.5.12.4/1991/MERRA2_100.tavgM_2d_flx_Nx.199101.nc4 -v
3. Check version of wget, 'wget -V', upgrade to at least 1.19.5
Also I see that you provided your Earthdata Login password, for security purposes please go to https://urs.earthdata.nasa.gov/change_password to make the change.