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

ParameterTypeDefault valueDescription
rootLocation<FetchStore>undefinedZarr group root.
levelPathstringundefinedPath to the multiscale level.
variablestringundefinedVariable name within the level (if any).
levelCacheMap<number, any>undefinedCache of opened level arrays.
zarrVersion2 | 3 | nullnullZarr version (2 or 3).

Returns

Promise<Array<any, Readable>>

The opened Zarr array for the specified level.