Public
Edited
Jul 14, 2024
1 fork
2 stars
Insert cell
Insert cell
zarr = import('https://cdn.skypack.dev/zarr@0.5')
Insert cell
rootUrl = '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]) => {
const store = new zarr.HTTPStore(`${rootUrl}/${w}`);
const grp = await zarr.openGroup(store);
const arrs = await Promise.all(
paths.map(async p => {
const name = `${w}-${p}`;
const arr = await grp.getItem(p);
return { name, arr };
})
);
return arrs;
})
).then(arr => arr.flat())
Insert cell
Insert cell
data = Promise.all(arrays.map(async d => [d.name, await d.arr.getRaw(null)]))
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