Skip to content

DMSP SSUSI certificate verify failed #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Zhugexiaoyuanyuan opened this issue Jan 11, 2025 · 3 comments
Open

DMSP SSUSI certificate verify failed #16

Zhugexiaoyuanyuan opened this issue Jan 11, 2025 · 3 comments

Comments

@Zhugexiaoyuanyuan
Copy link

Hi, I want to get an image of the DMSP SSUSI aurora so I tried to run the tutorial you provided: Example 4: Mapping geospatial data in the polar map. but I encountered the following problem:

HTTPSConnectionPool(host='ssusi.jhuapl.edu', port=443): Max retries exceeded with url: /data_retriver/?spc=f16&type=edr-aur&Doy=251&year=2015 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1020)')))
ERROR: The data source cannot be docked.
Check the built-in sourced data using the method: "list_sourced_dataset".
Or, add a temporary or user-defined dataset by the method of "add_dataset".
.......

So I added disable certificate validation:

import os
os.environ['REQUESTS_CA_BUNDLE'] = ''
os.environ['SSL_CERT_FILE'] = ''

But the problem still exists.

Am I going to have to register at this page: https://ssusi.jhuapl.edu to get the data, I just registered and I guess it will be a while before I get an account.

@JouleCai
Copy link
Owner

Thank you for reporting the issue. It is partially resolved by setting the verification to False. You can test it after upgrading the package to v0.8.13.

@Zhugexiaoyuanyuan
Copy link
Author

Thanks for your work, I just tested it and had the following problem:

Load IGRF coefficients ...
[WinError 3] The system cannot find the specified path.: 'D:\dmsp\SSCWS\SSCWS_info_satellites.pkl'
ERROR: The data source cannot be docked.
Check the built-in sourced data using the method: "list_sourced_dataset".
Or, add a temporary or user-defined dataset by the method of "add_dataset".
C:\anaconda\envs\geo\Lib\site-packages\shapely\creation.py:119: RuntimeWarning: invalid value encountered in linestrings
return lib.linestrings(coords, out=out, **kwargs)
Traceback (most recent call last):
File "c:\injection\magstorm\dmsp3.py", line 60, in
sc_dt = ds_s1['SC_DATETIME'].value.flatten()
~~~~~^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable

I just started using C:\dmsp to store data and had the above problem, I am now using D:\dmsp and still have the same problem.
I want to download this file manually, where can I find this file?

@JouleCai
Copy link
Owner

Please update the package to v0.8.14. The above issue should be solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants