Public
Edited
Aug 18, 2023
Insert cell
# Zarrita.js
Insert cell
zarr = import("https://cdn.jsdelivr.net/npm/zarrita@0.3.0/+esm")
Insert cell
store = new zarr.FetchStore(
"https://carbonplan-benchmarks.s3.us-west-2.amazonaws.com/data/NEX-GDDP-CMIP6/ACCESS-CM2/historical/r1i1p1f1/tasmax/tasmax_day_ACCESS-CM2_historical_r1i1p1f1_gn/pyramids-v3-sharded-4326-1MB/"
)
// store = new zarr.FetchStore(
// "https://raw.githubusercontent.com/zarr-developers/zarr_implementations/5dc998ac72/examples/zarr.zr/blosc"
// )
Insert cell
//group = zarr.open(store, { kind: "group" })
Insert cell
root = zarr.open.v3(store)
Insert cell
new TextDecoder().decode(await root.store.get("/zarr.json"))
Insert cell
{
const arr = await zarr.open(root.resolve("0/x"));
const chunk = await arr.getChunk([0]);
return arr.shape;
}
Insert cell
root.attrs()
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