issues: 294380515
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
294380515 | MDU6SXNzdWUyOTQzODA1MTU= | 1888 | Getting DataArrays from netCDF4 files correctly and without hassle | 601177 | open | 0 | 4 | 2018-02-05T12:45:42Z | 2020-12-06T18:07:47Z | NONE | ContextConsider a netCDF4 file with a group structure. For example, the following toy: ```python import netCDF4 as nc netCDF4 filef = nc.Dataset('simple_hierarchy.nc', 'w') coordinates in rootf.createDimension('x', 3) f.createVariable('x', 'f4', ('x',), fill_value=False) f['x'][:] = [1.1, 2.2, 3.3] f.createDimension('y', 2) f.createVariable('y', 'f4', ('y',), fill_value=False) f['y'][:] = [-0.9, -1.8] variables in rootf.createVariable('u', 'i1', (), fill_value=False) f.createVariable('v', 'u1', ('x','y'), fill_value=False) groupf.createGroup('g') g = f['g'] new/modified coordinates in gg.createDimension('y', 3) g.createVariable('y', 'f4', ('y',), fill_value=False) g['y'][:] = [-0.9, -1.8, -2.7] variable in gg.createVariable('w', 'u1', ('x', 'y'), fill_value=False) f.close() ``` Current behavior
Suggested behavior
Versionxarray 0.9.6 |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/1888/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |