Slice and index a Zarr array with
scijs/ndarray
.
npm install @zarrita/ndarray@next
import { get, slice } from "@zarrita/ndarray";
let arr = await zarr.open(group.resolve("foo"), { kind: "array" });
let region = await get(arr, [slice(10, 20), null, 0]);
Read the documentation to learn more.
MIT