YAXArrays.jl
YAXArrays.jl copied to clipboard
Persistent renaming of an axis?
I need to rename an axis for a large data cube so that I would not like to load it and then rename the axis with renameaxisand then save it again, because this would copy around a lot of data which would be unnecessary.
According to this stack overflow answer, https://stackoverflow.com/questions/67679347/how-can-i-rename-a-zarr-array-without-writing-new-store we could rename the folder of the dimension and then rename every occurence of this dimension name in the .zattrs files.
Is this something that we would like to support programmatically ? Or is this something that should be taken care of by Zarr.jl and other backend packages?
I think it would be great to support this programmatically, also on the YAXArrays level. We should think about a set of in-place Dataset modification functions we would want to support. In addition to axis renaming axis extension would be very high on my priority list so that it will be possible to e.g. add another year of data to a cube that originally had less time steps.