Skip to content

make spatial:dimensions an **Array only** properties #23

@vincentsarago

Description

@vincentsarago

Originally posted by @vincentsarago in #17

The spatial:dimensions is required at the group level because it's the only mandatory attribute of the convention. But we don't enforce that all arrays within the group share the same spatial:dimensions so it can be misleading. Also group doesn't have dimension_names attribute in Zarr model.

spatial/README.md

Lines 484 to 492 in 59dd7f4

### Can I use spatial: at the group level?
Yes, `spatial:` properties can be defined at both group and array levels. When defined at the group level:
- Properties apply to direct child arrays that don't define their own `spatial:` properties
- This is useful when multiple arrays share the same spatial coordinate system
- Arrays can define their own `spatial:` properties to override or supplement group-level definitions
This is particularly useful with multiscales, where the CRS (`proj:`) is shared but spatial properties (`spatial:shape`, `spatial:transform`) vary per resolution level.

IMO, spatial:dimensions should only be defined at array level

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions