You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Xarray datasets can only represent a single group. To open a group in a netCDF file, you would supply the group kwarg. For example:
ds=xr.open_dataset('test.nc', group='/forecasts')
There is a lot of discussion as to why this is and potential avenues for moving forward in #1092. The behavior and usage is also described in the xarray documentation here. I'm going to close this issue and encourage you to weigh in on #1092 if this issue interests you.
Code Sample
Problem description
The
temp
variable in the/
group can be accessed successfully, buttemp
in the/forecasts
group not.It says:
Output of
xr.show_versions()
xarray: 0.11.0
pandas: 0.23.4
numpy: 1.15.4
scipy: 1.1.0
netCDF4: 1.4.2
h5netcdf: 0.5.1
h5py: 2.8.0
Nio: None
zarr: None
cftime: 1.0.0
PseudonetCDF: None
rasterio: None
iris: 2.2.0
bottleneck: 1.2.1
cyordereddict: None
dask: 0.16.1
distributed: 1.20.2
matplotlib: 3.0.2
cartopy: 0.17.0
seaborn: 0.8.1
setuptools: 38.4.0
pip: 18.1
conda: 4.6.1
pytest: 3.3.2
IPython: 6.2.1
sphinx: 1.6.6
The text was updated successfully, but these errors were encountered: