Skip to content
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

netcdf > 1.6.1 does not read .netrc / .dodsrc #1299

Open
gauteh opened this issue Dec 12, 2023 · 4 comments
Open

netcdf > 1.6.1 does not read .netrc / .dodsrc #1299

gauteh opened this issue Dec 12, 2023 · 4 comments

Comments

@gauteh
Copy link

gauteh commented Dec 12, 2023

Hi,

To access CMEMS data-sources we use .netrc and .dodsrc, however it seems that versions post netcdf-1.6.1 no longer reads these files. Downgrading works fine. We use python-netcdf4 from conda-forge.

The issue seems to be present for ncdump and the likes as well.

Best regards, Gaute

Relevant issue: OpenDrift/opendrift#1083

@jswhit
Copy link
Collaborator

jswhit commented Dec 12, 2023

This must be due to a change in the C library, not netcdf4-python (that's why it also shows up in ncdump). I don't see anything in the netcdf-c Changelog though.

@dopplershift
Copy link
Member

cc @WardF @DennisHeimbigner

@gauteh
Copy link
Author

gauteh commented Dec 13, 2023

Maybe this issue: Unidata/netcdf-c#1966

@magnusuMET
Copy link

With nc_rc_set allowing one to set HTTP.NETRC we could do this automatically for more recent versions of netcdf4. There is precedent in netcdf4-python setting such options:

if nc_rc_set("HTTP.SSL.CAINFO", _strencode(certifi.where())) != 0:

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

Successfully merging a pull request may close this issue.

4 participants