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.1

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.1
File Size Uploaded Provenance Actions
topozarr-0.2.1.tar.gz 28.8 kB Without provenance Details for topozarr-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 60.2 kB

Release files / topozarr-0.2.1.tar.gz

Download URL topozarr-0.2.1.tar.gz
Size 28.8 kB
Tags Source
SHA-256 checksum
How to use checksums
91cd0ea563b3e7e428f20c5c4c35cdc0ede4b57f4d13cc60cb39a8f52c552445
BLAKE2b-256 checksum
How to use checksums
cd2ddd9f6936c333eeb53ec90f2f80f2ca27a8e962312ae67e4f0f7080810e8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","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.1-py3-none-any.whl

Download URL topozarr-0.2.1-py3-none-any.whl
Size 31.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
734d8964a2baa99ed5755431e80a081220062d98bebecfe6ffee9b7cbffb3dc2
BLAKE2b-256 checksum
How to use checksums
3b8a30817e1c4dcd39608c347eafbb4e60f4b601c745a52574ee3aab13de450a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.4 {"installer":{"name":"uv","version":"0.13.4","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}

Security for topozarr 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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