-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Problem opening Med-CORDEX OpenDAP files #3754
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
Comments
Can you try the steps in the authentication section under https://xarray.pydata.org/en/stable/io.html#opendap? |
Hello @dcherian, Thanks for your quick reply! I don't have any authentication issue accesing the dataset, the problem is when I try to access rsds data.
|
Hello @dcherian again, Although I didn't seem to have any problems with authentication, I tried to use authentication with requests that you recommended in the documentation link. It seems that this way I can access data without any problem. My question now is that I don't know how to load multiple files into a single dataset without using a loop:
That is, is there any equivalent to |
I answer myself just in case it might be helpful to other people:
I close this issue and thanks @dcherian for your help! |
@juanfcocontreras That |
Uh oh!
There was an error while loading. Please reload this page.
MCVE Code Sample
To obtain the files, it is necessary to request a username and password. These details are freely available for research purposes with prior authorization (https://www.medcordex.eu/medcordex_register.php). They must be entered in the list of urls.
Expected Output
A file called "test.nc" is created with the selection data. This happens if I download the netCDF files locally, but not using OpenDAP.
Problem Description
The data variable rsds cannot be converted to nparray, and the file cannot be saved. The error occurs when running:
Error message:
Full traceback
Output of
xr.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.7.6 | packaged by conda-forge | (default, Jan 7 2020, 22:05:27)
[Clang 9.0.1 ]
python-bits: 64
OS: Darwin
OS-release: 19.3.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: es_ES.UTF-8
LANG: es_ES.UTF-8
LOCALE: es_ES.UTF-8
libhdf5: 1.10.5
libnetcdf: 4.7.3
xarray: 0.15.0
pandas: 1.0.0
numpy: 1.18.1
scipy: 1.4.1
netCDF4: 1.5.3
pydap: installed
h5netcdf: None
h5py: 2.10.0
Nio: None
zarr: None
cftime: 1.0.4.2
nc_time_axis: None
PseudoNetCDF: None
rasterio: 1.1.2
cfgrib: None
iris: None
bottleneck: None
dask: 2.10.1
distributed: 2.10.0
matplotlib: 3.1.3
cartopy: 0.17.0
seaborn: 0.10.0
numbagg: None
setuptools: 45.1.0.post20200119
pip: 20.0.2
conda: 4.8.2
pytest: 5.3.5
IPython: 7.12.0
sphinx: None
The text was updated successfully, but these errors were encountered: