question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Storing history of xarray operations

See original GitHub issue

It 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:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rabernatcommented, Sep 26, 2018

This package addresses this issue: https://github.com/recipy/recipy

They are working on xarray support: https://github.com/recipy/recipy/issues/176

0reactions
pwolframcommented, Apr 16, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found