Open shoyer opened 7 years ago
Any updates on this?
None that I'm aware of. I think this issue is still in the "help wanted" stage.
I would love to have this capability. As @shoyer mentioned, for adding time steps of any sort to existing netcdf files would be really beneficial. The only real alternative is to save a netcdf file for each additional time step...even if there are tons of time steps and each file is a couple hundred KBs (which is my situation with NASA data).
I'll look into it if I get some time...
This would be extremely helpful for our modelling of time varying renewable energy.
I think I got a basic prototype working.
That said, I think a real challenge lies in supporting the numerous backends and lazy arrays.
For example, I was only able to add data in peculiar fashions using the netcdf4 library which may trigger complex computations many times.
Is this a use case that we must optimize for now?
Small prototype, but maybe it can help boost the development.
hi - i consider this extremely useful!!!
is your prototype already part of some library (or should we expect it in xr?)
many thanks for the code
It isn't really part of any library. I don't really have plans of making it into a public library. I think the discussion is really around the xarray API, and what functions to implement at first.
Then somebody can take the code and integrate it into the decided upon API.
Any movement on this? I'd love to have this -- kinda critical for some of my work.
@hmaarrfk seems to have made a start, and it doesn't look too hairy :-)
This would be a nice feature to have for some use cases, e.g., for writing simulation time-steps: https://stackoverflow.com/questions/46951981/create-and-write-xarray-dataarray-to-netcdf-in-chunks
It should be relatively straightforward to add, too, building on support for writing files with unlimited dimensions. User facing API would probably be a new keyword argument to
to_netcdf()
, e.g.,extend='time'
to indicate the extended dimension.