issue_comments: 579203497
This data as json
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/pull/3545#issuecomment-579203497 | https://api.github.com/repos/pydata/xarray/issues/3545 | 579203497 | MDEyOklzc3VlQ29tbWVudDU3OTIwMzQ5Nw== | 5821660 | 2020-01-28T11:33:41Z | 2020-01-28T11:52:02Z | MEMBER | @scottcha @shoyer below is a minimal example where one variable is missing in each file. ```python import random random.seed(123) random.randint(0, 10) create var names list with one missing valueorig = [f'd{i:02}' for i in range(10)] datasets = [] for i in range(1, 9): l1 = orig.copy() l1.remove(f'd{i:02}') datasets.append(l1) create filesfor i, dsl in enumerate(datasets): foo_data = np.arange(24).reshape(2, 3, 4) with nc.Dataset(f'test{i:02}.nc', 'w') as ds: ds.createDimension('x', size=2) ds.createDimension('y', size=3) ds.createDimension('z', size=4) for k in dsl: ds.createVariable(k, int, ('x', 'y', 'z')) ds.variables[k][:] = foo_data flist = glob.glob('test*.nc') dslist = [] for f in flist: dslist.append(xr.open_dataset(f)) ds2 = xr.concat(dslist, dim='time') ds2 ``` Output:
Three cases here:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
524043729 |