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 drive_download.py -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-- https://podaac-tools.jpl.nasa.gov/drive ... -fv04.1.nc
Resolving podaac-tools.jpl.nasa.gov (podaac-tools.jpl.nasa.gov)... 137.78.248.120
Connecting to podaac-tools.jpl.nasa.gov (podaac-tools.jpl.nasa.gov)|137.78.248.120|:443... connected.
ERROR: The certificate of 'podaac-tools.jpl.nasa.gov' is not trusted.
ERROR: The certificate of 'podaac-tools.jpl.nasa.gov' hasn't got a known issuer.

"

It warns about untrusted certificate. Can you explain about the mistakes I made here.
Thank you in advance.
rattana06
 
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

Hi,
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.

Regards,

PODAAC DE
yiboj
 
Posts: 124
Joined: Mon Mar 30, 2015 11:22 am

Previous

Return to Data Recipes

cron