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
| Parameter | Type | Default value | Description |
|---|---|---|---|
root | Location<FetchStore> | undefined | Zarr group root. |
levelPath | string | undefined | Path to the multiscale level. |
variable | string | undefined | Variable name within the level (if any). |
levelCache | Map<number, any> | undefined | Cache of opened level arrays. |
zarrVersion | 2 | 3 | null | null | Zarr version (2 or 3). |
Returns
Promise<Array<any, Readable>>
The opened Zarr array for the specified level.