Should (at least partially) address
|
o writeZarrArray() needs to write the array dimnames to disk. |
If the provided array has dimnames, write_zarr_array() will take names(dimnames()) and write it as dimension_names (spec).
Conversely, if the Zarr metadata has the dimension_names field, it is used to populate names(dimnames()) when reading.
The Zarr spec doesn't define how the elements of dimnames (beyond its names()) should be written. One can use the free-form attributes for this (Rarr::read_zarr_attributes()/Rarr::write_zarr_attributes()).