Skip to content

Handle U and S dtypes in Zarr#1563

Merged
lesserwhirls merged 1 commit into
Unidata:maint-5.xfrom
lesserwhirls:gh-1534
Jun 17, 2026
Merged

Handle U and S dtypes in Zarr#1563
lesserwhirls merged 1 commit into
Unidata:maint-5.xfrom
lesserwhirls:gh-1534

Conversation

@lesserwhirls

@lesserwhirls lesserwhirls commented Jun 17, 2026

Copy link
Copy Markdown
Member

Description of Changes

Zarr arrays with U and S dtypes need special handling, as the numeric value in their dtype definition does not simply represent the byte size of each element. Also, update the script that generates test_dtypes.zarr to include a U2 and S2 array, and migrate to the Zar v3 API (still writing the Zarr V2 format). Fixes #1534.

PR Checklist

  • Link to any issues that the PR addresses
  • Add labels
  • Open as a draft PR
    until ready for review
  • Make sure GitHub tests pass
  • Mark PR as "Ready for Review"

Zarr arrays with U and S dtypes need special handling, as the numeric
value in their dtype definition does not simply represent the byte size
of each element. Also, update the script that generates test_dtypes.zarr
to include a U2 and S2 array, and migrate to the Zar v3 API (still
writing the Zarr V2 format). Fixes Unidata#1534.
@lesserwhirls lesserwhirls marked this pull request as ready for review June 17, 2026 18:33
@lesserwhirls lesserwhirls merged commit 1c6b9c8 into Unidata:maint-5.x Jun 17, 2026
15 checks passed
@lesserwhirls lesserwhirls deleted the gh-1534 branch June 17, 2026 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

iosp: zarr zarr format

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zarr "S" and "U" dtypes incorrectly handled

1 participant