Skip to content

does zarr support big-endian #3005

@martindurant

Description

@martindurant

Describe the issue linked to the documentation

https://github.com/zarr-developers/zarr-python/blob/main/src/zarr/core/metadata/v3.py#L687 seems to imply that where a (v2) data type is defined as big-endian, zarr cannot read it. Is this the case?

File ~/code/zarr/src/zarr/core/metadata/v3.py:704, in DataType.from_numpy(cls, dtype)
    686     return DataType.string
    687 dtype_to_data_type = {
    688     "|b1": "bool",
    689     "bool": "bool",
   (...)
    702     "<c16": "complex128",
    703 }
--> 704 return DataType[dtype_to_data_type[dtype.str]]

KeyError: '>i4'

(reached via virtualizarr reading a kerchunked netCDF3 file)
cc @TomNicholas perhaps you've come across this kind of thing.

Suggested fix for documentation

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew features or improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions