Storing history of xarray operations
See original GitHub issueIt may be useful to keep track of operations applied to DataArrays and Datasets in order to enhance provenance of output netcdf datasets, particularly for scientific applications to enhance reproducibility. However, this essentially would require keeping track of all the operations that were used to produce a given DataArray or Dataset.
Ideally, we would want this to eventually result in appending data to the ‘history’ attribute for calls to *.to_netcdf(...)
. This would keep track of data manipulation similar to nco/ncks/etc operations.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Reading and writing files - Xarray
The recommended way to store xarray data structures is netCDF, which is a binary file format for self-described datasets that originated in the ......
Read more >Xarray Fundamentals - Research Computing in Earth Sciences
Describe the core xarray data structures, the DataArray and the Dataset , and the components that make them up, including: Data Variables, ...
Read more >Xarray Tutorial — Pangeo Gallery documentation
Xarray data structures We start by creating the data as numpy arrays. Now we are going to put this into an xarray DataArray....
Read more >Introduction to Xarray - Pythia Foundations
Introducing the DataArray and Dataset ... Xarray expands on the capabilities on NumPy arrays, providing a lot of streamlined data manipulation. It is...
Read more >History — XClim Official Documentation - Read the Docs
xclim now requires xarray>=2022.06.0 . ... Rechunking operations in xclim.indices.run_length.rle are now synchronized with dask's options.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This package addresses this issue: https://github.com/recipy/recipy
They are working on xarray support: https://github.com/recipy/recipy/issues/176
Thanks @shoyer! I think after this discussion that this is something we should handle within our own wrapper. There does not seem to be a clean one size fits all solution warranting inclusion in xarray, unless I’m mistaken. If so, I hope someone chimes in to correct me.