How does a 100 × 100 window come out of a 60 MB band?
GeoStack · storage background · bytes → array
Abstract¶
Pictures first, maths folded away. Every cloud-native format answers the same question: given the pixels you want, which bytes do you fetch? COG, GeoParquet and Zarr each answer it with an index. kerchunk, VirtualiZarr and Icechunk separate that index from the files, so one set of bytes can be read as Zarr, combined with others and versioned.
The running example¶
The four read paths as operators, the kinds of object and the symbols
Each read path below is written as an operator: what you pass in, what the format already stores (the constants), what the reader works out on the way (the estimated quantities), and what comes back (the output). Each symbol in the equations takes the colour of its role. None of them has parameters to fit.
1 · COG window read
Read a window from a COG. The tile size gives the tiles the window touches, the offsets in the TIFF header give their byte ranges, and the reader fetches exactly those, decodes and crops.
| Role | Symbol | Name | Shape | Unit | Note |
|---|---|---|---|---|---|
| Input | url | file address | () | — | |
| pixel window | (4,) | px | |||
| Parameter | none | nothing to fit | |||
| Constant | tile size | () | px | from the TIFF header | |
| tiles per row | () | — | from the TIFF header | ||
| tile byte offsets | (tile,) | B | the TileOffsets tag; entry is | ||
| tile byte lengths | (tile,) | B | the TileByteCounts tag; entry is | ||
| Estimated | tile rows | (tile,) | — | eq. 1 | |
| tile columns | (tile,) | — | eq. 2 | ||
| tile index | (tile,) | — | eq. 3 | ||
| Output | window pixels | (row, col) | DN | eq. 4 |
2 · GeoParquet query
The same scenes, found by a table query instead of a file name. Row-group statistics rule out whole groups first, and the bbox and time columns then filter the rows that remain.
| Role | Symbol | Name | Shape | Unit | Note |
|---|---|---|---|---|---|
| Input | bounding box | (4,) | m | ||
| time range | (2,) | time | |||
| Parameter | none | nothing to fit | |||
| Constant | row-group bounding box | (group, 4) | m | from the row-group statistics | |
| row-group time range | (group, 2) | time | from the row-group statistics | ||
| row bounding box | (row, 4) | m | the bbox column | ||
| row time range | (row, 2) | time | the time column | ||
| Estimated | row-group filter | (group,) | bool | eq. 1 | |
| Output | row filter | (row,) | bool | eq. 2 |
3 · Zarr chunk read
The same tiles, addressed by a key instead of an offset. The chunk indices are those of step 1, with chunk shape , and each pair becomes a key in the store.
| Role | Symbol | Name | Shape | Unit | Note |
|---|---|---|---|---|---|
| Input | store | Zarr store | () | — | |
| pixel window | (4,) | px | |||
| Parameter | none | nothing to fit | |||
| Constant | chunk size | () | px | from zarr.json | |
| codecs | compression codecs | — | from zarr.json | ||
| Estimated | chunk keys | (chunk,) | key | eq. 2 | |
| Output | window pixels | (row, col) | DN | eq. 3 |
4 · Icechunk virtual read
The same keys, resolved to the original COG’s bytes. The keys are those of step 3; the snapshot’s manifest maps each one to a URL, an offset and a length, so the read fetches from the COG itself.
| Role | Symbol | Name | Shape | Unit | Note |
|---|---|---|---|---|---|
| Input | repo@ | repository snapshot | () | — | |
| pixel window | (4,) | px | |||
| Parameter | none | nothing to fit | |||
| Constant | snapshot manifest | (chunk,) | refs | ||
| Estimated | chunk keys | (chunk,) | key | eq. 1 | |
| chunk references | (chunk,) | B | eq. 2 | ||
| Output | window pixels | (row, col) | DN | eq. 3 |
The kinds of object on this page¶
| Kind | Dimensions | Example here | |
|---|---|---|---|
| field | (row, col) | the band B12, the window | |
| vector | (tile,) | tile offsets , lengths | |
| mask | (tile,), (row,) | which tiles, row groups, rows to read | |
| dataset | (row, column), (chunk,) | a catalog table, a chunk manifest |
indexes pixel rows and pixel columns, from 0; and index tile rows and tile columns; numbers tiles in file order; indexes Parquet row groups and table rows.
| Symbol | Role | Shape | Unit |
|---|---|---|---|
| in · the window, inclusive bounds | (4,) | px | |
| const · tile or chunk side | px | ||
| const · tiles per row of tiles | — | ||
| const · byte offsets and byte lengths of the tiles; entry is , | (tile,) | B | |
| est · tile rows and columns the window touches | index sets | — | |
| est · the Zarr key of chunk | string | key | |
| const · manifest of snapshot : key to reference | map (chunk,) | refs | |
| , | in · query box and time interval | , interval | m time |
| const · bounding box and time range of row group | (group, 4), (group, 2) | m time | |
| out · the pixels of the window | (row, col) | DN |
Part 1 · Three formats, three indexes¶
COG: a GeoTIFF you can read in pieces¶
Our band is one file of 60.3 MB. A plain GeoTIFF stored in strips, or with its header at the end, forces a reader to fetch most of it to find anything. A Cloud-Optimized GeoTIFF puts the header first, stores the image in square tiles, and adds downsampled overviews, so the header alone says exactly which bytes hold which pixels.
The band B12: tiles of
Zoom: the 4 tiles the site touches
tile 38tile 39tile 49tile 50
the site:
headeroverviewsfull-res tiles
The file, in byte order (60 MB). The header lists where each tile starts and how long it is. The reader fetches: the header, then 4 byte ranges 2 MB.
A COG answers “which bytes hold these pixels?” from its header alone. Our 100 × 100 site straddles a corner shared by four tiles, so four ranges are fetched.
Read the header, a few kilobytes at the start of the file.
Work out which tiles the window touches, by dividing pixel positions by the tile size.
Fetch only those tiles, one byte range each, and decode them.
# Shapes: C bands; window of H × W pixels; T tiles touched
# Units: [DN] = Sentinel-2 L2A digital number; [B] = bytes
import geoarray
import geocloud.cog
# today (geocloud)
source = geocloud.cog.CogSource.open(b12_url) # header only ≈ kB
# today (geoarray)
window = geoarray.PixelWindow( # → (4,) px
col_off=3050, row_off=2000, width=100, height=100
)
# k = i N_side + j for (i, j) ∈ 𝓘 × 𝓙; x_w = crop(decode(GET(url, [o_k, o_k + ℓ_k))))
# today (geocloud)
site = source.read_window(window) # → (1, 100, 100) [DN]The tile index in symbols, as an operator, with the byte count
Concept
A COG is a tile index in front of compressed tiles¶
The header (the TIFF IFD) records the tile side and, for every tile in file order, where it starts and how many bytes it takes. A window maps to tile indices by integer division, and each tile to one byte range:
Overviews repeat the same layout at half, quarter, … resolution, so a zoomed-out view reads small tiles from a small image.
Where
| Symbol | Meaning | Shape | Unit |
|---|---|---|---|
| tile row and tile column | — | ||
| tiles per row of tiles, | — | ||
| TileOffsets and TileByteCounts of tile | B |
Use · CogSource.read_window
Works at any level, one call per window. It works out the tiles the window touches from the header, fetches their byte ranges, and returns the pixels as a GeoArray with the window’s transform.
Nothing is trained. The tile size is the file’s choice, and it sets how many bytes a small window costs.
| Group | Name | Note | Shape | Unit |
|---|---|---|---|---|
| In | url | the COG, on object storage or over HTTP | () | — |
| window | a PixelWindow: row and column offset, height, width | (4,) | px | |
| Parameters \gvect{\theta} | none | a read has nothing to fit | — | |
| Constants · in the file header | , | TileWidth, and the tile grid it implies | (), () | px |
| TileOffsets, TileByteCounts | (tile,) | B | ||
| Estimated in each call | tiles touched | eq. 1–3 | (tile,) | — |
| Out | window | eq. 4; a GeoArray with the window’s transform | (band, row, col) | DN |
GeoParquet: a table you can read by column and by place¶
Before reading any pixel you need the six June scenes that cover the site. That is a table question: which rows have a footprint over and a time inside ? GeoParquet is Parquet with a standard geometry column, and it answers that question without reading the whole table.
The reader starts at the footer, keeps only row groups whose time range and bounding box can match, and fetches only the columns it asks for. Row-group sizes and dates are illustrative.
Sorting decides how much a query skips. geocatalog’s build_raster_catalog sorts rows by start_time, then by a Hilbert key of the geometry, by default, so rows close in time and space land in the same row groups.
# Shapes: R rows in the catalog; G row groups; S rows kept
# Units: bounds in the catalog CRS [m]; times naive UTC
import geocatalog
# today (geocatalog)
catalog = geocatalog.open_catalog("s3://bkt/s2_l2a.parquet") # footer only → R rows
# keep_g ⇔ b_g ∩ b_query ≠ ∅ ∧ 𝒯_g ∩ 𝒯_query ≠ ∅, then the same test per row
# today (geocatalog)
june = catalog.query(site_june) # R → S = 6 rowsRow-group skipping in symbols
Concept
Parquet stores a table by column and by row group¶
Rows are cut into row groups; inside a group each column is stored on its own, and the file footer keeps each column’s minimum and maximum per group. A reader fetches only the columns it needs, and skips any group whose statistics cannot match. GeoParquet adds the geometry column (WKB) and, in version 1.1, a bounding-box column whose statistics make spatial skipping work:
Where
| Symbol | Meaning | Shape | Unit |
|---|---|---|---|
| a row group, a few thousand to a million rows | — | ||
| smallest box holding every footprint in group | m | ||
| earliest start and latest end time in group | interval | time |
Zarr: an array split into keyed chunks¶
A COG is one file with an internal index. Zarr turns the index inside out: each chunk is its own object, its name is computed from its position, and a small JSON file describes the array. Nothing has to be read to find a chunk; the key says where it is.
Where a COG keeps an index of offsets, Zarr names each chunk by its position. The site window still needs the same four chunks.
Version 3 adds sharding: many chunks packed into one object with a small index at its end, so a store need not hold millions of tiny objects.
| Format | Unit of access | Where the index lives | Best for |
|---|---|---|---|
| COG | a tile, by byte range | the TIFF header, at the start of the file | one scene, one grid; any GIS reads it |
| GeoParquet | a column of a row group | the footer’s per-group statistics | tables: catalogs, points, polygons |
| Zarr | a chunk, by key | the key itself; shapes in zarr.json | N-dimensional cubes, many variables, appends |
# Shapes: H × W window; chunks of P × P
# Units: [DN]
import xarray as xr
# not pinned (xarray)
band = xr.open_zarr("s3://bkt/b12.zarr")["B12"] # zarr.json only
# κ_ij = B12/c/i/j for (i, j) ∈ 𝓘 × 𝓙
# not pinned (xarray)
site = band.isel(y=slice(2000, 2100), x=slice(3050, 3150)) # → (100, 100) [DN]
# not pinned (xarray)
pixels = site.values # reads 4 chunks [DN]Chunk keys in symbols
Concept
A Zarr array is metadata plus one object per chunk¶
zarr.json stores the array’s shape, chunk shape, data type and codec chain. Chunk of array B12 lives under a key built from its indices (Zarr v3’s default encoding), and groups nest arrays like folders:
Version 3 adds sharding: many chunks packed into one object, with an index at its end, so a store need not hold millions of tiny objects.
Where
| Symbol | Meaning | Shape | Unit |
|---|---|---|---|
| the object key of chunk | string | key | |
| chunk side, as for COG tiles | px |
COG and Zarr: what maps to what¶
A COG and a Zarr array store the same thing in the same way: a grid cut into compressed blocks, plus a small description. They differ in where the index lives (inside one file, or in the keys), in how many dimensions they allow, and in how georeferencing is written down.
COGZarr
header (IFD)metadatazarr.json
tiles, in byte ordersame byteschunks, one object per key
TileOffsets, TileByteCountsthe indexthe key (or a shard index)
DEFLATE / ZSTD (+ predictor)same, if the codec existscodec chain
nodata tagdirectfill_value
GeoKeys, geotransformneeds a conventionattributes: CF spatial_ref, GeoZarr
overviewsneeds a conventionmultiscales: one array per level
2-D image (+ bands)Zarr is more generalany dims: time, band, y, x
maps directly maps only through an agreed convention
The pixels and their compressed tiles map one-to-one. What a GIS needs to place them on the Earth does not, unless both sides agree on a convention.
Is it a one-to-one translation?¶
Pixels: yes, both ways. The values, data type, tile or chunk grid and nodata value carry over without loss.
Bytes: often, even without copying. A COG tile can be served as a Zarr chunk as-is, which is exactly what a virtual reference does, as long as a Zarr codec exists for the COG’s compression. virtual-tiff lists Deflate, Zlib, LZW, LZMA, LERC, PNG, WebP, JPEG XL and PackBits; old-style JPEG TIFFs are not supported yet, so check a file’s compression before relying on it.
Georeferencing: only through a convention. A COG stores its CRS and transform in GeoTIFF tags that every GIS reads. Zarr has no built-in georeferencing, so it lives in attributes: CF
grid_mappingwith aspatial_refvariable (whatgeoarray.to_xarraywrites), the GeoZarr conventions, or your own. A reader that does not know the convention sees an array with no place on Earth.Overviews and extra dimensions: not one-to-one. COG overviews become a multiscales group, one array per level, by convention. A Zarr cube with time or ensemble dimensions has no single-COG equivalent: it becomes one COG per time step and member.
Can Zarr read a COG directly?¶
Not by itself. zarr-python reads stores laid out as Zarr keys, and a COG is one file with its own index. Three bridges give a COG a Zarr face without converting it:
tifffile opens a TIFF or COG as a Zarr store (
imread(path, return_as="zarr"), zarr-python 3), mapping its tiles to chunks on the fly. It can also write that mapping out as fsspec reference JSON.virtual-tiff, a VirtualiZarr parser, turns the COG’s tiles into virtual Zarr v3 references you can commit to Icechunk: the route Part 2 follows.
kerchunk scans a TIFF into a reference file that fsspec serves as Zarr.
In the other direction, GDAL’s Zarr driver reads Zarr, so gdal_translate can write a Zarr array out as a COG.
Converting, with the stack¶
# Shapes: C bands; (y, x) = (5490, 5490); chunks and tiles of 512 × 512
# Units: [DN]
import geoarray
import geocloud.cog
import geoops.io
import xarray as xr
# --- COG → Zarr, as a copy ---
# today (geocloud)
scene = geocloud.cog.CogSource.open(b12_url).load() # → (1, 5490, 5490) [DN]
# today* (geoops)
write = geoops.io.WriteZarr(store="s3://bkt/b12.zarr", chunks={"y": 512, "x": 512})
write(scene)
# --- Zarr → COG ---
# not pinned (xarray)
band = xr.open_zarr("s3://bkt/b12.zarr")["B12"]
# today (geoarray)
grid = geoarray.from_xarray(band) # → (1, 5490, 5490) [DN]
# today (geocloud)
geocloud.cog.write_cog(grid, "s3://bkt/b12_copy.tif")The third route needs no copy at all: open the COG with VirtualiZarr’s TIFF parser, and its tiles become Zarr chunks by reference. That is Part 2.
Part 2 · Pointers instead of copies¶
Look at boxes 1 and 3 again. A COG tile and a Zarr chunk are the same thing: a compressed block of pixels at a known place. A Zarr reader does not care whether the bytes of B12/c/3/5 sit in their own object or inside a COG, as long as it can find them. That observation is all three tools below are built on.
Zarr asks for keyB12/c/3/5
referenceurl: …/B12.tifoffset: length:
A Zarr reader only needs the bytes. Where they live is the reference’s job.
the original COG, untouched: bytes
One reference per chunk turns existing files into a Zarr store without copying a byte.
The reference in symbols
Concept
A chunk reference is where the bytes are, not the bytes¶
For every Zarr key, store a reference to bytes that already exist, and give the reader the codec chain to decode them:
A set of references plus the array metadata is a virtual Zarr store: Zarr’s interface over the original files, with nothing copied.
Where
| Symbol | Meaning | Shape | Unit |
|---|---|---|---|
| the original file holding tile | string | — | |
| the tile’s offset and length in that file, from its header | B |
kerchunk: references written to a file¶
kerchunk scans an archival file (HDF5, NetCDF, GRIB, TIFF) and writes its references to a JSON or Parquet file. fsspec’s reference filesystem then serves the keys, so xarray opens the archive as if it were Zarr. kerchunk predates Zarr v3, so its keys use v2’s dotted form.
# a kerchunk reference file, abbreviated: Zarr v2 keys → [url, offset, length]
{
"version": 1,
"refs": {
"B12/.zarray": "{\"shape\": [5490, 5490], \"chunks\": [512, 512], ...}",
"B12/3.5": ["s3://bkt/T30SYJ_20260601_B12.tif", o_38, ℓ_38],
"B12/3.6": ["s3://bkt/T30SYJ_20260601_B12.tif", o_39, ℓ_39]
}
}VirtualiZarr: references as xarray objects¶
VirtualiZarr opens an archival file with a parser for its format and returns an xarray.Dataset whose variables are ManifestArrays: arrays of chunk references, not of values. You can concatenate, merge and rename them with ordinary xarray calls, then write the result to kerchunk JSON or Parquet, or into an Icechunk repo. It has parsers for HDF5/NetCDF4, NetCDF3, TIFF, GRIB, FITS, DMR++ and existing kerchunk and Zarr stores.
# Shapes: N_scene scenes; per scene one (y, x) band in N_side² chunks
# Units: references only; no pixel values are read
import virtualizarr
import xarray as xr
# not pinned (virtualizarr)
scene = virtualizarr.open_virtual_dataset( # → 121 refs
url=b12_url, parser=tiff_parser, registry=registry
)
# the six June scenes along a new time axis: only manifests are joined
# not pinned (virtualizarr)
june = xr.concat(scenes, dim="time") # → 726 refsIcechunk: a versioned store for real and virtual chunks¶
Icechunk is a storage engine for Zarr v3. A repository holds array metadata, chunks written into it, and references to chunks elsewhere, and every change goes through a transaction that ends in a commit. Each commit is a snapshot with an id; branches and tags name snapshots. Readers open a snapshot and see a consistent store, whatever writers are doing.
Three ways to hold references to the same six files
kerchunk
refs.json B12/3.5 → […] B12/3.6 → […] …
a file of references
no versions, no commits
writewriteVirtualiZarr
Dataset time: 6 y, x: 5490 ManifestArray
references in memory,
combined with xarray
Icechunk repo
tag: jun-2026main
real chunks
+ references to files
each commit a snapshot
Jun 1 .tifJun 6 .tifJun 11 .tifJun 16 .tifJun 21 .tifJun 26 .tif
the original COGs stay where they are; all three point into them
kerchunk is a format for references, VirtualiZarr builds references as xarray objects, and Icechunk stores them (and real chunks) in versioned commits.
| kerchunk | VirtualiZarr | Icechunk | |
|---|---|---|---|
| What it is | a reference file format and scanners | a library that builds references with xarray | a transactional Zarr v3 store |
| Holds real chunks | no | no (in-memory references) | yes, beside virtual ones |
| Versions | no | no | snapshots, branches, tags |
| Atomic updates | no | — | yes, one commit |
| Writes to | JSON, Parquet | kerchunk or Icechunk | object storage |
| Read with | fsspec reference filesystem | (writes for others to read) | any Zarr v3 reader on the session’s store |
A snapshot’s manifest in symbols
Concept
A snapshot is a manifest from keys to chunks¶
For snapshot , the manifest maps every chunk key either to a chunk the repo stores itself or to a reference into another file. A commit writes new manifests and metadata and then moves the branch to the new snapshot in one step, so readers see all of a change or none of it.
Where
| Symbol | Meaning | Shape | Unit |
|---|---|---|---|
| a snapshot id, immutable; branches and tags point at one | string | — | |
| the snapshot’s chunk manifest | map (chunk,) | refs |
How a raster is read in chunks through Icechunk¶
This is the step the Level 2 collections design takes for granted. Write the six June B12 COGs into a repo as virtual references, then read the site window through Zarr. Five steps, and only one of them is new.
1You slice the cubeisel(time=0, y=2000:2100, x=3050:3150)you
2Zarr turns the window into keysB12/c/3/5 · c/3/6 · c/4/5 · c/4/6zarr
3Icechunk looks each key up in snapshot ’s manifestkey → (url, offset, length)icechunk
4The object store makes 4 ranged GETs on the original COG 2 MB of compressed tilesobstore
5The codec decodes, the window is croppedarray (100, 100) of DNcodec
Every step except the third is what any Zarr read does. Icechunk’s only job on a read is to say, for snapshot σ, where each key’s bytes are.
# Shapes: N_scene = 6 scenes; per scene (y, x) = (5490, 5490) in 121 chunks; window 100 × 100
# Units: [DN]; references in bytes
import icechunk
import xarray as xr
# --- write once: references, not pixels ---
# config names s3://bkt/ as a virtual chunk container
# not pinned (icechunk)
repo = icechunk.Repository.create(storage, config)
# not pinned (icechunk)
session = repo.writable_session("main")
# not pinned (virtualizarr)
june.vz.to_icechunk(session.store) # → 726 refs refs
# not pinned (icechunk)
snapshot_id = session.commit("B12, June 2026, six scenes") # → σ
# --- read any time later: Zarr keys → manifest → ranged GETs ---
# not pinned (icechunk)
reader = repo.readonly_session(snapshot_id=snapshot_id)
# not pinned (xarray)
cube = xr.open_zarr(reader.store, consolidated=False)["B12"] # (time, y, x) lazy
# κ_ij → ref_σ(κ_ij) = (url_k, o_k, ℓ_k) → GET → decode
# not pinned (xarray)
site = cube.isel(time=0, y=slice(2000, 2100), x=slice(3050, 3150)) # lazy
# not pinned (xarray)
pixels = site.values # → (100, 100) [DN]The read path as an operator, with the byte count
Use · xr.open_zarr(session.store)
Works at any level, one call per window. Zarr turns the window into chunk keys, Icechunk resolves each key to a byte range in the original COG, and the read returns the same pixels as the COG read.
Zarr does eq. 1, Icechunk eq. 2, the object store and the codec eq. 3. Swappable: the snapshot , which pins exactly which files and bytes a read means.
| Group | Name | Note | Shape | Unit |
|---|---|---|---|---|
| In | repo@ | a read-only session on a branch, tag or snapshot id | () | — |
| window | an isel on the opened array | (4,) | px | |
| Parameters \gvect{\theta} | none | a read has nothing to fit | — | |
| Constants · in the snapshot | manifest | key → reference for every chunk; read once per session | (chunk,) | refs |
| array metadata | shape, chunk shape , the COG’s codecs, written by VirtualiZarr | — | — | |
| Estimated in each call | keys | eq. 1, by Zarr | (chunk,) | key |
| references | eq. 2, by Icechunk | (chunk,) | B | |
| Out | window | eq. 3; the same pixels as the COG read | (row, col) | DN |
Compatibility: who can read what¶
The formats in Part 1 are open standards with many readers. The tools in Part 2 are newer, and each needs its own client, so the choice is also a choice of who can open your data.
Ask the questions top to bottom and stop at the first yes. The answers are not exclusive: the Level 2 collections design keeps COGs where they are, catalogs them in GeoParquet, and reads them as Zarr through Icechunk.
Readers grouped by what they open. Two of them are already in your stack: geocloud.cog reads COGs with Development Seed’s async-geotiff (the [cog] extra), and geocatalog reads GeoParquet with DuckDB.
| Reader | From | Opens | Gives you | GDAL |
|---|---|---|---|---|
| GDAL, QGIS | OSGeo | COG, GeoParquet, Zarr (v3 in recent releases) | rasters and layers in any GIS | is GDAL |
| rasterio, rioxarray | community | COG, and anything GDAL reads | NumPy; xarray through engine="rasterio" | yes |
| odc-stac, stackstac | community | COGs listed in STAC items | a lazy xarray cube (time, band, y, x) | yes, through rasterio |
| async-geotiff | Development Seed | COG and GeoTIFF windows and overviews, async, over obstore | NumPy arrays with transform and CRS; no reprojection | no (Rust async-tiff) |
| lazycogs | Development Seed | many COGs found through STAC, cached as stac-geoparquet | a lazy (band, time, y, x) xarray DataArray on a target grid | no (async-geotiff, obstore) |
| tifffile | Christoph Gohlke | TIFF and COG as a Zarr store (return_as="zarr"); writes fsspec reference JSON | a Zarr array over the TIFF’s tiles | no |
| virtual-tiff | VirtualiZarr ecosystem | TIFF and COG, as a VirtualiZarr parser (VirtualTIFF) | virtual Zarr v3 references, committed to Icechunk | no |
| xarray + zarr-python | community | Zarr v2 and v3 stores | lazy Dataset / DataTree | no |
| kerchunk + fsspec | community | reference JSON or Parquet | a Zarr store over the original files | no |
| icechunk | Earthmover | Icechunk repositories (Python and Rust clients) | a Zarr v3 store for xarray at a snapshot | no |
| DuckDB, geopandas | community | GeoParquet | tables, SQL, GeoDataFrames | no |
| Browsers | various | COG (geotiff.js, tilers), Zarr (zarrita), GeoParquet (DuckDB-Wasm) | maps and tables in a web page | no |
Reader support moves fast; this table reflects the projects’ docs as of November 2026. Check the versions you pin.
So should you write Zarr, or keep TIFFs and COGs?¶
Keep COGs for anything delivered per scene or opened in a GIS, and for archives others publish. Do not convert a mission’s archive to Zarr just to read it: reference it.
Write Zarr when you produce a cube (many dates on one grid, model output, training data) or append over time. That is where Zarr’s N-D chunks pay off.
Reference, don’t copy, when you need Zarr’s interface over files you do not own. VirtualiZarr builds the references; Icechunk keeps them, versioned, next to any real chunks you add.
Plain TIFFs that are not COGs (striped, header at the end) should be converted to COGs before cloud use; a virtual reference to a striped TIFF reads whole strips.
Remember the audience of Part 2. An Icechunk repo is not a plain Zarr folder: a reader needs the Icechunk client. For data you hand to people outside your stack, publish COGs or plain Zarr as well.
The numbers, path by path¶
All three chunked paths fetch the same four tiles. The gap between the middle and bottom bars is the price of a tile size much larger than the window.
| Path | What is read | Requests | Bytes, before compression |
|---|---|---|---|
| Download the band | the whole file | 1 | 60 280 200 |
| COG window (box 1) | header, tiles 38, 39, 49, 50 | 1 + 4 | 2 097 152 |
| GeoParquet query (box 2) | footer, June row groups, three columns | a few | small, table-dependent |
| Zarr window (box 3) | zarr.json, four chunks | 1 + 4 | 2 097 152 |
| Icechunk virtual window (box 4) | manifest, four ranges of the COG | 1 + 4 | 2 097 152 |
| Pixels actually wanted | of uint16 | — | 20 000 |
Where this goes next¶
| Idea here | Becomes, in the design docs |
|---|---|
| GeoParquet row-group skipping | geocatalog’s working catalog today; the GeoParquet product-catalog adapter (product catalog, F) |
| A Zarr group per scene | scenes/<id>/ in the repo, read by load_scenes (Level 2 collections, C) |
| VirtualiZarr references | virtual ingest of archives, no copy (Level 2 collections, E) |
| Snapshots and commits | meta/ rows committed with their data, IcechunkGeoCatalog (Level 2 collections, A, B) |
| A table stored as columns | the meta/ group: catalog columns as aligned 1-D Zarr arrays (Level 2 collections, A) |
Sources and status
Sources: cogeo.org (COG); the GeoParquet 1.1 specification; the Zarr v3 specification; the kerchunk, async-geotiff, lazycogs, virtual-tiff, tifffile, VirtualiZarr and Icechunk docs; geotoolz at 640670c for CogSource, PixelWindow, open_catalog and build_raster_catalog’s default sort. Markers: today (pkg) ships at that commit; not pinned (pkg) is a third-party API not checked against an installed version. The 512-pixel tile size and the six-scene month are illustrative.