Dear sir/madam,
I’m currently trying to access data from the dataset below through OpenDAP using either Matlab or Python.
However, I fail to access the data, also after setting the .netrc and .dodsrc files in my C:\Users\reijmeri\ folder. I get the following errors:
Matlab: The NetCDF library encountered an error during execution of 'open' function - 'Access failure (-77)'.
Python: [Errno -77] NetCDF: Access failure: 'https://earth.bsc.es/thredds_dustclim/dodsC/monarch-dustclim/3hourly/concdubin8-av_an/concdubin8_2007010103_av_an.nc'
The .netrc and .dodsrc files have the following content
.netrc content:
machine earth.bsc.es
login USERNAME*
password PASSWORD*
* these are replaced by my credentials.
.dodsrc content:
HTTP.NETRC=C:\Users\reijmeri\.netrc
HTTP.COOKIEJAR=C:\Users\reijmeri\.dap_cookies # writable file for login cookies
Both Matlab and Python are able to find the .netrc and .dodsrc files, but no luck when accessing the data.
Do you by chance have an idea what might go wrong here?
p.s. I can access the data via HTTPServer in Matlab (using the credentials), but I rather only collect a subset of the data rather than downloading each complete file.
Many thanks in advance for your support.
With kind regards,
|
|
Bas Reijmerink ? Senior consultant Offshore and Port Hydrodynamics +31 6 46 91 11 52 ? bas.rei...@deltares.nl
Deltares – Enabling Delta Life |
|
|
|