Skip to main content

topozarr

Create multiscale Zarr stores for web visualization.
Documentation · Examples · Release notes

topozarr turns an Xarray dataset into a multiscale Zarr v3 store, with each level 2x coarser than the last.

The stores follow the GeoZarr conventions and are built for zarr-layer, which renders them directly in the browser.

Installation

uv add topozarr

Or with pip: pip install topozarr.

Quick example

import xarray as xr
import xproj  # for CRS assignment
from topozarr import create_pyramid

ds = xr.tutorial.open_dataset("air_temperature").drop_encoding()
ds = ds.proj.assign_crs(spatial_ref="EPSG:4326")

pyramid = create_pyramid(ds, levels=2, x_dim="lon", y_dim="lat")
pyramid.write("pyramid.zarr")

See the usage guide for cloud stores, tuning, and more.

License

MIT. See the LICENSE file for details.

About us

CarbonPlan is a nonprofit organization that uses data and science for climate action. We aim to improve the transparency and scientific integrity of climate solutions through open data and tools. Find out more at carbonplan.org or get in touch by opening an issue or sending us an email.

Metadata

Release files for topozarr 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for topozarr 0.2.0
File Size Uploaded
topozarr-0.2.0.tar.gz 28.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for topozarr 0.2.0
File Interpreter ABI Platform
topozarr-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 59.4 kB

Release files / topozarr-0.2.0.tar.gz

Download URL topozarr-0.2.0.tar.gz
Size 28.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3f3836d9628ab7a79d4a4225026b0a25b2b377d3cd5892a9ad3d46b89ce5a17f
BLAKE2b-256 checksum
How to use checksums
34029614c9e41911cac98517ece17732b9cb7d42d0d514d3e5bdd447bd521f98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / topozarr-0.2.0-py3-none-any.whl

Download URL topozarr-0.2.0-py3-none-any.whl
Size 31.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b84b4bc04b92ed62112b661fdc39c1ca4506651ef05fd0963fa377a28968ad6c
BLAKE2b-256 checksum
How to use checksums
2bfe835d51823bdc86aa1844f5cf51d245760a8b809ffdd0204e642731aa6d3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.0.93

2 release files

0.0.92

2 release files

0.0.91

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page