You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!DOCTYPE html><html><head><metacharset="utf-8" /><title>Untitled</title><metaname="viewport" content="width=device-width, initial-scale=1" /></head><body><p>Things are in the console - look there</p><!-- JSPM Generator Import Map Edit URL: https://generator.jspm.io/#U2NhYGBkDM0rySzJSU1hqEosKnIw0DPTMwQArVL7dRkA --><scripttype="importmap">{"imports": {"reference-spec-reader": "https://ga.jspm.io/npm:reference-spec-reader@0.1.3/src/index.js","zarr": "https://ga.jspm.io/npm:zarr@0.6.1/zarr.mjs"}}</script>
<!-- ES Module Shims: Import maps polyfill for modules browsers without import maps support (all except Chrome 89+) --><scriptasyncsrc="https://ga.jspm.io/npm:es-module-shims@1.7.0/dist/es-module-shims.js"
crossorigin="anonymous"
></script><scripttype="module">import*aszarrfrom"zarr";import{ReferenceStore}from"reference-spec-reader";const{ HTTPStore, slice, openArray, NestedArray }=zarr;constdate="20230310";constURL=`https://mnemosyne.somisana.ac.za/somisana/marine-heat-waves/${date}.kerchunk.json`;constvariable="marine_heat_waves";constzArray=`${variable}/.zarray`;constzChunk=`${variable}/0.0.0`;constrefs=awaitfetch(URL).then((res)=>res.json());conststore=ReferenceStore.fromJSON(refs);const{ dtype, shape }=JSON.parse(store.ref.get(zArray));console.info("Fetching binary array... (look at your network tab)");constbinaryData=awaitstore.getItem(zChunk);constnArray=newNestedArray(binaryData,shape,dtype);window.nArray=nArray;console.info('Done. Access the Zarr.js NestedArray instance on the browser window object (just type "nArray" or "window.nArray" in this console)');</script></body></html>
The text was updated successfully, but these errors were encountered:
Kerchunk example
The text was updated successfully, but these errors were encountered: