/geotessera:geotesserafrom geotessera
Reads Tessera satellite embeddings from a public zarr store using the geotessera Python library. Supports sampling, mapping, and classification workflows on 128-dimensional geospatial embeddings.
Ships in geotessera. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Tessera is a geospatial foundation model. It compresses a year of
Sentinel-1/2 observations into a 128-dimensional embedding for every 10m
pixel of land, for every year since 2017. The geotessera library streams
these embeddings from a public zarr v3 store. Nothing is downloaded up front,
and values return dequantised as float32.
Requires Python 3.12 or later: pip install geotessera.
GeoTesseraZarr (the zarr interface), not the tile-download
GeoTessera class, unless the user explicitly needs offline NPY or
GeoTIFF tile files. NPY tiles are deprecated and will be removed.dclimate (the default) and
cambridge, whose embeddings cannot be interchanged. Check
gt.dataset.name when combining data from several sources.(min_lon, min_lat, max_lon, max_lat).probe to distinguish, and drop NaN rows before fitting
a model.iter_region rather than holding
a read_region mosaic in memory.sample_points call; a per-point loop is
an order of magnitude slower.geotessera coverage --bbox ...
maps it.from geotessera import GeoTesseraZarr
gt = GeoTesseraZarr() # default v1.1 dClimate Zarr store
gt.years # [2017, ..., 2025]
vec, status = gt.probe(lon, lat, year) # status: valid|water|nodata|outside
X = gt.sample_points(coords, year) # (N, 128), one bulk read per UTM zone
mosaic, transform, crs = gt.read_region(bbox, year)
patch, transform, crs = gt.read_patch(lon, lat, year, size_px=256)
for block, transform, crs in gt.iter_region(bbox, year, strip_rows=512):
... # row strips, next strip prefetched
read_region and iter_region read a lon/lat bounding box on the
native UTM grid of the zone holding its centre; a box spanning a zone
boundary is truncated to that zone. read_patch returns a fixed-size
square centred on a point, merging across UTM zones when the window
spans one. read_region_quantized returns (values, scales, transform, crs) at a quarter of the memory; dequantise rows on demand with
geotessera.store.TesseraAccessor.dequantise(values[rows].transpose(2, 0, 1), scales[rows]),
which turns water and no-data pixels into NaN.
gt.export_geotiffs(bbox, year, output_dir, bands=..., depth=...)
streams a region to one float32 GeoTIFF per UTM zone on the native
grid. The geotessera download command does the same from the shell.
from geotessera.registry import zarr_store_url
gt = GeoTesseraZarr(zarr_store_url("v2")) # "v1", "v1.1", "v2", or an explicit store URL
gt = GeoTesseraZarr(zarr_store_url("v1.1", "cambridge"))
gt.dataset.name # "1.1-cambridge"
zarr_store_url takes a version and optional variant; geotessera info
lists them. GeoTesseraZarr also opens Icechunk repositories (URLs
ending in .icechunk), presenting each zone as one utmNN group.
gt.dataset is None for a store that is not a published dataset.
v2 stores publish matryoshka prefixes of each embedding. Passing
depth=16 (or depth=4) to sample_points, read_region,
read_patch, or iter_region reads only the first N dimensions for
proportionally fewer bytes. gt.depths lists what a store offers.
The library never draws progress bars. Long reads log progress through
the standard logging module — geotessera.* loggers at INFO with
counts and rates; short reads stay silent. Scripts that stream regions
or sample many points should surface those lines:
import logging
logging.basicConfig(format="%(asctime)s %(message)s", datefmt="%H:%M:%S")
logging.getLogger("geotessera").setLevel(logging.INFO)
The progress= parameters on sample_points/read_region/
iter_region/read_patch are deprecated and ignored; do not pass
them, and do not add tqdm or other progress wrappers around reads.
HTTP retries with exponential backoff are built in; do not add a retry
layer. Pass cache_dir to cache reads from a Zarr store locally, the
default store included — store metadata persists across runs, chunk data
for the session. Icechunk repositories ignore it:
gt = GeoTesseraZarr(zarr_store_url("v2"), cache_dir="tessera-cache")
The cache is keyed per store under cache_dir; never share one
hand-rolled CacheStore directory between stores.
gt.open_zone(lon=0.15) returns an xarray Dataset for that UTM zone
with a .tessera accessor (sample_at, read_region) that works in
the zone's own eastings and northings and performs no projection.
sample_points at labelled coordinates; train a scikit-learn model
on the (N, 128) matrix after dropping NaN rows.iter_region over the target bounding box;
model.predict(block.reshape(-1, 128)) per strip.Worked examples: https://github.com/ucam-eo/geotessera-examples API reference: https://geotessera.readthedocs.io/en/latest/zarr_quickstart.html
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ucam-eo/geotessera --plugin geotesseraOther plugins' skills for the same job