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.
|
### 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
Originally posted by @vincentsarago in #17
The
spatial:dimensionsis 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 samespatial:dimensionsso it can be misleading. Also group doesn't havedimension_namesattribute in Zarr model.spatial/README.md
Lines 484 to 492 in 59dd7f4
IMO,
spatial:dimensionsshould only be defined at array level