Zarr.Codecs
An array has an associated list of codecs. Each codec specifies a bidirectional transform (an encode transform and a decode transform). This module contains building blocks for creating and working with a chain of codecs.
raised when a codec chain contains more than 1 array->bytes codec.
raised when a codec chain contains a Transpose codec with an incorrect order.
raise when a codec chain contains a shardingindexed codec with an incorrect inner chunk shape.
raised when a codec chain has incorrect ordering of codecs. i.e if the ordering is not arraytoarray list -> 1 arraytobytes -> bytestobytes list
.
raised when a codec chain contains a Zstd codec with an incorrect compression value.
A type representing valid Gzip codec compression levels.
A type representing bytes -> bytes
codecs that produce fixed sized encoded strings.
A type representing bytes -> bytes
codecs that produce variable sized encoded strings.
The type of bytes -> bytes
codecs.
A type representing the location of a shard's index array in an encoded byte string.
The type of array -> bytes
codecs that produce fixed sized encoded string.
The type of array -> bytes
codecs that produce variable sized encoded string.
and shard_config = {
chunk_shape : int array;
codecs : [ arraytoarray
| fixed_arraytobytes
| `ShardingIndexed of shard_config
| bytestobytes ]
list;
index_codecs : [ arraytoarray | fixed_arraytobytes | fixed_bytestobytes ] list;
index_location : loc;
}
A type representing the Sharding indexed codec's configuration parameters.
The type of array -> bytes
codecs.
type codec_chain = [ arraytoarray | array_tobytes | bytestobytes ] list
A type used to build a user-defined chain of codecs when creating a Zarr array.
The type summarizing the decoded/encoded representation of a Zarr array or chunk.
module Chain : sig ... end
A module containing functions to encode/decode an array chunk using a predefined set of codecs.