zarr-developers / VirtualiZarr

Create virtual Zarr stores from archival data files using xarray syntax
https://virtualizarr.readthedocs.io/en/latest/
Apache License 2.0
68 stars 10 forks source link

_ARRAY_DIMENSIONS still present in attrs of virtual dataset #150

Closed TomNicholas closed 2 weeks ago

TomNicholas commented 2 weeks ago

Opening a virtual dataset from netCDF with open_virtual_dataset I saw

Screenshot 2024-06-19 at 5 27 06 PM

The _ARRAY_DIMENSIONS should not be there, as it is redundant with the actual .dims of the xarray.Variable object. We should be checking that we've deleted _ARRAY_DIMENSIONS from the .attrs, and only re-instate it when writing out references to disk.