Skip to main content

openLevelArray()

function openLevelArray(
root,
levelPath,
variable,
levelCache,
zarrVersion?): Promise<Array<any, Readable>>;

Opens and caches a specific multiscale level array. Keeps a small LRU-style cache of up to three levels.

Parameters

ParameterTypeDescription
rootLocation<Readable>Zarr group root.
levelPathstringPath to the multiscale level.
variablestringVariable name within the level (if any).
levelCacheMap<number, any>Cache of opened level arrays.
zarrVersion?3 | 2 | nullZarr version (2 or 3).

Returns

Promise<Array<any, Readable>>

The opened Zarr array for the specified level.