Multiple File Download from PO.DAAC Drive Using Python

Re: Multiple File Download from PO.DAAC Drive Using Python

Postby rattana06 » Wed Aug 05, 2020 11:56 pm

Dear PODAAC database experts,

I have used the python program of the discussion above to download SST data from GHRSST.
I run the following command on anaconda on window 10:

"python -u Username:Password -s 20020601 -f 20200804 -x MUR-JPL-L4-GLOB-v4.1 -t wget"

Note that the username and password I used is the one derived from
"Access PO.DAAC Drive API Credentials"

After running the code I got the following errors:
Please wait while program searching for the granules ...

OK to download? [yes or no]: yes
--2020-08-06 13:30:51-- ...
Resolving (
Connecting to (||:443... connected.
ERROR: The certificate of '' is not trusted.
ERROR: The certificate of '' hasn't got a known issuer.


It warns about untrusted certificate. Can you explain about the mistakes I made here.
Thank you in advance.
Posts: 1
Joined: Wed Aug 05, 2020 11:30 pm

Re: Multiple File Download from PO.DAAC Drive Using Python

Postby yiboj » Thu Aug 06, 2020 10:11 am

Thanks for your inquiry and support.

First, you need to install the cygwin package ca-certificates via Cygwin's setup.exe to get the certificates.
Second, you need to tell wget where your certificates are, since it doesn't pick them up by default in Cygwin environment. If you can do that either with the command-line parameter --ca-directory=/usr/ssl/certs (best for shell scripts) or by adding ca_directory = /usr/ssl/certs to ~/.wgetrc file.

You can also disable checking SSL traffic by modifying the wget code in the python script:

wget --no-check-certificate

Hope this helps and please let us know.


Posts: 122
Joined: Mon Mar 30, 2015 11:22 am


Return to Data Recipes