Skip to content

Zarr V3 support: use dimension_names array metadata rather than user attribute _ARRAY_DIMENSIONS #9668

Closed
@rabernat

Description

@rabernat

What is your issue?

Zarr V3 now explicitly supports dimension names on arrays (see Array API docs.

This makes our _ARRAY_DIMENSIONS special attribute unnecessary.

# need some special secret attributes to tell us the dimensions
DIMENSION_KEY = "_ARRAY_DIMENSIONS"

However, we are still using _ARRAY_DIMENSIONS with V3 in Xarray.

It would be great to fix this before we release V3 support so we don't start putting V3 data out into wild with this attribute set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic-zarrRelated to zarr storage library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions