Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to append_dim to netcdf stores #4394

Closed
hmaarrfk opened this issue Aug 31, 2020 · 2 comments
Closed

Is it possible to append_dim to netcdf stores #4394

hmaarrfk opened this issue Aug 31, 2020 · 2 comments

Comments

@hmaarrfk
Copy link
Contributor

hmaarrfk commented Aug 31, 2020

Is your feature request related to a problem? Please describe.
Feature request: It seems that it should be possible to append to netcdf4 stores along the unlimited dimensions. Is there an example of this?

Describe the solution you'd like
I would like the following code to be valid:

from xarray.tests.test_dataset import create_append_test_data
ds, ds_to_append, ds_with_new_var = create_append_test_data()

filename = 'test_dataset.nc'
# Choose any one of
# engine : {'netcdf4', 'scipy', 'h5netcdf'}
engine = 'netcdf4'
ds.to_netcdf(filename, mode='w', unlimited_dims=['time'], engine=engine)
ds_to_append.to_netcdf(filename, mode='a', unlimited_dims=['time'], engine=engine)

Describe alternatives you've considered
I guess you could use zarr, but the fact that it creates multiple files is a problem.

Additional context
xarray version: 0.16.0

@dopplershift
Copy link
Contributor

Duplicate of #1672?

@dcherian
Copy link
Contributor

Thanks! Closing as duplicate of #1672

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants