Skip to content

Supported Types

Zarr has a wide range of supported datatypes. zarrita translates these into an appropriate classes in Javascript, either using built in typed arrays, the Array class, or a zarrita class. Not all zarr datatypes are supported.

typezarrita array type
int8Int8Array
int16Int16Array
int32Int32Array
int64BigInt64Array
uint8Uint8Array
uint16Uint16Array
uint32Uint32Array
uint64BigUint64Array
float16Float16Array
float32Float32Array
float64Float64Array
boolBoolArray
stringArray<string>

Zarr V2 types are mapped to the above, with some specific additional cases.

V2 typezarrita array type
\<U length and \>U lengthUnicodeStringArray
\<S length and \>S lengthByteStringArray
|OArray<unknown>

Released under the MIT License.