Public
Edited
Jan 24, 2024
Insert cell
Insert cell
zarr = import("https://esm.sh/zarrita@next")
Insert cell
baseUrl = "https://raw.githubusercontent.com/zarr-developers/zarr_implementations/5dc998ac72/examples/"
Insert cell
writers = ({ "zarr.zr": ['blosc', 'raw', 'zlib', 'gzip'] })
Insert cell
arrays = Promise.all(
Object.entries(writers).map(async ([w, paths]) => {
let store = new zarr.FetchStore(new URL(w, baseUrl));
let grp = await zarr.open(store, { kind: "group" });
return Promise.all(
paths.map((p) => zarr.open(grp.resolve(p), { kind: "array" }))
);
})
).then((arr) => arr.flat())
Insert cell
Insert cell
data = Promise.all(arrays.map(async (arr) => [arr.path, await zarr.get(arr)]))
Insert cell
Insert cell
Insert cell
import { Table } from "@observablehq/inputs"
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more