Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Integrate

Choose the interface that fits your application.

InterfaceUse it forGuide
Python and xarrayRead and analyze stores, reconstruct temporal encoding, access physical values.Python
JavaScript readerFetch decoded cells without a DOM or renderer.Reader
MapLibre layerAdd a store to an existing map.MapLibre
chronozarr iframeEmbed a ready-made viewer with playback and inspection.Embedding
COG export and STACShare reconstructed values and catalog metadata with other tools.CLI

Python

import chronozarr
 
store = chronozarr.open_store("my_store")
values = store.read(t=0)

For a local notebook viewer, install chronozarr[notebook] and call chronozarr.view("my_store"). It starts a local range-capable server for local stores.

JavaScript

npm install chronozarr
import { openStore } from 'chronozarr'
 
const store = await openStore('https://data.tileripper.com/ucayali_santa_maria/chronozarr-4')
const lod = store.levels.length - 1
const cell = await store.getCell(lod, 0, 0, 0)
console.log(cell.data)
store.close()

The returned typed array contains reconstructed stored values. Scale and offset are applied separately when you want physical units.

Embed a viewer

<iframe
  title="Raster time series viewer"
  src="https://chronozarr.org/demo/?embed=1"
  width="100%"
  height="600"
  loading="lazy"
></iframe>

The embedding guide covers store URLs, controls, themes, and the postMessage contract for host applications.