This class implements the regular chunk grid for Zarr arrays. It manages reading from and writing to Zarr stores, using the codecs for data transformation.
zarr::zarr_extension -> chunk_grid_regular
chunk_shape(read-only) The dimensions of each chunk in the chunk grid of the associated array.
chunk_grid(read-only) The chunk grid of the associated array, i.e. the number of chunks in each dimension.
chunk_separatorSet or retrieve the separator to be used for creating store keys for chunks.
data_typeThe data type of the array using the chunking scheme. This is set by the array when starting to use chunking for file I/O.
codecsThe list of codecs used by the chunking scheme. These are set by the array when starting to use chunking for file I/O. Upon reading, the list of registered codecs.
storeThe store of the array using the chunking scheme. This is set by the array when starting to use chunking for file I/O.
array_prefixThe prefix of the array using the chunking scheme. This is set by the array when starting to use chunking for file I/O.
new()Initialize a new chunking scheme for an array.
chunk_grid_regular$new(array_shape, chunk_shape)array_shapeInteger vector of the array dimensions.
chunk_shapeInteger vector of the dimensions of each chunk.
An instance of chunk_grid_regular.
print()Print a short description of this chunking scheme to the console.
chunk_grid_regular$print()Self, invisibly.
metadata_fragment()Return the metadata fragment that describes this chunking scheme.
chunk_grid_regular$metadata_fragment()A list with the metadata of this codec.
read()Read data from the Zarr array into an R object.
chunk_grid_regular$read(start, stop)start, stopInteger vectors of the same length as the dimensionality of the Zarr array, indicating the starting and ending (inclusive) indices of the data along each axis.
A vector, matrix or array of data.
dataAn R object with the same dimensionality as the Zarr array.
start, stopInteger vectors of the same length as the dimensionality of the Zarr array, indicating the starting and ending (inclusive) indices of the data along each axis.
Self, invisibly.