Skip to content

Array.dimension_names property #3595

Open

Description

@sehoffmann

Describe the new feature you'd like

The newly introduced dimension_names metadata can, at the moment, only be accessed via array.metadata.dimension_names. Parameters passed to zarr.create like shape or chunks can afterwards often be accessed as properties of Array. Hence, it would be consistent (and convenient) to have a Array.dimension_names property.

Activity

  1. d-v-b commented on Nov 21, 2025

    @d-v-b
    Contributor

    the reason for this state is the fact that zarr v2 arrays do not have dimension names. there are a few ways we could address this, but the simplest is probably to set dimension_names to None for zarr v2 arrays. This is consistent with the zarr v3 dimension_names attribute.

  2. sehoffmann commented on Nov 21, 2025

    @sehoffmann
    ContributorAuthor

    I agree. Setting it to None in that case would be the sensible choice in my opinion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions