html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue https://github.com/pydata/xarray/issues/4925#issuecomment-1385870450,https://api.github.com/repos/pydata/xarray/issues/4925,1385870450,IC_kwDOAMm_X85SmrRy,2448579,2023-01-17T18:44:00Z,2023-01-17T18:44:00Z,MEMBER,Thanks! @aaron-kaplan ,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,811409317 https://github.com/pydata/xarray/issues/4925#issuecomment-1374023636,https://api.github.com/repos/pydata/xarray/issues/4925,1374023636,IC_kwDOAMm_X85R5e_U,766406,2023-01-06T19:11:52Z,2023-01-06T19:11:52Z,NONE,"Thanks to the holiday lull, I finally found some time to finish implementing URL-decoding for querystrings in the IRI Data Library server software. The example now works for me with xarray 2022.12.0, netcdf4 1.6.2, and libnetcdf 4.8.1.","{""total_count"": 1, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 1, ""rocket"": 0, ""eyes"": 0}",,811409317 https://github.com/pydata/xarray/issues/4925#issuecomment-1039237763,https://api.github.com/repos/pydata/xarray/issues/4925,1039237763,IC_kwDOAMm_X8498YKD,11950284,2022-02-14T15:41:48Z,2022-02-14T15:41:48Z,NONE,Thank you for the issue discussion and temporary solution from @scottyhq! I was able to use the temporary solution to get the data I needed from IRI at the moment. The example still generates error while I tried and have some similar error when downloading the NMME hindcasts. Hope the IRI software issue will be clear soon! ,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,811409317 https://github.com/pydata/xarray/issues/4925#issuecomment-977948373,https://api.github.com/repos/pydata/xarray/issues/4925,977948373,IC_kwDOAMm_X846Sk7V,766406,2021-11-24T14:48:02Z,2021-11-24T14:48:02Z,NONE,"The OPeNDAP server at iridl.ldeo.columbia.edu doesn't accept URL-encoded querystrings. It never did, but that used to be ok because older versions of netcdf-c didn't encode the querystrings. More recent versions do. So a change in netcdf-c is the proximal cause of the example breaking, but the root of the problem is on the server side. We (IRI) are working on fixing the server software.","{""total_count"": 4, ""+1"": 4, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,811409317 https://github.com/pydata/xarray/issues/4925#issuecomment-812643265,https://api.github.com/repos/pydata/xarray/issues/4925,812643265,MDEyOklzc3VlQ29tbWVudDgxMjY0MzI2NQ==,221526,2021-04-02T18:01:21Z,2021-04-02T18:01:21Z,CONTRIBUTOR,"The message: > ""The identifier `tmax.tmax%5b0%5d%5b0:3:620%5d%5b0:3:1404%5d' is not in the dataset."" makes me wonder if there's some issue with how the webserver is handling the escaping of certain characters (like e.g. `[`)","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,811409317 https://github.com/pydata/xarray/issues/4925#issuecomment-812365653,https://api.github.com/repos/pydata/xarray/issues/4925,812365653,MDEyOklzc3VlQ29tbWVudDgxMjM2NTY1Mw==,12556634,2021-04-02T07:09:12Z,2021-04-02T07:09:53Z,NONE,"Hi, did anyone in the meantime gain insights on the cause of this issue? @scottyhq @dopplershift @rabernat ? ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,811409317 https://github.com/pydata/xarray/issues/4925#issuecomment-783353154,https://api.github.com/repos/pydata/xarray/issues/4925,783353154,MDEyOklzc3VlQ29tbWVudDc4MzM1MzE1NA==,12556634,2021-02-22T12:54:38Z,2021-02-22T12:54:38Z,NONE,"@scottyhq Sorry yes that was indeed the problem, was installing packages with pip and that caused incompatibility, thanks for looking into it. Would be great nevertheless to figure out the root of the issue. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,811409317 https://github.com/pydata/xarray/issues/4925#issuecomment-782258574,https://api.github.com/repos/pydata/xarray/issues/4925,782258574,MDEyOklzc3VlQ29tbWVudDc4MjI1ODU3NA==,3924836,2021-02-19T18:29:34Z,2021-02-19T19:10:58Z,MEMBER,"@Tinkaa I looked into this a bit more and I suspect the way you are installing packages (conda, pip?) is important to bring in compatible libnetcdf behind the scenes (You're xr.show_versions() shows new libnetcdf: 4.7.4 but older netCDF4: 1.5.0.1 making me think you installed and older version netcdf into an existing environment without any dependency resolution). This works for me on mac0S: `conda create -c conda-forge -n opendap_working python xarray netcdf4==1.5.1 matplotlib` Note that I found the explicit pin important. Perhaps because it brings in libnetcdf=4.6.2 behind the scenes? Here is my full list of working versions: ``` INSTALLED VERSIONS ------------------ commit: None python: 3.7.10 | packaged by conda-forge | (default, Feb 19 2021, 15:59:12) [Clang 11.0.1 ] python-bits: 64 OS: Darwin OS-release: 20.3.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 libhdf5: 1.10.4 libnetcdf: 4.6.2 xarray: 0.16.2 pandas: 1.2.2 numpy: 1.20.1 scipy: None netCDF4: 1.5.0.1 pydap: None h5netcdf: None h5py: None Nio: None zarr: None cftime: 1.4.1 nc_time_axis: None PseudoNetCDF: None rasterio: None cfgrib: None iris: None bottleneck: None dask: None distributed: None matplotlib: 3.3.4 cartopy: None seaborn: None numbagg: None pint: None setuptools: 49.6.0.post20210108 pip: 21.0.1 conda: None pytest: None IPython: None sphinx: None ``` Hopefully some folks that know more about opendap could chime in (@dopplershift, @rabernat ?) to help get to the root of this issue. For what it's worth, I noticed this additional log output that wasn't surfaced in the jupyter notebook in addition to the original traceback i posted: ``` oc_open: server error retrieving url: code=3 message=""The identifier `tmax.tmax%5b0%5d%5b0:3:620%5d%5b0:3:1404%5d' is not in the dataset.""oc_open: server error retrieving url: code=3 message=""The identifier `tmax.tmax%5b0%5d%5b0:3:620%5d%5b0:3:1404%5d' is not in the dataset.""oc_open: server error retrieving url: code=3 message=""The identifier `tmax.tmax%5b0%5d%5b0:3:620%5d%5b0:3:1404%5d' is not in the dataset.""oc_open: server error retrieving url: code=3 message=""The identifier `tmax.tmax%5b0%5d%5b0:3:620%5d%5b0:3:1404%5d' is not in the dataset."" oc_open: server error retrieving url: code=3 message=""The identifier `tmax.tmax%5b0%5d%5b0:3:620%5d%5b0:3:1404%5d' is not in the dataset.""^CTraceback (most recent call last): File ""/Users/scott/miniconda3/envs/opendap_test/lib/python3.9/site-packages/xarray/backends/common.py"", line 52, in robust_getitem return array[key] File ""src/netCDF4/_netCDF4.pyx"", line 4420, in netCDF4._netCDF4.Variable.__getitem__ File ""src/netCDF4/_netCDF4.pyx"", line 5363, in netCDF4._netCDF4.Variable._get File ""src/netCDF4/_netCDF4.pyx"", line 1950, in netCDF4._netCDF4._ensure_nc_success RuntimeError: NetCDF: file not found ``` ","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,811409317 https://github.com/pydata/xarray/issues/4925#issuecomment-781968755,https://api.github.com/repos/pydata/xarray/issues/4925,781968755,MDEyOklzc3VlQ29tbWVudDc4MTk2ODc1NQ==,12556634,2021-02-19T09:58:11Z,2021-02-19T09:58:22Z,NONE,"Just confirming I have the same error/traceback with the example you gave. But this error persists when pinning netCDF4 to version 1.5.1.. Got to the issue because I got the same error when trying to clip another IRI dataset with OpenDAP. **Environment:**
Output of xr.show_versions()
$ INSTALLED VERSIONS
------------------
commit: None
python: 3.8.5 (default, Nov 18 2020, 15:31:37) 
[Clang 12.0.0 (clang-1200.0.31.1)]
python-bits: 64
OS: Darwin
OS-release: 20.3.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.UTF-8
libhdf5: 1.12.0
libnetcdf: 4.7.4

xarray: 0.16.2
pandas: 1.1.3
numpy: 1.19.1
scipy: 1.5.4
netCDF4: 1.5.0.1
pydap: installed
h5netcdf: None
h5py: None
Nio: None
zarr: None
cftime: 1.3.0
nc_time_axis: None
PseudoNetCDF: None
rasterio: 1.1.7
cfgrib: None
iris: None
bottleneck: None
dask: None
distributed: None
matplotlib: 3.3.1
cartopy: 0.18.0
seaborn: 0.11.0
numbagg: None
pint: None
setuptools: 50.3.2
pip: 20.3.3
conda: None
pytest: None
IPython: 7.19.0
sphinx: None
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,811409317