-
Notifications
You must be signed in to change notification settings - Fork 73
Description
Please redirect or absolve the issue if it violates the contributing guidelines
I've been working to get a tutorial python code from the Unidata site called GOES_aircraft.py, working from my corporation's computer. In the script, there are two function calls to retrieve data. When I execute this script, it fails with SSL errors related to the certificate verify failing. (note: This looks like a common problem for people running python scripts behind corporate firewalls.)
I've managed to figure-out a work-around for the first function, 'get_plane_data' by adding / altering these two lines:
.....
context = ssl._create_unverified_context()
with urllib.request.urlopen(endpoint_url, context=context) as f:
.....
When it comes to the second function, however, 'get_goes_image', I am not sure how to bypass the certificate check in the TDSCatalog call. I've looked through the catalog.py script for a flag for a solution, but am unable to identify where to begin.
Help or advice is greatly appreciated.