issues: 405244302
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
405244302 | MDU6SXNzdWU0MDUyNDQzMDI= | 2731 | Can't access variables in the subgroup | 30388627 | closed | 0 | 1 | 2019-01-31T13:24:51Z | 2019-01-31T21:57:57Z | 2019-01-31T21:57:57Z | NONE | Code Sample```python import xarray as xr from netCDF4 import Dataset rootgrp = Dataset("test.nc", "w", format="NETCDF4") fcstgrp = rootgrp.createGroup("forecasts") lat = rootgrp.createDimension("lat", 73) lon = rootgrp.createDimension("lon", 144) latitudes = rootgrp.createVariable("lat","f4",("lat",)) longitudes = rootgrp.createVariable("lon","f4",("lon",)) temp = rootgrp.createVariable("temp","f4",("lat","lon",)) ftemp = rootgrp.createVariable("/forecasts/temp","f4","lat","lon",) rootgrp.close() ds = xr.open_dataset('test.nc') print (ds['temp']) print (ds['/forecasts/temp']) ``` Problem descriptionThe Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2731/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |