Measurement log
This file holds measurements, tested versions, dates and caveats. User docs link here. Each section covers one topic.
- Reader checks
- Layout choice
- Codec decode
- v0.3 against v0.2
- Viewer measurements
- Appending
- PNG frames
- NISAR and SWOT example data
- Sentinel-1 example data
- Embedding
- MapLibre layer
- JavaScript dependencies
- Comparison notes
- Live store and publishing
- Hosting observations
- Newcomer trial (2026-10-12)
- Newcomer baseline (2026-10-19)
- Newcomer measures after the fixes (2026-10-20)
- Readers that decode (2026-10-19)
- Stores written by other tools (2026-10-19)
- Every chunk written (2026-10-20)
- Sentinel-2 ingest performance
Reader checks
GDAL 3.13.3 read the two-level v0.3 fixture. It gave correct EPSG:32618, transforms and all six oracle values, without warnings. It did so both with and without _CRS. Selected raster slices did not expose automatic overviews.
CarbonPlan zarr-layer 0.10.0 with zarrita 0.7.5 rendered the fixture. It needed no CRS, bounds or spatial-dimension overrides. It returned 1107 at the checked pixel centre.
Separate-mask handling and framebuffer color calibration were not established.
xarray needs an explicit level group. xarray.open_zarr(store, group="0") opens a selected level with ordinary stored values. open_zarr on the store root may return an empty dataset.
GDAL 3.12.4 needs _CRS to assign the CRS. GDAL 3.13.3 assigns the CRS without that alias. In the sliced form of the first check, GDAL 3.13.3 exposes the tested pyramid as subdatasets and does not attach the levels as overviews. Subdataset enumeration does not show that GDAL applies a separate mask. The check of 2026-10-09 below opens the whole data array and finds the overviews.
On 2026-10-09 another check used GDAL 3.13.3 (ghcr.io/osgeo/gdal:ubuntu-small-3.13.3, digest sha256:64250faf833c06d4b21afce4c27190039ba7ab58d70f0eebc87cf77d929c0b40, arm64) on the fixture from scripts/spike_v03_fixture.py. GDAL 3.13 maps the zarr-conventions multiscales to overviews (GDAL pull request 13736, merged 2026-01-26, milestone 3.13.0).
gdalmdiminfo -array /0/datalists"overviews": ["/1/data"].gdalinfo 'ZARR:"<store>":/0/data'printsOverviews: 4x4on all 6 bands (3 dates by 2 bands)./0/maskhas overviews too.gdalinfo 'ZARR:"<store>":/0/data:1:1', a single slice, shows no overviews. The sliced view drops them.
zarr-layer returned the known value of the true-value fixture at the correct map location.
These checks cover reading only. Append, performance and cross-origin hosting were not checked for these readers.
Layout choice
The writer default is unsharded: one object per chunk. A chunk is one cell, one level and one timestep. The 117-month imagery store has about 5,900 objects. There is no shard index to read. A CDN miss costs one chunk. An append writes only new objects.
A sharded store (--shard, shard_time) has 93 objects for the same data. A reader needs one range read per timestep once the shard index is cached. A CDN miss costs time proportional to the shard size.
Every store written sharded stays valid.
Why the default changed: a cold open of the published sharded store spent 6.5 of 6.8 s on the nine shard-index reads. A CDN miss on a 2 KB range at the end of an 83 to 174 MB shard pulls the whole object. An append to a sharded store rewrites the trailing shard.
Cloudflare documents a 512 MB cacheable object limit on the Free, Pro and Business plans. Check the current figure. A shard is about n_time times the compressed size of one cell-timestep. The sharded Ucayali store has 117 timesteps and shards up to 174 MB.
A miss on a range read of an uncached object pulled the whole object from R2. The 1,876-byte shard-index read at the end of an 83 to 174 MB shard took 2 to 11 s. It took 0.36 s on a 41 MB shard. Nine of them were 6.5 of a 6.8 s cold open.
The largest object of the unsharded Ucayali store is 1.8 MB.
Cold open of the live unsharded store chronozarr-4 from the deployed viewer, cold edge cache, 2026-10-01: first whole frame 390 ms. Complete frame at the target level 622 ms. The sharded store the same morning took 6.8 s, and 6.5 s of that were the nine shard-index reads missing the edge cache.
Codec decode
Browser decode of one real Sentinel-2 chunk (4 x 512 x 512 uint16, 2 MB raw), median of 15, 2026-09-29:
| Codec | Bytes | Decode |
|---|---|---|
| zstd via zarrita (WASM) | 1,284,781 | 4.5 ms |
| gzip via native DecompressionStream | 1,387,409 | 6.7 ms |
| zstd via fzstd (pure JS) | 1,284,781 | 14.1 ms |
Four real Ucayali LOD 0 chunks (2,097,152 bytes each). zarrita 0.7.5 with vendored codec modules served locally, headless Chrome, median of 20, 2026-09-30. Bit-exact in every case:
| Codec | Bytes per chunk | Decode, steady state | Decode inside a worker |
|---|---|---|---|
| zstd level 5 (writer default) | 1,376,469 | 4.4 ms | 4.4 ms |
| blosc, zstd level 1, byte shuffle | 1,520,154 (+10.4%) | 3.5 ms | 3.3 ms |
Byte shuffle did not shrink the zstd stream on this data. The 10.4% size penalty alone keeps zstd level 5 as the default. Blosc is permitted.
v0.3 against v0.2
Five interleaved A/B rounds on unchanged readers. Localhost, headless Chrome 154, 1280 x 900, DPR 1, Ucayali LOD 0, 36 cells, 2026-10-03. Source: data/spike/js_v03_bench.json, hypothesis_1.unchanged (local, gitignored). Medians of the five round medians:
| Measurement | v0.2 | v0.3 |
|---|---|---|
| Cold complete frame | 87.4 ms | 91.1 ms |
| Warm stepping | 4.9 ms | 4.5 ms |
| Decode per 2 MiB chunk | 4.4 ms | 4.4 ms |
| Cold requests | 37 | 37 |
| Cold response-body bytes | 39,084,594 | 39,088,419 |
v0.3 equals v0.2 within noise. The earlier non-interleaved timings are superseded.
Some warm stepping and jumping samples are incomplete. Their medians do not establish a complete-frame gate pass. Zero sampled wire bytes do not establish zero traffic over the entire phase. No tuning was adopted.
Viewer measurements
Most tables in this section were measured on earlier format versions. They are kept as dated measurements, and each gives its date.
Cold open and warm switch
Viewer on the v0.1 Sahara store (128 months, 4 bands, 6 x 6 cells at LOD 0, 3.9 GB in 93 files). Localhost, HTTP cache bypassed, 2026-09-29:
| Measurement | Real-GPU Chromium, 36-cell 12-month stress store | Built-in browser pane, full 128-month Sahara store |
|---|---|---|
| Cold open to first complete frame | 257 ms, 109 requests, 43.8 MB | 475 ms median, 109 requests, 35.2 MB |
| Cold open without consolidated metadata | 256 ms | 556 to 1478 ms |
| Warm timestep switch, stepping (median / p95) | 3.5 / 15 ms | 6.3 / 19 ms |
| Warm switch wire bytes and requests, counted inside each switch, where no response can arrive (Speed gates in CI) | 0 / 0 | 0 / 0 |
| Product switch | about 1 ms | under 1 ms |
| Decode per 2 MB chunk | 4.6 ms | 10 ms under load (4.5 ms idle) |
Cold open of the live store (2026-10-12)
The deployed viewer at chronozarr.org/demo/ opened the public store ucayali_santa_maria_v03 (v0.3, unsharded, 117 timesteps) ten times with the CDN cache as it was, and ten times with a cold CDN cache. The cold series adds a unique ?cb= query to the store address, so every object is a miss. Headless Playwright Chromium, Metal, 1440 x 900 at device pixel ratio 2, a new browser for every run, the HTTP cache disabled. Apple M3 Max laptop, home connection. Script: bench/live/measure.mjs (npm run live:open in bench/).
| CDN cache | Root metadata read | First whole frame, after the metadata | First whole frame, from the start of the open | Frame at the requested level |
|---|---|---|---|---|
| As found (mostly HIT) | 113 ms | 343 ms (218 to 508) | 477 ms (319 to 726) | 744 ms (539 to 1046) |
| Cold (every object a MISS) | 223 ms | 404 ms (370 to 506) | 656 ms (548 to 758) | 981 ms (788 to 1109) |
Medians, with the range in brackets. Each open read 11 requests and 11.0 MB: the metadata and nine level-1 chunks. The laptop ran on battery, which capped animation frames at 30 Hz, so each paint can be up to 33 ms late. The load average was 8 to 10 on 16 cores. Page, script and codec-module load are not included.
Speed gates in CI (2026-10-20)
The workflow .github/workflows/speed-gates.yml runs on every pull request that changes js/. It builds the viewer of the pull request and of its base (js/support/build-viewer.mjs), writes a store of 36 cells (js/support/gate-bench/store.mjs: 6 x 6 chunks of 512 x 512 at level 0, 4 bands, 8 timesteps, zstd level 5, 1.39 to 1.41 MB per chunk, as the Ucayali chunks), and measures both builds with js/support/gate-bench/run.mjs: headless Chromium with SwiftShader at 1280 x 720, a new browser per run, one warm-up pair, then 5 pairs whose order alternates. Each run takes 5 cold opens at level 0 and the decode per chunk from chronozarr.bench(). That decode runs on the main thread (workers: 0), so a regression in the decode workers or their pool reaches the job only through the cold open: in the review of pull request #134, a decode twice as slow in the workers alone passed with 8 workers and failed with 4 (cold open +29 %). Then every chunk of level 0 is loaded, and the runner times 20 steps (120 ms apart) and 20 jumps from goToTime to the frame finished on the GPU, while the data server and the reader count requests and bytes. The job fails when the median over the pairs of head / base exceeds a metric's tolerance and the medians differ by more than its floor (20 ms for the cold open, 2 ms for a switch, 0.2 ms for a decode), or when a warm switch of the head makes any request. The step summary gives both builds' figures. A job takes 7 to 10 minutes.
The job measures warm switches itself because bench() does not establish them on 36 cells. It prefetches no more than the idle allowance (32 MiB) before its warm loops, so its first steps draw incomplete frames and fetch what they miss: 7 of 20 frames per run on this store. bench() used to count the requests and bytes of a warm loop inside each switch. A switch is synchronous, so no response could arrive in that window, and it reported 0 bytes; its request count, taken when a request starts, caught what a switch started at once (60 to 74 requests per run) but not what it scheduled. The figures below that give only bench()'s wire bytes on a warm switch (2026-10-18 and 2026-10-19) do not establish that gate.
bench() now counts each warm loop from before its first switch until 1 s after its last, as the runner counts its own, and then until no request is in flight (10 s at most; inflightAtEnd gives what was still on the way). js/e2e/viewer-bench.spec.js checks this on a store larger than the idle allowance, also with every chunk response 400 ms late, and checks that the loops count nothing on a store the prefetch holds. On this store the stepping loop (10 steps) then reports 228 to 255 requests and 320.7 to 329.1 MB, where the old count gave 55 to 68 requests and 0 bytes; the level-0 chunks the prefetch had not loaded are 228 and 320.7 MB. Its jumps and its switches from the decoded cache fetch nothing (one run of the old count gave 6 requests in its jumps). Both built viewers alternated, 3 runs each, SwiftShader, 2026-10-21, load 16 to 18. Each loop now ends with that wait, so the jumping loop and the loop from the decoded cache start at least 1 s later than before, with more of the earlier loop's chunks in memory: their medians and incomplete frames are not comparable with figures recorded before this change.
Noise of the comparison on GitHub's runners, with the same build as base and head: on a temporary branch, 6 jobs of 6 pairs, then 6 jobs of 5 pairs with 5 cold opens per run (the job as it is); then the job's 3 runs on pull requests #134 and #138, whose changes do not reach the code it times (15 pairs). The cold-open column counts only runs with 5 cold opens: with 3, one pair's cold-open ratio ranged from 0.70 to 1.59, hence 5.
| Head / base, same build | Cold open | Warm step | Warm jump | Decode |
|---|---|---|---|---|
| Median of a job's pairs, range over the jobs | 0.974 to 1.060 (9 jobs) | 0.996 to 1.008 (15) | 0.961 to 1.017 (15) | 0.995 to 1.013 (15) |
| One pair, range | 0.84 to 1.19 (45 pairs) | 0.96 to 1.04 (81) | 0.89 to 1.09 (81) | 0.91 to 1.06 (81) |
| Tolerance | +15 % | +10 % | +10 % | +5 % |
The verdict is the median of 5 pair ratios, so a metric fails only when at least 3 of the 5 pairs are above its tolerance. One slow pair does not fail it: the first run on #134 had a cold-open pair at 1.19, with the other four at 0.93 to 1.03. The cold open varies most from job to job: in one job the head's cold open was 4 to 6 % slower than the base's in all 5 pairs, with identical builds. The worst job medians are +6.0 % for the cold open, +1.7 % for a switch and +1.3 % for the decode, against tolerances of 15, 10 and 5 %. The decode is held tighter than its noise requires because its gate has little headroom (4.3 to 4.8 ms measured against 5 ms).
Regressions injected into the head, one job each:
| Injected | Flagged |
|---|---|
100 ms added to loadStore after the metadata, and a 1.5 ms busy wait after each chunk decode | cold open +16 %, decode +16 % |
A 10 ms busy wait in renderNow, and a request for the root zarr.json in every goToTime | warm step +30 %, warm jump +34 %; 205 requests reached the data server in the head's warm loops |
A regression exactly at the tolerance has a median ratio at the tolerance, so it fails about half the jobs; the cold open, with pairs spread 0.84 to 1.19, is seen reliably from about 20 %. The injected 100 ms is +14 % on the slowest runner type (cold open 700 ms) and +21 % on the fastest, so it would pass on the first.
The runner's own figures, base medians per job, depend on the CPU it gets (4 vCPUs, 16 GB):
| CPU | Jobs | Cold open | Warm step | Warm jump | Decode per chunk |
|---|---|---|---|---|---|
| AMD EPYC 9V45 | 4 | 451 to 504 ms | 30 to 33 ms | 29 to 32 ms | 5.5 to 5.9 ms |
| AMD EPYC 9V74 | 4 | 513 to 639 ms | 48 to 60 ms | 47 to 59 ms | 7.4 to 9.5 ms |
| AMD EPYC 7763 | 5 | 658 to 707 ms | 64 ms | 63 to 64 ms | 9.5 to 9.9 ms |
| Intel Xeon Platinum 8573C | 2 | 619 to 673 ms | 48 to 49 ms | 54 to 55 ms | 9.3 to 9.5 ms |
SwiftShader draws on the CPU, so a warm switch costs 30 to 64 ms there against 3 to 5 ms on a GPU. These are not the gates' figures; the job compares them with the base in the same job.
On a laptop that other work loads, the same comparison is noisier: on the M3 Max at load 6 to 15, SwiftShader steps took 3 ms or 13 ms in stretches, so one run's step median moved between 3 and 14 ms with the same build. Local before-and-after checks need a quiet machine.
Scrub latency
Perceived scrub latency is the time from the input event to the frame that shows the new timestep. 20 steps, same 36-cell 48-month store and browser before and after the decoder rewrite. The rewrite added worker-pool decode, time-window prefetch, no debounce and per-cell paint. 2026-09-30:
| Scenario | Steps shown, before | Steps shown, after | Lag median / p95, before | Lag median / p95, after | Frames over 33 ms, before / after |
|---|---|---|---|---|---|
| Overview, cold, arrow keys | 4 of 20 | 20 of 20 | 263 / 527 ms | 3.2 / 15.8 ms | 16 / 0 |
| Overview, cold, slider drag | 2 of 20 | 20 of 20 | 334 / 693 ms | 5.3 / 16.6 ms | 0 / 0 |
| Overview, after 5 s idle, keys | 6 of 20 | 20 of 20 | 243 / 543 ms | 4.6 / 5.2 ms | 15 / 0 |
| 9 cells at LOD 0, cold, keys | 10 of 20 | 20 of 20 | 90 / 521 ms | 5.6 / 27.8 ms | 4 / 0 |
| 9 cells at LOD 0, after idle, keys | 20 of 20 | 20 of 20 | 8.3 / 8.8 ms | 2.7 / 3.7 ms | 0 / 0 |
Playback
Movie playback, two loops. Holds are counted separately at the wrap. 2026-09-30:
| Store, view, state | Requested | Achieved | Holds at wrap / elsewhere |
|---|---|---|---|
| 36-cell local store, 9 cells, warm | 60 /s | 59.95 /s | 0 / 0 |
| 36-cell local store, 9 cells, cold | 60 /s | 56.4 /s | 0 / 9 |
| Ucayali over the internet, 4 cells, warm | 60 /s | 60.03 /s | 0 / 0 |
| Ucayali over the internet, 9 cells, cold | 60 /s | 6.0 /s | 0 / 155 |
A 9-cell overview of the 117-month store is about 11.7 MB per timestep. A cold loop is bound by the link (about 55 MB/s here).
The cache held roughly half of the 117 timesteps at that size. That count dates from 2026-09-30, before the cache budgets changed on 2026-10-01 (commit 33c4444). Since then the cap is 1.5 GiB for the decoded and compressed tiers together. A machine that reports less than 8 GB of memory gets 768 MiB. Idle prefetch stops after 64 MiB and expands only during playback. A 4-cell view fits entirely and plays at the display rate.
Coarse-first loading
Coarse-first loading and the bandwidth-aware movie level. Live Ucayali store, link throttled to 50 Mbit/s and 40 ms, 2026-09-30, medians:
| Interaction | Before | After, first usable frame | After, full resolution |
|---|---|---|---|
| Open | 2.03 s | 421 ms | 1.97 s |
| Big time jump | 6.00 s | 927 ms | 3.97 s |
| Zoom in | 4.86 s | under 2 ms (cached coarser cells) | 2.10 s |
| Playback at 10 steps/s requested | 3.4 /s | 5.3 /s, level dropped by the link rule |
On an unthrottled link, a frame expected within a second loads directly. Fast connections pay nothing for the staging.
The 150 ms coarse-frame target holds on fast links (74 ms after metadata). It does not hold at 50 Mbit/s. Three sequential requests per stage set a floor near 230 ms there. shard_bytes hints remove one of the three.
Whole frames and buffered playback
Live Ucayali store, cold, device pixel ratio 2, 2026-10-01.
A frame is one level and one timestep for every visible cell. The viewer shows a frame complete or not at all. It uses the target level when that level is in memory. Otherwise it uses the finest coarser level that is in memory. Otherwise it keeps the frame already on screen.
The viewer keeps the whole loop in memory at the coarsest useful level (level 3 here, about 80 MB). A complete frame then exists for every timestep. Playback buffers 2 s of frames before it starts. It pauses on an indicator when the buffer runs dry, instead of holding frame by frame.
"Partial" counts frames with some cells at another level or timestep. "Whole" is the first frame that covers the view at any level.
| Link | Tree | Open: whole / full | Scrub 20 steps: partial frames | Play 10 /s: achieved | Initial buffer | Buffering pauses | Holds |
|---|---|---|---|---|---|---|---|
| Natural | Before | 505 ms / 1.41 s | 8 of 9 | 5.7 /s | 98 (19.0 s) | ||
| Natural | After | 605 ms / 2.06 s | 0 of 37 | 10.0 /s | 1.9 s | 0 | 0 |
| 50 Mbit/s, 40 ms | Before | 545 ms / 2.25 s | 8 of 9 | 4.1 /s | 110 (35.3 s) | ||
| 50 Mbit/s, 40 ms | After | 499 ms / 2.58 s | 0 of 36 | 7.8 /s | 7.3 s | 2 (6.4 s) | 0 |
The cost is the full-resolution frame of a scrub step on a slow link. It lands later: median 3.7 to 4.5 s against 2.9 to 3.2 s at 50 Mbit/s. The viewer fetches a whole coarse frame of the right timestep first.
Known limits
- The coarse loop pulls the whole time axis at its level after the first frame. That is tens of MB for a store a few cells wide.
- Cold open of very small stores costs 30 to 40 ms for worker startup.
Appending
Appending one month to a 12-month Ucayali store (4 bands, 36 cells at level 0). A re-encode of the same store took 32 s and wrote 6.3 GB. 2026-10-01.
| Layout | Append wall time | Bytes written per month | Rewritten |
|---|---|---|---|
| Unsharded (default) | 0.6 s | 55 MB | metadata only |
| Yearly time shards | 0.6 s | 55 to 660 MB, 4.4 GB over a 12-month cycle | the trailing shard, whole |
Whole-axis shard (--shard) | 0.6 s | 55 MB, then 111 MB and growing | a second shard that grows every month |
These are v0.2 measurements. They were not repeated for v0.3.
Cost model for a sharded store:
- A sharded store rewrites the shard that receives each new timestep, whole.
- The average rewrite is
(shard_time + 1) / 2chunks per cell per append. - Over a 12-month cycle at
shard_time12, the writes are 4389 MB against 686 MB. - A whole-axis shard (one shard for the initial axis) opens a second shard as long as the first. It rewrites that shard on every append, up to 117 chunks per cell for a 117-month store.
- The first batch of a sharded store may be a single timestep at any
--shard-time.
An unsharded append uploads only the objects it wrote. The measurement had 63 objects.
An append to a live store has not been exercised yet.
Mixed states during an update
2026-10-09, zarr 3.1.6, a synthetic 50 x 70 pixel store appended from 4 to 6 timesteps, copied to local directories (no host). Each directory mixes objects of the two states, as a reader could see them between two puts of chronozarr publish --update.
| Mix | Result |
|---|---|
Root and array metadata at 4 timesteps, 0/time/c/0 at 6 | zarr.open_group(...)["0/time"][:] raises ValueError: cannot reshape array of size 6 into shape (4,), with and without consolidated metadata |
| Same mix | chronozarr.open_store(...).to_xarray(lod=0) reads 4 timesteps: it takes times from the root |
Level 0 zarr.json files at 6 timesteps, root at 4 | With consolidated metadata, 0/data has shape (4, ...). Without it, 0/data has shape (6, ...) next to 4 root times, and reading 0/time raises ValueError |
The update tests in tests/test_publish_update.py run against a fake bucket. The update has not run against AWS S3 or R2.
Advice that follows from the numbers:
- Choose a finite
--shard-time(12 for monthly data) only when object count matters more than the rewrite cost. - Choose the whole-axis
--shard-timefor archives that are not appended to.
PNG frames
Example run
examples/png_frames/ was run on the Ucayali mosaics when it was added, on 2026-10-01 (commit a2b557d). The machine was an M3 Max laptop with other work running. The writer was v0.2, and the store was png-1.
The 36 frames cover 2019-01 to 2021-12. Each is a 1024 x 1024 pixel window at row 768, column 1280 of the 2765 x 2759 mosaic. The stretch maps DN 185 to 1758 to 0 to 255. The masked share of a frame runs from 0 to 76.8 %. Six of the 36 frames are over 3 % masked.
| Quantity | Value |
|---|---|
| Frames on disk | 74.7 MB for 36 PNGs, with GDAL's default PNG compression |
| One PNG | 2.08 MB, against 4.19 MB of raw RGBA |
| Raw in the store | 113.2 MB of bands and 37.7 MB of mask |
| Store | 112.9 MB in 35 files |
| Level 0 | 89.6 MB, with its masks |
| Level 1 | 23.2 MB, with its masks |
| Masks | 0.23 MB |
convert | read 0.5 s, encode 1.0 s, 1.5 s in all |
| Read of one 1024 x 1024 frame | about 0.03 s |
The store is 1.5 times the size of the PNGs. Level 1 is a quarter of level 0. PNG row filters compress rendered imagery better than zstd on the raw bytes: level 0 alone is 1.2 times the PNGs.
The 35 files are a sharded layout. The writer default has been unsharded since 2026-10-01, so a rerun writes more objects.
Checks on the example
chronozarr validateprinted "conforms to chronozarr 0.2.0".chronozarr doctoron the local path gave 3 ok, 0 info, 0 warnings and 0 failures.check_store.pyfound, for all 36 frames, that the red, green, blue and mask of the store equal the red, green, blue and alpha != 0 of the PNG, bit for bit.- The same frames without world files, converted with
--crs EPSG:32718 --bounds 498450,9151960,508690,9162200, gave a store identical topng-1in data, mask and transform. So did the frames with an.aux.xmleach and no--crs. - In the headless viewer with software WebGL, True color was the active product and the only color product enabled. False color, NDVI, NDWI and Water were disabled.
- A masked pixel was drawn as the background color (9, 12, 18). The valid pixel six pixels to its right was drawn as the stored color.
- A click read the stored
red,greenandbluevalues (200, 238, 184 at pixel 154, 43 of 2019-10), which is what the PNG holds there. Playback buffered, stepped through six timesteps and stopped. There were no console errors. - The screenshots were
data/reports/viewer_ucayali_png_truecolor.png(2019-10, 38 % masked) anddata/reports/viewer_ucayali_png_edge.png(the masked edge at 8x with the inspector open).
Sidecar and conversion checks
On 2026-10-09 three synthetic frames of 48 x 64 pixels in EPSG:32718 with 10 m pixels were converted with the commands of the guide. The three setups were a world file with --crs, an .aux.xml with no options, and no sidecar with --crs and --bounds. Each store passed chronozarr validate, which printed "conforms to chronozarr 0.3.0".
Other results from 2026-10-09, with GDAL 3.10.3 through rasterio 1.4.4:
- A frame with a world file and an
.aux.xmlread its transform from the world file and its CRS from the.aux.xml. - GDAL wrote the world file of a PNG with the extension
.wld. It held 498455 and 9162195 for a frame with its upper-left corner at 498450, 9162200 and 10 m pixels. That is the center of the upper-left pixel. - A palette PNG gave the error text shown in the guide.
- A gray PNG became a store with one band named
1. An RGBA PNG became three bands namedred,greenandblue, plus a mask. - Frames of different sizes with
--boundsfailed and named both frames.
World files and .aux.xml files next to http(s) PNGs were checked against a local range server, not a CDN. The date is not recorded.
NISAR and SWOT example data
On 2026-10-09 the source files of examples/swot_raster and examples/swot_intensity were matched to public granules. The CMR queries read metadata only. No Earthdata login was used and no granule was downloaded. The NISAR example reads its granules from the archive directly; its record follows.
NISAR time series (2026-10-14)
examples/nisar/ingest.py built colorado_yuma/nisar-gcov-v1 on 2026-10-14 from the ASF DAAC with an Earthdata login; the manifest is examples/nisar/colorado_yuma.scenes.json.
- asf_search (14.0.3) over the box -114.82 32.50 -114.42 32.90 returned 62 standard-production GCOV scenes; track 5 ascending frame 18 holds 28
NISAR_L2_GCOV_PROVISIONAL_V1dates from 2025-10-29 to 2026-10-12, 12 days apart with one gap (2026-08-01), all product version 1.0.11, release P05023. One date (2026-09-06) exists as product counters 001 and 002; 002 was taken. Most other tracks sampled start on 2026-06-17 with 8 or 9 dates. - The granules are 34488 by 33912 px on a 10 m EPSG:32612 grid; HHHH and HVHV are float32 in 512 by 512 gzip chunks, mask uint8. The window of the box is 3904 by 4566 px.
- Reading HHHH, HVHV and mask of the window from one granule by HTTP range requests (fsspec
blockcache, 16 MB blocks, h5py) took 55 to 73 s per granule with six granules read at once; 28 granules in about 6 minutes. fsspec'sbackgroundcache hung one granule per run for minutes at no CPU, on two runs; the synchronous cache did not. - Two dates cover part of the box: 2025-10-29 is a partial frame (48.1 % valid) and 2025-11-22 has unfocused samples over the west (50.9 %). The other 26 are 100 % valid.
- Encode: 28 timesteps, 5 levels, 1,956,965,558 bytes in 5,558 objects, 13 s after the reads. A second run from scratch reproduced every object byte for byte.
chronozarr doctoron the local store: 6 ok, 0 failures. - The local viewer opened the store at once, showed HH and HV with the automatic 2nd to 98th percentile stretch (HH -22.0 to -5.8 dB, HV -24.9 to -13.0 dB on the first date) and the pixel chart over all 28 dates.
scripts/r2_sync.pyuploaded the 5,558 objects in 58 s (96 objects/s). The bucket then held 11,486 objects, 8.52 GB.- The published store is
nisar-gcov-v2, the same build with--start 2025-12-01: the two half-covered dates left out, 26 timesteps, 1,885,027,649 bytes in 5,308 objects,doctor6 ok, every date at least 99.99 % valid.nisar-gcov-v1(28 dates) was uploaded first, checked live as below, and deleted from the bucket the same day, because a re-encode changes every chunk key and the v1 chunks had already passed through the edge with immutable headers. - Live, through a pinned Cloudflare edge address (this network's DNS filter blocks the host): root
zarr.json200 withaccess-control-allow-origin: *andmax-age=300, a level-0 data chunk answered a 1 KB range with 206 andmax-age=31536000, immutable, a mask chunk 200, the time coordinatemax-age=300. Playwright (chromium) openedchronozarr.org/demo/?store=...on the store in 2.2 s with no console error and no failed request, and switched the band to HV.
SWOT raster example
The two NetCDF files in the author's directory have the MD5 checksums that CMR lists for SWOT_L2_HR_Raster_100m_D (dd574a747bd9e09d97a4e4f5e70d289e for 2025-11-14 and ba558cc86cd6c7622ccb2e50f4938854 for 2026-07-12). This query returns both granules:
curl -sG https://cmr.earthdata.nasa.gov/search/granules.csv \
-d short_name=SWOT_L2_HR_Raster_100m_D \
-d 'readable_granule_name[]=*UTM18S_N_x_x_x_041_369_109F_20251114T234531*' \
-d 'readable_granule_name[]=*UTM18S_N_x_x_x_053_076_046F_20260712T211127*' \
-d 'options[readable_granule_name][pattern]=true'- The default store is
data/stores/swot_roanoke/local-20261002. WSE is in metres above the geoid of the source product, with its delivered corrections. - The build intersects the aligned EPSG:32618 grids. It searches the overlap at a stride of 64 pixels for the 512 x 512 window with the most shared valid pixels. It stages GeoTIFF crops with no warp and no interpolation.
- Valid pixels fall from 93,717 to 26,049 on 2025-11-14 and from 65,672 to 30,589 on 2026-07-12 with
--quality good. With--quality usablethey fall to 76,521 and 59,971. The build never excludes a negative value. - The build checks level-0 float bit patterns and masks, xarray values, and the values, masks, units and grid of a COG export. Both xarray interfaces keep the units in
band_unitsand set the variable units tom. - The build writes source paths, SHA-256 hashes, windows and counts to
data/reports/swot-roanoke-20261002.json, with-goodand-usableversions. All three stores pass these checks and the browser check. - The browser check compares chunk and mask hashes with Python. It checks negative readouts and units on both dates. It compares the MapLibre
getValueAtwith a source pixel and savesdata/reports/swot-roanoke-viewer.png. - The MapLibre demo accepts
p=bandfor this store, and the leafmap helper usesproduct="band". - The player reads the local store through a range and CORS server, so the browser may ask for local-network permission. The notebooks turn off the floating sidebar of leafmap, as the leafmap example explains.
SWOT intensity example
The source tags of the two 5 m GeoTIFFs name SWOT_L1B_HR_SLC_025_244_102R_20241211T161411_20241211T161422_PGD0_01.nc and SWOT_L1B_HR_SLC_032_244_102R_20250506T172942_20250506T172953_PGD0_01.nc. The local SLC files of these names have the MD5 checksums that CMR lists for SWOT_L1B_HR_SLC_D: 0b79d78429ba02b47a9590a219fa21da for 2024-12-11 and 67a1551ff4d035c45558fa152a7306f8 for 2025-05-06. Each file is 2.0 GB.
That collection also holds SWOT_L1B_HR_SLC_032_244_102R_20250506T172942_20250506T172953_PID0_01.nc, a different file for the same pass. Only the PGD0 name matches the tag. The 60 m and 5 m GeoTIFFs are outputs of swot-slc-geocode, a private project, and no archive holds them.
Sentinel-1 example data
Ucayali monthly store (2026-10-15)
examples/sentinel1_pc/ingest.py built ucayali_santa_maria/s1-rtc-monthly-v1 on 2026-10-15 from Planetary Computer's sentinel-1-rtc collection, with no login; the manifest is examples/sentinel1_pc/ucayali_santa_maria.scenes.json.
- The STAC search over the box -75.13 -7.76 -74.88 -7.51 from 2017-01-01 to 2026-09-30 returned 834 IW VV+VH slices. Relative orbit 171 descending holds 309 acquisitions (322 slices; 13 passes cross the box in two slices) from 2017-01-16 to 2026-09-21; orbit 120 ascending holds 274 (83 in two slices). Each orbit has seven months without an acquisition; 2022-01 and 2022-02, after Sentinel-1B failed, are empty on both.
- The assets are float32 GeoTIFFs (
.tiff) of about 1.8 GB per polarization: deflate, 512 by 512 tiles, nodata -32768, 10 m in the scene's UTM zone. Over the box every file is in EPSG:32718 and offset from the Sentinel-2 store's grid by whole 10 m pixels, so the 20 m store grid is that store's level 1 (origin 485650, 9169880; 1380 by 1383 px). - Six S1A items of late 2024 (2024-10-24 to 2024-12-23 on orbit 171, and the same months on orbit 120) carry a
proj:transformwith a fractional origin and a positive y step, and aproj:shapethat differs from the file; their files are north-up on whole 10 m pixels. The ingest reads the window from each file's header. - The run took 3 h 38 min with eight acquisitions read at once. Read failures came in four bursts about 44 minutes apart (13:21, 14:06, 14:50 and 15:34 EDT), consistent with the signed URLs expiring during reads; every one read on its retry with a fresh signature. The cache of 20 m float32 power is 5.4 GB for 309 acquisitions.
- Encode: 110 timesteps, 3 levels, 801,425,701 bytes in 3,114 objects. Speckled dB at 0.01 dB compresses by about 15 %. Every month is 100 % valid; months hold 1 to 7 acquisitions, most 2 or 3. The monthly median is -6.8 to -6.0 dB in VV and -13.0 to -12.2 dB in VH.
chronozarr doctoron the local store: 4 ok, 0 failures. - The local viewer opened the store with the dual-pol composite. The first month's 2nd to 98th percentile ranges are VV -21.4 to -2.2 dB, VH -24.9 to -8.6 dB and VV - VH 1.2 to 10.6 dB. About 10 % of the box is water (VH below -20 dB), so the forest median sits at 0.77 of the VV and VH ranges and the land shows pale; the river and its changes from 2017 to 2026 read clearly.
scripts/r2_sync.pyuploaded the 3,114 objects in 473 s (7 objects/s on this link); a second run found all 3,114 in the bucket at the same size. The bucket held 11,236 objects, 8.450 GB, before the upload and 14,350 objects, 9.251 GB, after.- Live: root
zarr.json200 withaccess-control-allow-origin: *andmax-age=300, a level-0 data chunk answered a 1 KB range with 206 andmax-age=31536000, immutable, a mask chunk 200, the time coordinatemax-age=300.chronozarr doctoron the URL: 12 ok, 3 info, 0 warnings, the edge cache hit on the second request. The deployed demo, which has no dual-pol product yet, opened the store as single-band VV (-21.18 to -2.12 dB) with no console error; the branch's viewer read it from localhost across origins with the composite as the default product, 174 requests and no console error.
Embedding
Checked on 2026-10-09 against https://chronozarr.org:
GET /demo/returned 200 with noX-Frame-Optionsheader and noContent-Security-Policyheader.GET /demo?embed=1&store=xreturned 301 to/demo/?embed=1&store=x.GET /examples/embed.htmlreturned 307 to/examples/embed, which returned 200.
Also on 2026-10-09, a host page on http://127.0.0.1:8791 drove the viewer on http://127.0.0.1:8765 with the live store ucayali_santa_maria_v03:
- A
setwithrange: [0, 0.3]changedstate.range, andrange: nullreset it tonull. - A
setwithrange: [2, 1]returnedbad_set. - A message with
v: 2and a message with the typechronozarr:nopereturnedbad_message. - A
setwitht: 5000returnedbad_set.
The sample messages in the guide are values from that run. The live store has 117 timesteps, and they are not consecutive months: the second timestep is 2016-04-01. The first click was at pixel (1155, 1394), at level 0.
The browser test js/e2e/viewer-embed.spec.js covers the 320 px layout. Sandbox settings other than allow-scripts allow-same-origin are untested.
MapLibre layer
Placement checks
The layer and js/maplibre/verify/ were added on 2026-09-30 (commit bdc5938). The results below are for the Ucayali store in Chromium on an M-series Mac at 1280 x 800, with bearing 0 unless noted. They carry no date.
| Check | Result |
|---|---|
| Footprint outline at zoom 9.5 (level 3), 11 (level 2), 12.5 (level 0) and 15.5 (level 0), and at bearing 30 with pitch 45, and at bearing -50 with pitch 40 | 0 to 8 pixels per view were drawn outside the pyproj outline, and none was more than 0.001 px beyond it |
| Unlit pixels within 8 px inside the outline, about 400 sampled evenly per view | every one was a nodata gap at level 0 |
| Interior texel boundaries, levels 0 to 3, at about 4 px per texel | 60 to 84 boundaries per level, wherever neighbouring texels differ |
| Offset of those boundaries from pyproj | all within 0.496 px, where 0.5 px is the limit of pixel-center sampling, with a mean offset below 0.03 px and no stray boundaries |
Colors against js/demo/viewer.js, same store, timestep and texel | 20 of 20 texel and product pairs identical in 8 bits (NDVI, NDWI, water, true color and false color) |
Error bounds
js/test/maplibre-mesh.test.js asserts two bounds. A mesh of 8 x 8 quads over a 512 px cell of a 10 m UTM store stays within 0.01 px at zoom 22, from interpolation plus float32 rounding. The error falls as the divisions grow. Cells that share an edge share their edge vertices to 1e-11 of the world, so the raster has no seams.
Loading order and prefetch
These numbers were recorded with the layer on 2026-09-30 (commit bdc5938). They were not repeated after 2026-10-01 (commit 33c4444), when the reader began to cap idle prefetch at 64 MiB per idle episode. The 260 MB figure below predates that cap. The first view fetches the coarsest level first. On a 3 MB/s link with 120 ms latency, for 4 cells at level 0 of the Ucayali store (12 MB), the first pixels appeared after 2.5 s instead of 5.5 s. The full-detail view was ready after 7.6 s instead of 5.8 s. On a fast link neither differed.
With prefetch: true the demo moved 260 MB in 40 s for a 4-cell view of the Ucayali store.
JavaScript dependencies
MapLibre GL JS
The MapLibre layer was tested with MapLibre GL JS 6.10.0 only. The npm registry lists 6.10.0 as published on 2026-09-15. js/maplibre/index.html loads that version from cdn.jsdelivr.net. On 2026-10-09 the latest release was 6.13.0, which was not tested. The layer needs MapLibre 5 or later, which passes defaultProjectionData.mainMatrix.
CDN headers
On 2026-10-09 jsDelivr and unpkg both returned access-control-allow-origin: * for chronozarr@0.3.1/chronozarr/decoder.js.
Vendored packages
The headers of the files in js/vendor/ record these versions: zarrita 0.7.5, @zarrita/storage 0.2.0, numcodecs 0.3.2, gifenc 1.0.3, proj4 2.22.0 and wkt-parser 1.5.6. Each header also holds the SHA-256 of the published file, except the gifenc header, which holds its license text, and the proj4 header, which holds a SHA-256 over the source files of the bundle.
proj4 for stores without a built-in projection (2026-10-19)
js/vendor/proj4/proj4.js is proj4 2.22.0 and wkt-parser 1.5.6 bundled by esbuild 0.28.2 with the aea, laea, lcc, sinu, stere, tmerc, merc and longlat projections. It is 73,096 bytes minified, 24,820 gzipped and 21,454 with brotli. proj4's own dist/proj4.js is 129,733 bytes and 42,267 gzipped. The npm tarball grew from 687,242 to 716,021 bytes. The layer and the embed bridge load it with import() only for a store whose CRS is not UTM, EPSG:3857 or EPSG:4326.
Accuracy against pyproj 3.8.0 (PROJ 9.8.1), 7 points each: Daymet LCC and the MODIS sinusoidal grid (from their proj strings) and EPSG:3413, each read from its WKT2, and the Daymet one also from its PROJJSON. The forward transform differed by at most 4.3 micrometres, which is the rounding of the reference values. The inverse differed by less than 0.04 mm.
Browser check, headless Chromium under Playwright 1.63.0, local server RangeHTTPServer. Two stores of 700 x 600 pixels, 4 bands, 3 timesteps and 3 levels, in the Daymet LCC and the MODIS sinusoidal grid, were written by the Python package at 90c73c5. That version refuses a CRS with no EPSG code, so each store was encoded as EPSG:32631 over x and y in the target projection's metres, and the attributes were rewritten the way the 0.4.0 writer writes them: proj:code became proj:wkt2, the crs mirrors and _CRS url went, and spec_version became 0.4.0. A third store in EPSG:32631 was the control.
layer.getValueAtat 3 pixel centres per store returned the same cell and the same four stored values as zarr-python 3.4.0 (zarr.open_group(path)["0/data"][t, :, row, col]), and the longitude and latitude it reported for the pixel centre differed from pyproj by at most 1.4e-12 degrees.layer.boundsdiffered from the pyproj outline of the grid by at most 1.5e-12 degrees. On a screenshot over the MapLibre demo tiles the LCC store lies on the US Atlantic coast, and the edges of the sinusoidal store at 50 and 47.5 degrees north straddle the border drawn along the 49th parallel.- Network: the two non-EPSG stores each fetched
vendor/proj4/proj4.jsonce (73,396 bytes transferred without compression, 3.5 to 4.3 ms on loopback). The EPSG:32631 store fetched nothing fromvendor/proj4/. The viewer (demo/index.html) opened all three, drew the native grid and fetched no proj4. Withembed=1it fetches proj4 for a store without a built-in projection, to report longitude and latitude. createProjectionfor the Daymet WKT2 took 4.6 to 5.3 ms the first time in a page (fetch from loopback, evaluation, WKT parse) and 0.3 to 0.4 ms the second time. ForEPSG:32631it took 0.1 to 0.2 ms.
Comparison notes
The statements about other tools in chronozarr compared with other formats were first read from their documentation and source on 2026-09-30. Two were checked again on 2026-10-09: the mapbox-gl-js repository has the directory src/data/mrt, and the README of zarr-layer stated arbitrary CRS support through proj4 and listed the WGS84 UTM zones.
On 2026-10-19 the page was checked against each tool's repository and rewritten. This was item 6 of the recommendation in the GeoZarr review. What was read, from the repository named, at the version given:
| Tool | Version, date | What the page now states, and where it was read |
|---|---|---|
| zarr-layer | 0.11.0, 2026-10-02 (the latest GitHub release) | Zarr v2 and v3; multiscales, proj and spatial read with no configuration, legacy ndpyramid pyramids too; selectors on a time dimension and queryData over several values (README); custom fragment shaders with an NDVI example (README); 8 and 16 bit integers in integer textures when a custom shader reads the bands, everything else float32, 32-bit integers kept as float because the fill comparison is exact only to 2^24 (src/band-format.ts); decoded-chunk cache bounded by count and bytes, 2 MiB times 128 regions per store (src/decoded-chunk-cache.ts, src/region-cache.ts); GPU mesh reprojection of a native CRS (README); scale and offset only from the array attributes scale_factor and add_offset, nodata from the array fill_value (src/zarr-store.ts); store option for an Icechunk store (README). Nothing in the source reads a chronozarr block or a mask array. |
| topozarr | 0.2.0, 2026-10-13 | Coarsens by 2 per level by default and writes multiscales, proj and spatial; no reprojection, "Reproject first, then call create_pyramid" (docs/tips.md); CarbonPlan's writer for zarr-layer (README). |
| ndpyramid | 0.4.0, 2024-11-22 (the latest release) | Written for @carbonplan/maps, which needs Web Mercator (topozarr docs/tips.md). The zarr-conventions/multiscales repository was created on 2025-10-15 and tagged v0.1 on 2026-06-12, so the last release predates it. |
| titiler-multidim | 0.10.2, 2026-10-14 | TiTiler application for NetCDF and Zarr on titiler.xarray; sel on a dimension, such as sel=time=nearest::2020-01-06 (README). |
| OpenLayers | 10.11.0, 2026-10-04 | ol/source/GeoZarr reads multiscales, proj and spatial; variable and dimensions select from a (time, band, y, x) array. The file holds no scale_factor or add_offset handling; openlayers/openlayers#17649 asks for it and was open on 2026-10-19. |
| deck.gl-raster | 0.8.1, 2026-09-24 | deck.gl-zarr and geozarr packages read spatial, multiscales and geo-proj; the caller supplies getTileData and renderTile (package READMEs). |
| GDAL | 3.13.0, 2026-05-08; 3.13.3, 2026-08-18 | The Zarr driver documents the multiscales convention as overviews for Zarr v3 ("versionadded 3.13"); NEWS.md of 3.13.0 lists read support for multiscales, spatial and proj. |
| Icechunk | 2.3.0, 2026-10-06 | "Transactional storage engine" for Zarr; the format crate holds snapshots, manifests and transaction logs; the README says reads and writes go through it (README). |
| GeoZarr | geozarr-spec, no GitHub release; last commit 2026-07-06 | The README says the specification will be produced once mature conventions form a suite. multiscales, proj and spatial each state "Extension Maturity Classification: Pilot" and v1 before the end of 2026 in their READMEs. Open on 2026-10-19: geozarr-spec #136 (time), #131 (layers and bands), zarr-conventions/spatial #33 (non-spatial coordinates). geozarr-spec #52 on scale and offset was closed on 2025-04-08 with the topic deferred to a second phase. zarr-conventions/missing_value is classed Proposal. |
The measured statements in the page (zarr-layer on the same stores, the 12 MB/s link, the bytes fetched, the CRS placement, which readers refuse which stores) are from the review's measurements of 2026-10-18 and 2026-10-19, with its sources of 2026-10-18. The page cites the review for each. The statements about PMTiles, Mapbox raster-array and COG + TiTiler were not read again.
Live store and publishing
The demo catalog lists two v0.3 stores on data.chronozarr.org, in the R2 bucket chronozarr-stores:
ucayali_santa_maria_v03: 117 monthly Sentinel-2 composites, unsharded, 5,893 objects, 6,451,772,327 bytes.ucayali_santa_maria/png-v03: the PNG frames demo, sharded, 35 objects, 112,879,724 bytes.
The R2 bucket uses deploy/r2-cors.json and the Cache Rule in Hosting recipes.
History of the imagery store:
| Date | Event |
|---|---|
| Before 2026-10-01 | ucayali_santa_maria/chronozarr-3, sharded, 93 objects, published on the previous data host. |
| 2026-10-01 | ucayali_santa_maria/chronozarr-4, unsharded, 5,893 objects, replaced it. The values are bit-identical. |
| 2026-10-03 | ucayali_santa_maria_v03 replaced chronozarr-4 in the catalog, converted with chronozarr convert. |
| 2026-10-03 | Both v0.3 stores were copied to the bucket chronozarr-stores and served from data.chronozarr.org. All 5,928 objects matched by ETag and size. |
| 2026-10-05 | The previous bucket was deleted, with the v0.2 stores and the v0.2 water store ucayali_santa_maria/water-2. |
The suffixes -3 and -4 count dataset revisions. Both stores used spec v0.2.0. v0.3 readers reject v0.2 stores; convert them with chronozarr convert.
Doctor results:
| Store | Date | Result |
|---|---|---|
ucayali_santa_maria/chronozarr-2 | 2026-09-30 | 15 ok, 2 info, 0 warnings. edge cache HIT, timing-allow-origin *, cache-control max-age=31536000. |
ucayali_santa_maria/chronozarr-4 | not recorded | 13 ok, 0 failures, at upload. |
ucayali_santa_maria_v03 | 2026-10-03 | 13 ok, 3 info, 0 warnings. Decode matched at levels 0 to 3. |
ucayali_santa_maria/png-v03 | 2026-10-03 | 12 ok, 2 info, 0 warnings. Decode matched at levels 0 and 1. |
The info lines on 2026-10-03 reported edge cache DYNAMIC and no Timing-Allow-Origin. The Cache Rule was added on 2026-10-05.
Publishing times through the R2 S3 API with scripts/r2_sync.py:
- The 5,893 objects of
chronozarr-4took 274 s. - The 17,088 objects of the water store took 150 s.
Publishing through wrangler starts in about 2 seconds per object. At 4 parallel uploads, the 5,893-object store takes about 50 minutes. The 17,088-object water store takes 2.4 hours. A sharded store of around 100 objects takes a minute or two.
Hosting observations
Which recipes were run
As of 2026-10-12. Cloudflare R2 with a custom domain hosts the public demo, and Source Cooperative was tried as below. The Amazon S3 (public bucket and CloudFront), Google Cloud Storage and Azure recipes follow the providers' documentation and the messages of the publish adapters. They have not been run against live accounts.
chronozarr publish 0.4.0 was run against a local S3 emulator (moto behind a TLS proxy that applies S3's CORS rules) on 2026-10-12: upload in four phases, resume after a failure, --apply-cors, --update after an append, the doctor checks and the viewer link. When the proxy answered 403 for an object that does not exist, as S3 does for a reader without s3:ListBucket, doctor failed the store at the validate step and no link was printed. This is why the S3 recipes grant s3:ListBucket.
Doctor
The doctor checklist in Hosting requirements and troubleshooting was read from src/chronozarr/doctor.py on 2026-10-01. If that file changes, the file is the authority.
Cache copies per requesting site
R2 adds Vary: Origin to responses on a bucket with a CORS policy, and Cloudflare keeps a separate cached copy for each Origin. Checked on data.chronozarr.org on 2026-10-08 with one chunk (ucayali_santa_maria_v03/2/data/c/46/0/1/1):
| Request | First | Second |
|---|---|---|
Origin: https://site-a.example | MISS | HIT |
Origin: https://site-b.example | MISS | HIT |
No Origin header | MISS | HIT |
Origin: https://chronozarr.org | MISS |
A Transform Rule that removed Vary from responses did not change this: on 2026-10-08 a second origin still missed after the first had cached the chunk. The rule was deleted, because without Vary a browser could reuse a response that has no CORS header.
Cloudflare cache rule
Checked on data.chronozarr.org on 2026-10-05, with the rule from hosting section 3.2 (Edge TTL follows Cache-Control; zone Browser Cache TTL respects existing headers):
| Object | First request | Second request | Cache-Control sent |
|---|---|---|---|
ucayali_santa_maria_v03/0/data/c/0/0/0/0 | MISS | HIT | public, max-age=31536000, immutable |
ucayali_santa_maria_v03/zarr.json | MISS | HIT | public, max-age=300 |
A bytes=0-1023 range on a chunk | MISS, 206 | HIT, 206 | public, max-age=31536000, immutable |
Before the zone Browser Cache TTL was changed, the same zarr.json reached clients with max-age=14400. The zone default of four hours had replaced the 300-second origin value.
Before 2026-10-03 the data host used a rule that overrode both TTLs with one year. Verified on 2026-09-30: zarr.json returned MISS then HIT with an age header, and a 206 range request on a shard returned MISS then HIT. That rule hid appends, and section 3.2 no longer recommends it.
A Cache Rule whose expression sits in a URI wildcard value matches nothing. R2 responses then stay DYNAMIC with no Timing-Allow-Origin. For an R2 hostname, the dashboard warns that the rule "may not apply to your traffic". The rule applies regardless.
Source Cooperative
Observed on one public object on 2026-09-30 (kerner-lab/fields-of-the-world):
- A bounded range returns
206withContent-RangeandAccept-Ranges: bytes. - The response has
Access-Control-Allow-Origin: *,Access-Control-Allow-Headers: *andAccess-Control-Expose-Headers: *. OPTIONSreturns204.- There is no
Cache-Controland noTiming-Allow-Origin. cf-cache-statusisDYNAMIC.
Expected chronozarr doctor result: checks 1 to 8 and 12 pass. cache-control warns for a versioned prefix. edge cache and timing-allow-origin are info.
The proxy is documented as beta. The storage behind it (S3, GCS, Azure, R2) is not the user's choice.
Whether the proxy stores and serves the --cache-control value is untested.
Timing-Allow-Origin
Without Timing-Allow-Origin, PerformanceResourceTiming.transferSize is 0 for cross-origin requests. A benchmark that reads resource timing then under-reports bytes. The reader counts the body bytes of each response it receives, so the viewer's own byte counters do not depend on the header.
Preflight
A browser sends a preflight only for a suffix range. Browsers do not preflight a bounded bytes=a-b.
A store written with shard_bytes lets a reader fetch every shard index as a bounded range. Checks 6 and 7 then cost nothing in practice, but doctor still reports them.
An unsharded store is read with plain GETs and no Range header.
Cache lifetime after an append
The trailing shard of a cell holds its last timestep. When the next shard opens, the old one becomes immutable. It keeps the max-age=300 it was uploaded with, because --newer-than does not touch it. That costs an origin revalidation every five minutes per shard.
Open viewers after an append
A viewer keeps the root zarr.json it loaded until the page reloads. It shows the old timesteps. Everything it already reads stays correct: chunks, offsets and references of existing timesteps do not change.
For a sharded store, one failure exists. The viewer fetches a shard index after an append, using the old shard length from shard_bytes. The trailing shard is longer, the range lands on the wrong bytes and the index checksum fails. A reload fixes it.
An unsharded store has no shard index, so a stale viewer has no such failure.
The same mismatch can occur for up to the short lifetime when a CDN holds an old shard object next to a new zarr.json, or the reverse. This is why the upload order is shards, then metadata, and why both lifetimes are the same.
Doctor on an appended store
chronozarr doctor on an appended store passes the same checks. Its cache-control line reads the header of one object, 0/data/c/0/0/0/0 (cell (0, 0)):
- In an unsharded store, that object is the chunk of timestep 0. It is immutable for good.
- In a sharded store, it is time shard 0. It is immutable once a second time shard exists.
- While a sharded store has one time shard, that object is the trailing shard with
max-age=300. Doctor warns on a versioned prefix. The warning is expected then.
Newcomer trial (2026-10-12)
Simulated by agents that read only the published documentation and the command help, on one laptop (Apple M3 Max, macOS) and a home connection, with the chronozarr 0.4.0 wheel built from the v0.4.0 tag (identical, file for file, to the wheel on PyPI). The machine's uv configuration excludes packages released in the last 7 days, so the documented uv add 'chronozarr[geo]==0.4.0' could not resolve there; a user without that setting is not affected. No outside person took part: see Colleague trial for the protocol that remains to be run.
| Workflow | Steps | Machine time | Manual configuration | Recipient needs | Docs predicted it |
|---|---|---|---|---|---|
| A. Dated GeoTIFFs to a local preview (12 files, 4 bands, 1500 x 1200) | install, convert --dry-run, convert, preview | install 3 s (cold uv cache); first command after an install 12 to 24 s; dry run 2.1 s; convert 2.8 s; preview 1.4 s; first frame 1.1 to 1.5 s | Chrome's local network permission for chronozarr.org | n/a | Yes, apart from the first-command delay and the browser permission |
| B. Same store, temporary link | share, Copy link, open on a second browser | link after 100 s (0.4.0), 33 s (main after 0.4.0, Temporary sharing) | cloudflared installed | A browser | Partly: 0.4.0 showed no address for 75 s |
| C. Store to S3-compatible storage | publish --dry-run, publish --apply-cors, append, publish --update | publish 1.9 to 2.7 s for 46 MB on a local emulator | Bucket, credentials, public read | A browser | Yes for the emulator. Live AWS, R2, GCS and Azure not run |
| D. Read values in Python | open_zarr, engine="chronozarr", open_store | under 2 s | none | n/a | Yes; the open_zarr route does not apply scale or mask |
| E. Sentinel-2 for a 5 km box, 3 months | ingest.py --bbox ... --name ..., validate, preview | 11.7 s, 0.43 GB | Repository checkout, uv sync --extra ingest | n/a | Yes, with the --bbox flag on main after 0.4.0 |
Values: the level-0 arrays read through open_zarr, the xarray backend and open_store equal the source GeoTIFFs bit for bit (uint16 and float32 stores), and the stores written on Python 3.11 and 3.13 are byte-identical. A copied viewer link restored the timestep, product, band, display range, zoom and centre in a new browser context.
Problems found, and what changed on main after 0.4.0 (PR #100): a failed ?store= link showed the demo store with no error (fixed in the viewer); preview and share printed a traceback for every cancelled read (fixed); share showed no address while it waited and cached a failed lookup (fixed); missing-extra messages named uv sync, which works only in a checkout (fixed); publish printed public-access advice for any failure (fixed); month names in file names could not be read and the fix pointed to --date-pattern (the message now gives the manifest route). Not changed: every command takes about 1.4 s to start, because the package imports xarray and pandas at once.
Newcomer baseline (2026-10-19)
The baseline that the colleague trial compares against, measured 2026-10-16 to 2026-10-19 with chronozarr 0.4.1 before any change it prompts. No person took part, so the trial's primary endpoint has no value yet. Every package installed for these checks was released at least 7 days earlier; chronozarr 0.4.1 was built from its tag (SHA-256 e5ec2167…8dd00, the same file as on PyPI).
Real data
20 public datasets of the kind a scientist brings, kept as the source delivers them (2.18 GB, scripts/corpus/manifest.json), went through what the documentation tells a newcomer to run: convert INPUT STORE --dry-run, then convert. NetCDF and Zarr runs add --variable. 0.4.1 and main gave the same result and the same messages for every dataset.
| First run | Datasets |
|---|---|
| Converted, and the store is correct | 0 |
| Refused, and the message names a fix that works | 7 |
| Refused, and the message names no fix that works | 13 |
| Converted, and the store is wrong | 0 |
| Traceback or timeout | 0 |
After the verified historical fix chains, 18 of 20 reach a correct store, at an estimated 2 to 90 minutes each. The other 2 (HDF4, HDF5) were not converted. 2 datasets end with a wrong store if the user stops after the fix that the message names: CHIRPS (-9999 stored as rainfall) and MODIS MOD13A1 (the file's scale of 10000 makes NDVI about 1e8). 3 more keep longitudes beyond 180 in EPSG:4326: the two OISST sets (280 to 360) and ERA5 over Fiji (165 to 195). zarr-layer 0.11.0 and GDAL 3.13.3 place such a store correctly (GeoZarr review), but a lookup by a longitude from -180 to 180 in xarray returns the nearest edge column without an error.
Evaluation correction, 2026-10-23: scripts/corpus/run_corpus.py now records policy source-values-v2 for new results. Longitude extent is a lookup-convention diagnostic; correctness follows the independent source comparisons of dates, CRS, values and validity. The OISST/ERA5 routes in classes.json now keep their native coordinates. Original raw results and the recorded effort are unchanged; their historical coordinate wrapping or warping was not required for correctness.
Simulated newcomers
Codex (gpt-6.1-sol, codex-cli 0.163.0-alpha.10.2) played the tester with an empty CODEX_HOME: no instructions, memories, hooks or tools beyond a shell. It read only chronozarr.org and worked in a fresh Ubuntu 24.04 or Miniforge container (scripts/trial/), each with one corpus dataset. A second fresh container with a headless browser opened the link. Session 101 was the pilot; session 2 stopped after 47 s when the model was at capacity, and session 6 did not start (a records-folder clash); they were repeated as 22 and 26.
| Session | Data | Minutes to link | Tasks | Recipient saw the chosen date | Own conversion code | Store |
|---|---|---|---|---|---|---|
| 101 | CHIRPS monthly GeoTIFF | 1.2 | 3 of 3 | yes | none | correct, after the agent found -9999 itself |
| 1 | WorldClim monthly GeoTIFF | 1.3 | 3 of 3 | yes | 5-line manifest | correct |
| 3 | PRISM daily BIL in zips | 1.8 | 3 of 3 | yes | 19 lines: BIL to GeoTIFF | correct, 45 of 46 days |
| 4 | MODIS 16-day COG, day-of-year names | 2.0 | 3 of 3 | yes | 22 lines: dates, warp, scale | correct |
| 5 | Landsat NDVI with NaN | 1.6 | 3 of 3 | yes | none | correct |
| 7 | OISST daily NetCDF | 1.5 | 3 of 3 | yes | none | correct values; longitudes 280 to 360, so a lookup at -64.6 in xarray returns an edge column |
| 8 | CMIP6 360-day NetCDF | 1.9 | 3 of 3 | yes | 10 lines: calendar, wrap | correct; dates relabelled without a note |
| 9 | ERA5 6-hourly NetCDF over 180° | 1.5 | 3 of 3 | yes | none | correct values; longitudes 165 to 195, drawn across 180° by zarr-layer |
| 10 | Daymet NetCDF, Lambert conformal | 1.7 | 3 of 3 | yes | 19 lines: warp 365 days | correct |
| 22 | NSIDC monthly GeoTIFF, polar | 1.0 | 3 of 3 | yes | none | correct; flag values 2530 and 2540 kept as data |
| 26 | Earth Engine 23-band export | 1.5 | 3 of 3 | yes | 25 lines: split, warp | correct; fill -3000 kept as data |
Values were checked against the source files at the place and dates each session chose; stores 22 and 26 were also read whole. The recipient's first frame took 3.2 to 4.4 s with software WebGL.
The agent reads and writes code at machine speed and knew the CHIRPS fill value and the MODIS scale convention, so these times are a lower bound for steps that the documentation covers. Sessions 3, 4, 8, 10 and 26 show where a scientist who does not write code stops: there the agent wrote its own conversion before convert accepted the data. The containers offered packages from a fixed local index, had uv and cloudflared installed, and granted the browser's local network permission without the prompt a person sees.
Clean-room quickstart
.github/workflows/quickstart-clean-room.yml runs the shell blocks of the quickstart as printed, in bash on Linux and macOS and in PowerShell on Windows, on fresh GitHub runners (run 39184698136, 2026-10-19). Every step passed on all three. Seconds per step, the share step to a link that the runner read through the tunnel:
| Step | Linux | macOS | Windows |
|---|---|---|---|
uv tool install and --version | 4.4 | 3.3 | 14.5 |
export-cog (12 files, 41.7 MB) | 7.9 | 4.9 | 8.7 |
convert --dry-run | 0.9 | 0.8 | 1.7 |
convert | 1.6 | 1.4 | 2.7 |
share | 27.1 | 66.3 | 28.5 |
preview | 1.0 | 36.6 | 2.1 |
The macOS preview and share times were not explained; on a Mac with browser opening turned off, preview took 2.0 s. The quickstart shows the output of convert from main, which differs from what the 0.4.1 it installs prints.
Field performance
The deployed viewer at chronozarr.org/demo/ with its default store (ucayali_santa_maria_v03), measured 2026-10-16 and 2026-10-18 (scripts/fieldperf/, raw data in data/fieldperf/). Other work kept this machine loaded (load average 5 to 25 on 16 cores) throughout, which affects the client-side numbers.
A cold visit makes 76 requests (12.4 MB) before its first complete frame: 61 JavaScript modules in 4 to 9 sequential levels, then the catalog, root metadata, one coarse chunk and nine level-1 chunks. Adding latency per request shows about 11 sequential requests in front of the first frame: 0.86 s with none added, 3.2 s with 200 ms, 5.0 s with 400 ms.
Real browser from Chapel Hill (Cloudflare IAD and EWR, about 24 MB/s), 2026-10-18, a new browser and a different timestep each run, p50 with p95:
| From the store load call | Cold edge (N = 31) | Warm edge (N = 38) |
|---|---|---|
| First whole frame | 549 ms (1,477) | 456 ms (1,093) |
| Target-level frame | 1,220 ms (2,332) | 922 ms (1,841) |
| Target-level frame, from navigation | 2,135 ms (3,304) | 1,555 ms (3,017) |
On 2026-10-16 the same machine reached Cloudflare at about 1 MB/s, and the target-level frame took 11.4 s cold and 11.6 s warm (N = 13 and 21): the link, not the edge, set the time.
Edge samples from Globalping probes in data centres, first byte of a level-1 chunk, p50 (p95). A miss means the probe's Cloudflare location did not hold the object:
| Region | Hit | Miss | Date |
|---|---|---|---|
| Ashburn | 29 ms (51) | 162 ms (384) | 2026-10-16 |
| Frankfurt | 27 ms (49) | 353 ms (565) | 2026-10-16 |
| São Paulo | 28 ms (38) | 375 ms (599) | 2026-10-16 |
| Singapore | 28 ms (50) | 754 ms (1,180) | 2026-10-18 |
Probes in Singapore were answered by Hong Kong for 21 of 67 requests on 2026-10-16, and a request answered by another location than the one before it was always a miss.
Playback for 60 s at the default 4 steps per second, 2026-10-18, three runs each: unthrottled, 239 of 240 steps on time and 1 frame in 10,797 over 33 ms. With the link limited to 0.7 MB/s and 100 ms latency, the first step came after 18.4 to 18.9 s, then 0.85 to 0.89 steps per second with four pauses of about 7.5 s; the viewer was already at its coarsest level and did not lower the speed (it does since 2026-10-19: Speculative bandwidth and playback on a slow link).
| Speed gate | Measured | Holds |
|---|---|---|
| Cold open ≤ 500 ms, level 0, 36 cells | about 1.4 s (5 runs) from Chapel Hill; first whole frame 549 ms cold, 456 ms warm | no |
| Warm switch ≤ 16 ms | 2.2 to 2.5 ms p50, but 29 or 30 of 30 frames were incomplete: the 36-cell, 117-step working set does not fit | not established |
| Decode ≤ 5 ms per chunk | 5.8 ms p50 at load 9, 8.0 ms at load 21 | not established under load |
| 0 wire bytes on a warm switch | 0 bytes in all three warm loops, counted inside each switch, where no response can arrive (Speed gates in CI) | not established |
Cold open with the viewer bundled (2026-10-19)
The front of the cold open was a chain, not a transfer: the page read viewer.js, then the modules it imports, then theirs (5 levels, 61 scripts), and only then asked for catalog.json, then the store's root zarr.json, then a chunk, then the codec that decodes it. The viewer is now built into one script, and the page starts the catalog and the root read itself while that script downloads.
Method: the same default store (ucayali_santa_maria_v03, 117 timesteps, a root zarr.json of 38,338 bytes) from a local HTTP/2 server for the site and a second origin for the data (scripts/fieldperf/local_site.mjs), so every request goes through one connection per origin as on Cloudflare. scripts/fieldperf/latency_sweep.mjs opened the bare viewer page in a new Chromium process each time (real GPU through Metal, 1440 x 900 at device pixel ratio 2, HTTP cache disabled over CDP), with 0, 100, 200 and 400 ms added to every request by CDP (the worker's scripts included, no bandwidth cap). 9 runs per latency for each build, the two builds alternating run by run, so the load of the machine (16 cores, 1-minute load average 7 to 37 at the start of a run, median 10.3 before and 10.7 after) falls on both. "Before" is the modules of main at cea0f2a served as the site served them; "after" is js/support/build-viewer.mjs. The "before" run reproduces the field model above: 76 requests and 61 scripts before the first frame, and a slope of 11.0 sequential requests per added latency.
First frame from the start of navigation, p50 with [min, max] in ms:
| Added latency | First target-level frame, before | after | First coarse frame, before | after |
|---|---|---|---|---|
| 0 ms | 175 [168, 378] | 141 [114, 222] | 109 [97, 234] | 94 [70, 143] |
| 100 ms | 1,291 [1,262, 1,326] | 609 [605, 660] | 1,220 [1,194, 1,250] | 451 [447, 495] |
| 200 ms | 2,404 [2,368, 2,438] | 1,128 [1,114, 1,188] | 2,379 [2,342, 2,426] | 870 [853, 921] |
| 400 ms | 4,619 [4,562, 4,638] | 2,125 [2,104, 2,146] | 4,619 [4,562, 4,637] | 1,676 [1,651, 1,711] |
| Before | After | |
|---|---|---|
| Sequential requests in front of the target-level frame (least-squares slope on the added latency, r² 0.999) | 11.0 | 5.0 |
| Sequential requests in front of the coarse frame | 11.2 | 4.0 |
| Levels of the script graph (longest chain of "this script started that one") | 5 | 2 |
| Script requests before the first frame (8 are the same worker script, one per worker, because the cache is off) | 61 | 10 |
| Requests before the first frame | 76 | 25 to 26 |
| JavaScript that the main thread loads, brotli level 5 (raw) | 149 KB (465 KB) | 62 KB (184 KB) |
What the 5 sequential requests are now: the page, catalog.json, the root zarr.json, the coarse chunk (the codec's script loads beside it) and the target-level chunks. The viewer script downloads beside the catalog and the root read, so it is not in the chain. The remaining chain is the design: a catalog to find the store, metadata to find the chunks, a coarse stage before the target level.
Two more changes follow from making the script and the workers load in one round trip. A decode worker used to take about seven round trips to start, so the main thread decoded every chunk of the first frame; now a worker starts in one, and a worker that said ready before its codec had loaded held the first chunk (one run at 200 ms: 2.5 s to the first frame, against 1.1 s with the change below). A worker now says ready after the codecs of the store's arrays have loaded, and the main-thread decoder that serves jobs until then loads them while the first chunk downloads. And the root metadata read, made before the viewer script ran, no longer shows the viewer a round trip: the viewer paces its coarse stages by the time that read took, which the page now reports (e2e/viewer-coarse.spec.js failed until it did).
The speed gates above, run on both builds with the viewer's bench() against the same local store (3 runs per build, alternating; 1-minute load average 9 to 10 at the start): cold open at level 0, 36 cells, from the loadStore call, median of 5 per run, 120 to 123 ms before and 121 to 133 ms after (gate 500 ms); warm switch 4.3 to 5.2 ms before and 3.6 to 4.1 ms after (gate 16 ms), 0 wire bytes in all six runs as counted inside each switch, where no response can arrive (Speed gates in CI); decode 4.4 to 4.6 ms before and 4.3 to 4.6 ms after per 2 MB chunk (gate 5 ms). Movie playback, 30 s at 4 steps per second, unthrottled, 3 runs per build: 120 of 120 steps shown on time and no buffering pause in all six.
Not measured: the deployed site (the sweep is local, so the connection set-up of the data host, which the page now starts at once, is not in it), a repeat visit with the cache on, and Safari and Firefox. The gate "cold open ≤ 500 ms" is read from a call to loadStore, as bench() does, not from navigation.
Speculative bandwidth and playback on a slow link (2026-10-19)
The GeoZarr review found the viewer fetching 187 to 226 MB in the 1.5 s after its first frame and playing at 0.85 to 0.89 steps per second with long pauses on a slow link. The viewer now does this:
- The coarse loop (every timestep at the coarsest level) counted as the user playing, so the idle byte cap of the level-1 horizon never applied for the first 3 s. It is an ambient job now and does not count.
- Idle prefetch may start at most 32 MiB per idle episode (64 MiB before) and no more than the measured link delivers in 1 s. Two options set it (
idleBytes,idleSeconds). - The coarse loop plans as many timesteps as the measured link carries in 20 s (the whole loop from about 4 MB/s up), nearest first, and is planned again when the playhead moves a quarter of the window away. Speculative requests in flight, over all jobs together and counted at every start, carry about a second of the link (1 to 6 of them).
- A request is not sent twice. A worker that had waited for the speculative allowance started a chunk that a demand read had started meanwhile (9 repeats among 57 chunk requests in a 45 s run at 0.7 MB/s), and every re-plan of a playing movie (every 250 ms) cancelled the speculative requests in flight, so a speculative request that needed longer than that (every one, at 0.7 MB/s) was dropped with what it had moved, unless a demand read had joined it. A new plan now takes over the requests it shares with the old one.
- When the link cannot feed the speed even at the coarsest level, playback runs at the speed at which every frame of the next 8 s that is not in memory is in before the playhead gets there (0.7 of the measured bandwidth over the wire bytes of a step, taking the missing frames nearest first), starts after two seconds of frames at that speed, loads as many steps at once as the link carries in a second (1 to 3), and says so:
4 /s → 0.8and0.8 step/s: link too slow for 4. It speeds up over frames that are loaded.
Method: the local Ucayali store (117 steps, 4 bands, 2765 x 2759; level 1 is 9 chunks of 1.39 MB, level 3 one chunk of 0.69 MB) served by js/support/static-server.js, the viewer of origin/main (cea0f2a) and of the branch served side by side, and the runs of the two alternated. Playwright Chromium 153 on an Apple M3 Max (16 cores) with other work running, 1440 x 900 at pixel ratio 2, a new browser for every run, the HTTP cache off, link limits by CDP Network.emulateNetworkConditions from the first request (the page and its modules included). scripts/fieldperf/ (browser_opens.mjs, scrub.mjs, playback.mjs, bench_gates.mjs) with FIELDPERF_SITE and FIELDPERF_STORE pointing at the local copies. Wire bytes are the encoded sizes CDP reports for requests to the store that started in the window. Medians with ranges.
After the first frame, 10 opens each (1.5 s window; load average 7.5 to 14.7):
| Before | After | |
|---|---|---|
| Wire bytes | 270 MB (227 to 280) | 113 MB (112 to 116) |
| Requests | 282 (242 to 287) | 144 (143 to 147) |
| Level-1 chunks (1.39 MB) and level-3 chunks (0.69 MB) | 166 (126 to 171) and 116 | 28 (27 to 31) and 116 |
| Time to the level-1 frame | 89 ms (83 to 96) | 92 ms (85 to 112) |
The 116 level-3 chunks are the coarse loop (80 MB); the level-1 chunks are the horizon. 30 s with no input after the first frame, on a slower link (2 runs each, load 5 to 10):
| Link | Before | After |
|---|---|---|
| 3 MB/s, 30 ms | 86.7 MB: 43 level-1 and 58 level-3 chunks, 4 aborted | 59.4 MB: 2 level-1 and 82 level-3 chunks, 0 aborted |
| 0.7 MB/s, 100 ms | 15.8 MB: 10 level-1 and 17 level-3 chunks, 4 aborted | 13.8 MB: 0 level-1 and 20 level-3 chunks, 0 aborted |
A 60 s scrub at 4 steps per second (ping-pong over the 117 steps from t = 0, goToTime every 250 ms; 3 runs unthrottled, 2 at 12 MB/s, load 4.6 to 10.7):
| Idle 1.5 s | Scrub | Steps drawn | Levels drawn | Requests (aborted) | |
|---|---|---|---|---|---|
| Unthrottled, before | 206 MB | 1,448 MB | 239 of 240, all before the next step | level 1: 717 | 1,222 (0) |
| Unthrottled, after | 113 MB | 1,542 MB | 239 of 240, all before the next step | level 1: 717 | 1,303 (0) |
| 12 MB/s, before | 18 MB | 595 MB | 240 of 240 | 1: 10, 2: 273, 3: 196 | 1,026 (278) |
| 12 MB/s, after | 19 MB | 637 MB | 240 of 240 | 1: 7, 2: 275, 3: 198 | 932 (151) |
The scrub draws level 1 at every step on a fast link, which takes 117 steps x 9 chunks x 1.39 MB = 1.46 GB, so what the change removes from the idle window arrives in the scrub instead (206 + 1,448 and 113 + 1,542 MB are the same 1.65 GB). The 12 MB/s run still draws 240 of 240 steps by dropping to levels 2 and 3. An aborted request reports no bytes over CDP, so these totals leave out what the 278 and 151 aborted requests had already moved.
Playback for 60 s at 4 steps per second, the viewer opened and fully drawn first (3 runs each; load 11 to 71 before and 30 to 53 after, because another job loaded the machine, which the link-bound runs hardly show):
| First step after play | Steps in 60 s | Pauses (total) | Longest pause | Paused share of the 60 s | Speed at the end | MB in the window (aborted requests) | |
|---|---|---|---|---|---|---|---|
| Unthrottled, before | 0.1 s | 240 | 0 | 0 | 0 % | 4 | 370 (7) |
| Unthrottled, after | 0.1 s | 240 | 0 | 0 | 0 % | 4 | 316 (0) |
| 0.7 MB/s, 100 ms, before | 23.5 s | 25 (25 to 26) | 3 (19.7 s) | 12.3 s | 72 % | 4 | 37.6 (9) |
| 0.7 MB/s, 100 ms, after | 5.0 s | 42 (42 to 43) | 0 | 0 | 8 % | 0.9 (0.8 to 0.9 over the run) | 36.6 (0) |
At 0.7 MB/s the link moves 0.66 MB/s (as measured) and a level-3 frame is 0.69 MB, so 4 steps per second cannot be had. Before, the viewer played bursts of 9 steps in 2 s and then waited 7 to 14 s for the next ones. After, it keeps 30 % of the measured link in hand and plays about 0.8 steps per second without a pause (the median step takes 1.25 s; one step in each run took 3 s when the measured bandwidth dipped). The paused share after is the wait for the first two frames. The page itself still takes 25 s to its first frame on this link (the 12.6 MB level-1 frame and the 61 uncompressed modules of a local server), and the run starts playing after that.
Speed gates, chronozarr.bench() 3 runs each (load 5 to 7):
| Gate | Before | After |
|---|---|---|
| Warm switch, stepping, p50 (≤ 16 ms) | 4.4 to 4.8 ms (3, 25 and 12 of 30 frames incomplete) | 4.7 to 5.1 ms (3, 3 and 6 incomplete) |
| Warm switch, jumping, p50 | 1.3 to 1.6 ms | 1.4 to 1.6 ms |
| Upload from the decoded cache, p50 | 11.4 to 11.8 ms | 11.0 to 12.2 ms |
| Wire bytes on a warm switch (0), counted inside each switch, where no response can arrive (Speed gates in CI) | 0 | 0 |
| Decode per 2 MiB chunk, p50 (≤ 5 ms) | 4.2 to 4.3 ms | 4.2 to 4.5 ms |
After the fix above the gates were run again on the built viewers, before and after alternated, but another job had loaded the machine (load average 265 to 314 on 16 cores): the warm step took 2.0 to 2.3 ms and the decode 5.5 to 5.7 ms in both, the upload from the cache 15.6 to 16.6 ms in both, and no warm switch used the network. At that load the 16 ms and 5 ms gates cannot be established, and the two builds do not differ.
The gates of main after that change (b058d7d), 2026-10-20. The machine was never quiet: from 14:57 to 17:58 the 1-minute load never fell below 4 (4.7 at the lowest, above 100 several times, from other sessions' builds), so the runs started once it fell below 8, at 17:59, and the load was 6.6 to 10.9 during them. Two methods: scripts/fieldperf/bench_gates.mjs as for the figures above (the built viewer, the local Ucayali store, Metal, 1440 x 900 at pixel ratio 2, 3 runs), and the gate runner of Speed gates in CI on the GPU (run.mjs --gpu metal, main against itself, the 36-cell store with all 288 level-0 chunks in memory before the warm switches, 1280 x 720, 8 runs of which 6 count).
| Gate | bench(), Ucayali, 3 runs | Gate runner, GPU, 6 runs | Holds |
|---|---|---|---|
| Cold open ≤ 500 ms, level 0, 36 cells (median of 5 per run) | 122, 126 and 134 ms | 138 to 143 ms | yes |
| Warm switch ≤ 16 ms, stepping | 4.9 ms p50 in each run, 3 or 4 of 30 frames incomplete | 4.0 to 11.0 ms p50 per run; 120 steps: 4.5 ms p50, 17.7 ms p95, 10 over 16 ms; every frame complete | yes at the median |
| Warm switch, jumping | 1.1 to 1.2 ms p50, but 28 of 30 frames incomplete | 7.8 to 9.1 ms p50 per run; 120 jumps: 8.5 ms p50, 22.7 ms p95 | yes at the median |
| Decode ≤ 5 ms per chunk (p50) | 4.3 ms in each run | 4.5 to 4.6 ms | yes |
| 0 wire bytes on a warm switch | reported 0 bytes, counted inside each switch: 18 to 24 requests in its stepping loops and 6 to 9 in its jumps (counted over each loop, 1.72 GB: below) | 0 requests at the data server, 0 requests and 0 bytes in the reader, over 240 switches | yes, by the gate runner |
bench()'s jumps are fast because most of its frames are incomplete, which skips the cells it lacks; with every chunk in memory a jump uploads the cells of a timestep outside the GPU window and takes 8.5 ms. No percentile is written into the 16 ms gate: the medians hold it and the 95th percentiles (17.7 and 22.7 ms) do not. This load is that of the earlier figures (5 to 10), not a quiet machine: the run should be repeated on one, which may give lower figures.
bench_gates.mjs again on the same store, with bench() counting each warm loop over the whole loop and until no request is in flight after it (Speed gates in CI): the built viewer with and without that change alternated, 3 runs each, 2026-10-21, load 11.9 to 14.9. Before the loops the idle prefetch had loaded 31 chunks in both. The store's level 0 is 36 chunks per step over 117 steps, so these loops switch while chunks are still arriving:
Warm loop of bench() | Counted inside each switch | Counted over the loop |
|---|---|---|
| Stepping, 30 steps | 17 to 46 requests, 0 bytes; 4 to 11 frames incomplete | 1,487 requests, 1.72 GB; 4 frames incomplete |
| Jumping, 30 jumps | 7 to 9 requests, 0 bytes; 28 to 30 incomplete | 522 or 785 requests, 0.58 to 0.88 GB; 24 incomplete |
| From the decoded cache, 30 jumps | 0 requests, 0 bytes; 19 to 21 incomplete | 522 or 785 requests, 0.61 to 0.91 GB; 24 or 25 incomplete |
Every loop ended with no request in flight. A bench() run took 15 to 17 s, against 10 s with the old count.
On the built viewer (the page bundled, CHRONOZARR_E2E_BUILT_VIEWER=1), the slow-link browser test (a store of 12 steps of 524 KB at 1 MB/s and 50 ms) paused twice where it allows one, and passed on the sources. Both open with the same five store requests (2,100,777 bytes), so the early reads of the page are not what differed. The build's first bandwidth estimate was 876 KB/s where the sources read 686 KB/s, because its page no longer shares the throttled link with about 60 modules. The speculative jobs (the coarse loop and the movie's prefetch) had each sized their workers once, at their start, as the estimate over the chunk size (421 KB then, the real chunk is 524 KB): 2 each on the build, 1 each on the sources. With the playback buffer's batch of three that was 5 to 7 requests in flight on the build and 3 or 4 on the sources, and the frame the playhead reached first was one of the requests that shared the link five ways (the four frames after the first three arrived together 4.7 s after play, where on the sources they came in from 3.5 s). Six runs on each of the sources and the build, counting the pauses of the first 14 s after play:
| Reader and viewer | Sources | Build |
|---|---|---|
| As merged (5dc1215) | 0 (2 runs) | 2, 2 |
| Speculative requests limited over all jobs, at every start | 1, 1 | 1, 1 |
| Speed taken frame by frame instead of as a share of the window | 0, 0, 0 | 0, 0, 1 |
| Playback buffer loads one step at a time on this link | 0 in 6 runs | 0 in 6 runs |
The share of the window said 3.4 steps/s when three frames were left at the end of a lap, and the movie ran into them. On the real store at 0.7 MB/s the built viewer played 41 steps without a pause before and 40 after (3 runs each; one slot and one step at a time either way). What this does not show: a local server and an emulated link, not a CDN: Chromium opens at most 6 HTTP/1.1 connections to the host, where data.chronozarr.org answers over HTTP/2. One store. The throttled first-frame time is unchanged and dominated by the 12.6 MB level-1 frame. Wire bytes of aborted requests are not counted. The warm-step median is 0.3 ms higher after, inside the spread of the runs and with fewer incomplete frames to skip. The deployed site was not measured after the change.
Problems found
Ranked by datasets and sessions affected, a wrong store first. Each is a candidate for a change; none is fixed yet.
| Problem | Effect | Seen in |
|---|---|---|
| A fill value the file does not declare (-9999, -3000, flags) is stored as data; the dry run says "every pixel is valid". Undeclared NaN is refused instead | Wrong or misleading store | CHIRPS, NSIDC, Earth Engine (101, 22, 26) |
| A file whose scale tag follows the divide convention (MODIS COGs carry 10000) gives values 10000 times too large, with no range check or warning | Wrong store | MODIS MOD13A1 |
A CRS with no EPSG code is refused, and the fix in the message (--crs EPSG:xxxxx) cannot work; for Daymet the first message says the file declares no CRS | Blocked without own code | MODIS sinusoidal, Daymet, HLS, Earth Engine (4, 10, 26) |
| Only GeoTIFF is read as raster input: BIL, GRIB2 and HDF get "no GeoTIFF files found" | Blocked without own code | PRISM, HRRR, MODIS HDF4, SMAP (3) |
| NetCDF needs an extra that the quickstart does not install; the error is xarray's and names no extra | Slowed | OISST, CMIP6, ERA5, Daymet (7, 8, 9, 10) |
--date-pattern cannot read a day of year (%j); multi-band files with dates in band descriptions have no route | Blocked without own code | MODIS, HLS, Earth Engine (4, 26) |
| 360-day and noleap calendars stop at "the time coordinate 'time' is object" | Blocked without own code | CMIP6 (8) |
A band description that differs per file refuses a clean download, and --write-manifest, which the message suggests, writes nothing when the dry run finds a problem | Slowed | WorldClim (1) |
docs/analyze.md selects a band and the nearest x and y in one .sel call, which raises TypeError with xarray 2026.2.0 and 2026.9.0; its example also reads band_units, absent when the source has no units | Documented example fails | every session split the call; 101 |
| Longitudes outside -180 to 180 are kept in EPSG:4326 with no note; readers place the store, but a lookup by a longitude from -180 to 180 in xarray returns an edge column without an error | Misleading lookups | OISST, ERA5 (sessions 7, 9); CMIP6 needed its own wrap |
| The dry run prints "m pixels" for a grid in degrees | Misleading | 9 of 11 sessions |
chronozarr link has no option for centre, zoom or colormap | Slowed | 11 of 11 sessions read the viewer guide for c, z, cm |
Adoption
GitHub on 2026-10-18: 0 stars, 0 forks, 0 watchers; every issue and pull request is the maintainer's; 35 unique visitors in 14 days, referred only by chronozarr.org. PyPI 2026-10-01 to 2026-10-15: 657 downloads without mirrors, 562 of them with no Python version and the rest peaking on release days. npm 2026-09-01 to 2026-10-16: 955 downloads, peaking on publish days. A GitHub code search finds no repository outside chronozarr that opens a store. Cloudflare analytics were not read.
Newcomer measures after the fixes (2026-10-20)
The newcomer baseline repeated after the changes it prompted (pull requests #110 to #130, merged 2026-10-19 and 2026-10-20), with the same data, briefs and checks. No person took part, so the colleague trial's primary endpoint still has no value.
Real data
The 20 datasets of the baseline, run on main at 83e5235 with the geo extra only, as the quickstart installs it (scripts/corpus/run_corpus.py --results; results in data/corpus/results-2026-10-20-main-83e5235.json). A route counts when following only what the messages say gives a store whose dates, CRS and values at 3 pixels on 3 dates equal the source.
| Baseline (0.4.1) | Main 5673cee | Main 83e5235 | |
|---|---|---|---|
| First run converts | 0 | 2 | 2 |
| First run refused with a fix that works | 7 | 15 | 17 |
| First run refused with no fix that works | 13 | 3 | 1 |
| Messages alone, historical longitude-restricted classifier | 4 | 10 | 12 |
| Messages alone, source-value correctness including native longitude conventions | 4 | 14 | 17 |
The second row of message-route results uses the corrected longitude interpretation described above. This changes the evaluation policy, not the source coordinates or the measured conversions; the historical classifier's counts remain visible in the preceding row.
No first run gave a wrong store or a traceback in any of the three. The 18 hand-made routes of the baseline still give correct stores, except the two NSIDC routes, which the fill check now stops until --nodata is given.
Still without a route from the messages alone: Earth Engine tiles split per date (the message suggests narrowing the glob, which converts a quarter of the mosaic), SMAP (the CRS and extents of its EASE-Grid must come from elsewhere), HRRR (a gdal_translate loop and a date from the folder name) and MODIS HDF4 (a GDAL with the HDF4 driver; not run). Only one of the two NSIDC flag values can be marked as nodata.
Simulated newcomers
The ten sessions of the baseline (sessions 1, 22, 3, 4, 5, 26, 7, 8, 9, 10), repeated as sessions 201 to 210 with the same briefs, datasets, images and Codex configuration, against a local copy of main at 83e5235 given version 0.5.0 and documentation pinned to 0.5.0. That copy's wheel and site were built and served as chronozarr.org inside the containers, over HTTPS with a local certificate authority (scripts/trial/newcomer/site_server.mjs). It was not released or deployed. Stores were opened from each session's saved home folder and compared with the source at every pixel and date.
| Data | Minutes to link, baseline / after | Own conversion code, baseline / after | Store after |
|---|---|---|---|
| WorldClim monthly GeoTIFF | 1.3 / 1.0 | 5-line manifest / none | correct |
| NSIDC monthly GeoTIFF, polar | 1.0 / 1.0 | none / none | correct; flag values kept as data with --nodata none |
| PRISM daily BIL in zips | 1.8 / 1.2 | 19 lines / none | correct |
| MODIS 16-day COG, day-of-year names | 2.0 / 1.4 | 22 lines / none | correct, with --scale 0.0001 |
| Landsat NDVI with NaN | 1.6 / 1.2 | none / none | correct |
| Earth Engine 23-band export | 1.5 / 1.3 | 25 lines / none | correct, --bands-are-dates and --nodata -3000 |
| OISST daily NetCDF | 1.5 / 1.9 | none / none | correct; longitudes 280 to 360 kept |
| CMIP6 360-day NetCDF | 1.9 / 1.4 | 10 lines / none | correct; the calendar rule is in the store's provenance |
| ERA5 6-hourly NetCDF over 180° | 1.5 / 1.6 | none / none | correct; longitudes 165 to 195 kept |
| Daymet NetCDF, Lambert conformal | 1.7 / 1.5 | 19 lines / none | correct, in its own CRS |
All 30 tasks were done in both runs, and the recipient saw the chosen date every time. Sessions that wrote their own conversion code went from 5 (and one hand-written manifest) to 0. The minutes changed little: the agent writes code at machine speed, so the code it no longer writes is the measure that matters. The containers' packages are the baseline's versions, and the site was served from this machine, so the recipient's first-frame times are not comparable.
Seen in the sessions and not yet changed: a local preview logs 404 console errors for chunks a store does not have (78 in one session), chronozarr link run at once after share failed once until the tunnel's address resolved, and a lookup in xarray by a longitude from -180 to 180 on a store kept at 0 to 360 still returns an edge column. The first two were changed afterwards: see Every chunk written and link before the address works.
Viewer
Measured locally, as the sections above give in full: Cold open with the viewer bundled and Speculative bandwidth and playback on a slow link.
| Before | After | |
|---|---|---|
| Requests one after another before the first frame | 11 | 5 |
| First frame with 200 ms added to every request | 2,404 ms | 1,128 ms |
| Wire bytes in the 1.5 s after the first frame | 270 MB | 113 MB |
| Playback at 0.7 MB/s: first step after pressing play | 23.5 s | 5.0 s |
| Playback at 0.7 MB/s: pauses in 60 s | 3 | 0 |
The byte and playback figures were measured with the first version of the bandwidth change. Its final version caps the speculative requests of all jobs together and sets the playback speed per missing frame; it had no pause in 6 runs of the slow-link test on the sources and 6 on the bundled viewer.
Speed gates, last measured on a lightly loaded machine: with the bundled viewer (load 9 to 10), cold open 121 to 133 ms from the store load call, warm switch 3.6 to 4.1 ms and decode 4.3 to 4.6 ms per chunk (its 0 wire bytes on a warm switch were counted where no response can arrive); with the first version of the bandwidth change (load 5 to 7), warm switch 4.7 to 5.1 ms and decode 4.2 to 4.5 ms. During the final change the machine was at load 190 to 315 from other work: before and after, alternated under that load, gave the same figures, so the change did not move them. Measured again on main afterwards at load 6.6 to 10.9 (the machine did not fall below load 4 in three hours): cold open 122 to 143 ms, warm step 4.5 ms p50 with every chunk in memory, decode 4.3 to 4.6 ms, and no request from a warm switch over 240 switches (the gates of main, last table). The deployed site was not measured, because nothing has been deployed since 0.4.1.
Temporary sharing
Time to a link (2026-10-12)
chronozarr share on a 12-month, 40 MB store, with cloudflared 2026.10.0, on a laptop and a home connection. The time is from the start of the command. "Record published" is the first answer from the authoritative nameserver of trycloudflare.com (dig @kevin.ns.cloudflare.com, polled every second).
| Code | Address printed | Record published | Address works | Link printed |
|---|---|---|---|---|
| 0.4.0, newcomer trial (2 runs) | not printed | not measured | 80 s | 100 s |
| first lookup at once (2 runs) | 5 s | 7 s | 80 s | 92 s |
| first lookup after 15 s (2 runs) | 5 s | 7 s | 21 s | 33 s |
trycloudflare.com has a negative TTL of 60 s (SOA minimum). A lookup made before the record exists is cached as "no such host" for that time by the resolver of the computer that shares, so the address works there only after the cache entry expires. Waiting 15 s before the first lookup avoids it. If the first lookup still finds nothing, the wait is as before. A recipient on another network has not looked the address up, so their resolver has no such entry.
In every run the recipient read zarr.json through the address (200, Access-Control-Allow-Origin: *), Ctrl-C printed stopped with exit status 0, no cloudflared process remained, and the address then answered HTTP 530.
link before the address works (2026-10-20)
In newcomer session 207, chronozarr link on the address ran about 10 s after share printed it, before share's own first lookup, and failed with Name or service not known. The cached answer then held share's wait for about a minute: its next stage came 70 to 90 s after the address, against 21 s in the measurements above. link now waits up to 90 s for a quick-tunnel address that does not resolve yet, and share's waiting line says to use the address after its open: line.
On this laptop on 2026-10-20 (cloudflared 2026.10.0), link run 2 s after the address appeared resolved it at once, so the failure did not recur here. The address worked 20 s after share started, and open: came at 80 s: the doctor check through the tunnel took 60 s, against 4 s for the same check on the local server (about 2 s since the browser check reads the served folder from disk).
Browser check through the tunnel (2026-10-20)
chronozarr share on the WorldClim tmax store (chronozarr convert of data/corpus/worldclim-tmax-monthly/raw: 24 months, 1 band, 1080 x 2160 px, 4 levels, a mask plane, 813 objects, 27.4 MB), with cloudflared on a laptop and a home connection, load 4 to 12. "Doctor" is the time from checking browser access... to measuring first transfer..., the doctor run through the new address.
Before, each request of that doctor run timed through a live tunnel:
| Phase | Requests | Round trips one after another (at least) | Seconds |
|---|---|---|---|
| HTTP checks: root, array metadata, range, suffix range, preflight, HEAD, cache repeat | 7 | 7 | 1.2 |
| validate | 688 | 232 | 53.5 |
| open the store | 1 | 1 | 0.1 |
| decode 4 levels: two cells and a plain-Zarr pixel each | 16 | 16 | 3.0 |
A request through the tunnel took 240 ms on average. Of the 688 validate requests, 576 read the mask: the check that a mask holds only 0 and 1 reads every timestep at every level, one timestep after another. The other 112 read metadata objects and coordinate arrays: validation opens the store without its consolidated metadata, so it reads every zarr.json, several of them more than once.
Now share validates the folder it serves from disk: 0.3 s for this store, and the tunnel has just returned the root zarr.json of that folder byte for byte. CORS, byte ranges, the suffix range, the preflight, HEAD and a decoded cell per level still go through the tunnel. These are no longer read through the tunnel: the mask, coverage and coordinate arrays (metadata and chunks) and the zarr.json of the level groups. The same server serves them from the folder that was validated. doctor also sends the probes that do not depend on each other at the same time (3 round trips, was 7) and decodes the levels at the same time (4 round trips, was 16). Through the tunnel the doctor run made 24 requests in 2.3 s.
| Code | Address works | Doctor | Link printed |
|---|---|---|---|
| main b058d7d, run 1 | 44.3 s | 62.9 s | 107.8 s |
| main b058d7d, run 2 | 22.2 s | 71.2 s | 93.8 s |
| validate from disk, run 1 | 18.9 s | 2.1 s | 21.4 s |
| validate from disk, run 2 | 24.3 s | 2.2 s | 26.9 s |
The runs alternated between the two versions. Each one stopped its tunnel; no cloudflared process remained. At this point chronozarr doctor <url> still validated over HTTP one round trip after another, so it stayed slow on a store with a mask behind a slow link; Validation over HTTP below brings it from about a minute to 8 s.
Validation over HTTP (2026-10-20)
chronozarr doctor <url> with no local copy, on the same WorldClim tmax store, before and after validation sends its reads together. Validation now reads every node's zarr.json once: the root, then every node the root names at the same time. It reads and checks each stored mask object (a chunk, or a whole shard when sharded) on its own, up to 32 at a time and at most 64 MiB of mask values. Each level's coordinate arrays are read together, and the shard_bytes sizes come from HEAD requests sent together. A host that refuses HEAD gets a one-byte GET instead, and the size comes from Content-Range. Before, zarr's WrapperStore did not pass getsize on, so each listed shard was downloaded in full. HTTP requests now run on 32 threads of their own, which a forked process starts afresh. They used to share asyncio's default pool, which holds a 4-core machine to 8 requests at once. Every mask chunk is still read and checked.
| Code | Link | Doctor | Requests | Round trips one after another |
|---|---|---|---|---|
| PR #136 (64caa84) | 240 ms added to each request, local server | 61.2 s | 759 | 244 |
| this change | 240 ms added to each request, local server | 10.1 s | 697 | 39 |
| PR #136, run 1 / run 2 | quick tunnel | 55.3 s / 56.8 s | 760 | 246 |
| this change, run 1 / run 2 | quick tunnel | 7.9 s / 8.7 s | 698 | 40 |
The tunnel runs alternated between the two versions on a laptop at load 9 to 31. Requests and round trips come from a third run of each version, which made every request through the same tunnel; it took 54.0 s before and 6.9 s after. The tunnel was stopped afterwards; no cloudflared process remained. Most of the remaining requests are the 576 mask chunks, now in waves of up to 32. In tests/test_doctor.py, validation of a 3-level masked test store takes 10 round trips, where it took 103 before. doctor takes 18, where it took 111.
The tunnel runs above used the first version of this change, which read the mask a timestep per task. A review measured two problems with it. Ctrl-C drained every queued read: with 3 s per request, the process exited 31.1 s after SIGINT, after 394 requests. And np.isin on the mask grew local validation's peak memory: +458 MiB on this store, against +46 MiB on PR #136. The current version reads one stored object per task and checks max() <= 1 on the uint8 values. It exits 0.9 s after SIGINT, and local validation peaks at +21 MiB. With 240 ms added to each request it gives the same 10.1 s, 697 requests and 39 round trips.
Local preview and remote notebooks
Checked on 2026-10-09 on macOS with Python 3.11 and a synthetic store of 6 timesteps, 2 bands and 200 by 220 pixels.
Self-hosted viewer
chronozarr preview STORE --viewer-dir DIR served a viewer folder written by chronozarr-viewer. The viewer opened at http://127.0.0.1:<port>/_viewer/demo/index.html, read the store from the same server and painted the first timestep.
Proxy route
A stand-in for jupyter-server-proxy removed the prefix /user/ada/proxy/<port> and answered 403 without a login cookie. With the cookie, the viewer opened at /user/ada/proxy/<port>/_viewer/demo/index.html?store=/user/ada/proxy/<port>/store. It made 103 store requests through the proxy and painted the first timestep. The notebook player (player.js) also reached ready with the two paths on the proxy origin. This was not run on a live JupyterHub or with the real jupyter-server-proxy.
Port in use
With --port set, chronozarr preview fails when anything listens on the port. A python -m http.server --bind 0.0.0.0 process on the port gave the error "port 8795 on 127.0.0.1 is already in use". A plain bind on 127.0.0.1 next to a listener on 0.0.0.0 succeeds on macOS when SO_REUSEADDR is set, so the server also connects to the port before it binds.
Interrupt
A SIGINT stopped the command with exit status 0 after it printed "stopped". The same port was free for a new bind afterwards.
Readers that decode (2026-10-19)
The strip tests of the GeoZarr review copy a synthetic store (3 bands, 6 dates, 3 levels, a mask, a coverage plane) and remove or change one piece of chronozarr metadata at a time. The Python probe opened each of 43 copies with validate, open_store and xr.open_dataset(engine="chronozarr"), and compared the stored values at levels 0 and 1 and the physical values at one pixel with the values the copy was made from. It ran on main at 5673cee and on the branch that makes the readers decode what they can read as declared.
Main already opened the copies with the CRS as proj:wkt2 or proj:projjson only and with no crs mirror, so those rows did not change. 12 of 43 copies changed result, and every opened copy returned the stored values exactly.
| Copy | validate on main | open_store on main | validate now | open_store now |
|---|---|---|---|---|
_ARRAY_DIMENSIONS removed from every array | 22 problems | refused | conforms, 1 note | opens, 1 note |
levels mirror removed | 1 problem | opens | conforms, 1 note | opens, 1 note |
band_names removed | 1 problem | opens | conforms, 1 note | opens, 1 note |
level-group crs, transform and resolution removed | 3 problems | opens | conforms, 2 notes | opens, 2 notes |
time, band, x and y arrays removed | 12 problems | opens | conforms, 1 note | opens |
CF units and calendar removed from time | 3 problems | opens | conforms, 1 note | opens |
proj and spatial registrations removed from the arrays | 9 problems | refused | 2 problems | opens, 2 notes |
multiscales registration removed from the root | 1 problem | refused | 1 problem | opens, 1 note |
resampling_method set to nearest | 1 problem | refused | 1 problem | opens, 1 note |
spec_version set to 0.3.1 | 1 problem | refused | 1 problem | opens, 1 note |
variable removed from the block | 1 problem | refused | 1 problem | opens, 1 note |
the smallest metadata the knock-out tests accepted (z_minimal) | 5 problems | opens | conforms, 5 notes | opens, 4 notes |
A copy that still fails validate fails on a MUST for writers: a registration, resampling_method, spec_version or variable. The reader reads through each of them and reports it, and a resampling_method note says that the overview levels are not block means. The reader does not read the coordinate arrays or the CF attributes of time, so only validate reports their absence. The open_store column of the bands as plain strings, times, nodata and the rotated and south-up grids is unchanged: they still refuse. Problems are counted once per distinct finding, so a registration that is missing from nine arrays counts once.
Stores written by other tools (2026-10-19)
The Python reader opens a store with no chronozarr block from its multiscales layout and arrays (spec 9.4). The values it reads were compared with what zarr-python reads from the same arrays.
| Store | Levels | What it opened as | Values |
|---|---|---|---|
ndpyramid 0.4.0 pyramid_coarsen, WorldClim tmax 2020 | 3 (1, 2, 4 x), 1080 x 2160 at level 0 | 12 monthly timesteps from days since 2020-01-01, one band tmax, EPSG:4326 from the CF spatial_ref, geometry from the x and y arrays, scale 1 and offset 0 as declared, NaN fill | all 3 levels at all 12 times equal zarr-python |
ndpyramid 0.4.0 pyramid_reproject, same data | 3 (512, 256, 128 px), listed coarse to fine | read finest first, EPSG:3857 from the layout, chunks that span all 12 times, _FillValue 9.97e36 | all 3 levels at all 12 times equal zarr-python |
ESA EOPF Sentinel-2 L2A staging product, measurements/reflectance over HTTPS | 6 (r10m to r720m), 10980 x 10980 at level 0 | EPSG:32633 from proj:code, geometry from spatial:transform, 3 bands (b02, b03, b04) of the 4 to 11 that the levels have, one timestep dated 1970-01-01 as a placeholder, no scale | a cell of r10m (3 x 244 x 244) and of r20m (3 x 183 x 183) and the whole of r720m (3 x 152 x 152) equal zarr-python; the same r720m through xr.open_dataset(engine="chronozarr") |
The EOPF store showed three things that the strip tests did not. The levels have different bands: r10m has b02, b03, b04 and b08, r20m has ten, and r60m and the coarser levels have eleven, so the reader keeps the three that every level has and names the rest in a note. The overview levels (r120m and coarser) mark missing pixels with NaN and the finer ones with 0, so each level keeps its own marker. And _eopf_attrs holds a scale of 0.0001 and an offset of -0.1 for the <u2 counts, while the arrays hold float32 values that are already decoded: r720m runs from -0.09 to 1.00, and r60m from -0.09 to 0.28 in the window read. The reader applies _eopf_attrs only when the array still has the dtype it names, so these values are not scaled twice.
Opening the EOPF group took 0.87 s: its metadata is consolidated, and the three band arrays of a level are read one after the other. A cell read took 1.5 s at r720m and 3.5 to 7.1 s at r10m and r20m on this link, because a sharded array costs an index request and a chunk request per band.
The same probe as in Readers that decode ran on the 43 copies of the strip tests. 9 changed result:
| Copy | open_store before | open_store now |
|---|---|---|
a_no_block, b_no_block_no_planes, d3_wkt2_only_no_block, s_a_no_block (the chronozarr block removed) | refused | opens; stored values equal the source; scale and offset not declared |
f1_generic_bands_as_variables (one array per band) | refused | opens; every level, band and time equals zarr-python by name |
f2_chunks_time_multi, f3_chunks_band_split, f4_chunks_nonsquare, f5_chunks_odd_size | refused | opens; values equal; validate still fails on the chunk layout |
37 of 43 copies open now, against 22 on main. The 6 that still refuse have a chronozarr block that is incomplete or not north-up: bands as plain strings, no bands, no times, no nodata, and the rotated and south-up grids. The reader does not fall back to the layout for them, because that would drop the scale and the mask the block declares.
Every chunk written (2026-10-20)
In newcomer sessions 201 and 204, a local preview logged 78 and 13 console errors, Failed to load resource: the server responded with a status of 404. The local server answered each absent chunk with 404 and the CORS headers, and the reader read it as fill, as it should. Chromium logs every response with a 4xx status as a console error, and a page cannot stop it. The deployed host does the same: an absent key on data.chronozarr.org logged the same error in Chromium. Session 201's recipient saw no error because its view, zoom 4 over Phoenix through the tunnel to the same local server, needed no absent chunk.
The chunks were absent because the writer left out every chunk that holds only fill, as zarr-python does by default. In the WorldClim store of session 201 (2160 x 1080, 24 months) that is the bottom row of cells at levels 0 and 1, south of 80.7° S, where WorldClim has no data: 384 of 1,152 data and mask chunks. The writer now stores every chunk (spec §2.1, a SHOULD). Readers still read an absent chunk as fill, because stores written before and by other tools have them.
Cost, from chronozarr convert on main at b9b7df6 and on the branch, alternated, two runs each, on this laptop at load 7 to 12. publish uploads every file, so the file count is also the upload object count.
| Corpus dataset | Files, main / branch | Bytes added | Write time, main / branch |
|---|---|---|---|
| WorldClim tmax 10', 24 months | 813 / 1,197 | 14,592 (0.05 %) | 3.7 to 3.9 s / 3.1 to 3.2 s |
CHIRPS Africa monthly, 24 months, --nodata=-9999 | 391 / 439 | 5,184 | 2.8 s / 2.6 to 2.7 s |
| MODIS 13A1 NDVI, 23 dates (session 204's data) | 869 / 938 | 4,002 | 4.0 s / 3.9 to 4.0 s |
NSIDC sea ice south monthly, --nodata 2540 | 16 / 16 | 0 | 2.1 s / 2.1 s |
NSIDC sea ice north daily, --nodata 2540 | 331 / 331 | 0 | 3.0 to 3.1 s / 2.9 to 3.0 s |
| OISST daily 2020, NaN over land | 744 / 744 | 0 | 4.5 to 4.6 s / 3.9 to 4.1 s |
An all-fill chunk is 50 bytes for a 512 px float32 band and 26 bytes for a mask. A store changes only where a whole 512 px cell holds no valid pixel: the NSIDC and OISST grids have none, although land or ocean covers much of them. The object count grows by the share of such cells, here up to 47 %. Writing was no slower: zarr-python no longer compares each chunk with the fill value before it writes it.
The worst case is a store that is mostly empty. A synthetic store of 8192 by 4096 pixels, 24 timesteps and one uint16 band, whose 11 western cell columns hold only nodata (88 of 128 level-0 cells, 69 %), written once by main and once by the branch on 2026-10-21 at load 13 to 14:
| Layout | Files, main / branch | Payload added | Disk added |
|---|---|---|---|
| Unsharded | 1,443 / 4,155 | 92,208 B | 11.1 MB |
Sharded, shard_time 8 | 225 / 564 | 145,116 B | 1.4 MB |
The disk grows more than the payload because each file takes at least one 4 KB block. In the sharded store the branch also writes the all-fill inner chunks into each shard, and the JavaScript reader, which the viewer uses, makes one range read for each. With the shard indexes cached by the first timestep, a switch to the next timestep over 64 level-0 cells, 56 of them empty, took 8 requests on main's store, whose empty cells have no shard, and 64 on the branch's. The Python reader made 64 on both, because it asks for an absent shard again each time.
The speed gates were not measured again for this change: the machine was at load 13 to 14 from other work. Run them on a quiet machine before the next release.
The CDN answer, two requests each on 2026-10-20: an absent key of ucayali_santa_maria_v03 answered 404 with cf-cache-status: BYPASS both times, and a chunk that exists answered MISS, then HIT (max-age=31536000, immutable). The zone's Cache Rule keeps 404 answers out of the cache, as the R2 recipe says (Cache Rule), so every read of an absent chunk goes to the bucket, while a stored all-fill chunk is served from the edge after its first read.
The viewer at the fit view of the WorldClim store, with main's bundled viewer under chronozarr preview --viewer-dir, three runs alternated per store:
| Store written by | Console errors, first frame + 1.5 s | Console errors, after 5 s of playback |
|---|---|---|
| main | 6, 12, 12 | 102, 108, 108 |
| the branch | 0, 0, 0 | 0, 0, 0 |
Through chronozarr share, the branch's store at the fit view gave no console error and no response of 400 or more, at first frame and after 5 s of playback.
Appending to a store written by main: convert on main wrote 2020 (429 files), the branch appended 2021. The append wrote 593 objects: all 576 chunk objects of the 12 new months and the metadata. The 384 chunk objects of 2020 kept their bytes, and the 192 chunk keys main had left out stayed absent. The store conforms to chronozarr validate, and its values and masks at every level and timestep equal a 24-month store written by the branch in one run.
Sentinel-2 ingest performance
Measured 2026-10-10 on one machine: Apple M3 Max laptop (16 CPUs, 128 GB), macOS, home connection in Chapel Hill, GDAL 3.12.1 from the rasterio 1.5.0 wheel, numpy 2.4.4. The pipeline is examples/sentinel2_pc/mosaic.py; the baseline is the same file at commit 01185cd. Cross-machine performance has not been tested. The harness (examples/sentinel2_pc/bench.py) records the machine with every result, so the same commands can be run elsewhere unchanged.
Method
Each workload is a frozen scene list (bench.py freeze, scene IDs and a SHA-256 in data/bench/workloads/). Every measurement is a fresh process (bench.py run); bench.py compare runs every workload and configuration once per repetition, in a new random order each repetition. Wall time runs from the pipeline call to the last .npz on disk; scene search is excluded. Requests and bytes come from GDAL's own network statistics. Peak memory is the process maximum RSS. Tables give the median and interquartile range of 3 repetitions (2 for the 10 MB/s lab case). A difference smaller than the spread of the network is reported as no difference. Correctness is the SHA-256 of each month's bands and coverage arrays, compared with the baseline's: all 111 new-pipeline runs in the final data (137 runs with the baselines) were bit-exact. Earlier throttled lab runs that were not are described under "Read retries"; their records are kept in data/bench/archive/.
fixed-N is N concurrent reads without adaptation. auto is the default: 16 concurrent reads, lowered when the host fails or throttles. auto-max32 is auto mode with --max-requests 32, which also climbs above 16. auto-capped is auto with --max-requests 8 --cpu-workers 4 --memory 2GB. The baseline reads 4 scenes at a time, each scene's 5 files one after another.
Planetary Computer over a home connection
The runs in this section and the next predate two later changes from the constrained runs in bench/s2-ingest/portability.md. Band reads now fill the month buffer in place and masking works in row blocks, which lowered peak RSS in Docker from 2.8-3.0 to 2.4 GB for the 20-scene month. Auto mode now starts at 4 reads per CPU when that is below 16, which does not change anything on this 16-CPU machine. Output and concurrency here are unaffected; the peak RSS columns are higher than the current code reaches.
| Workload | Scenes | Baseline | fixed-4 | fixed-16 | auto | auto-max32 | Peak RSS baseline / auto |
|---|---|---|---|---|---|---|---|
| Ucayali, 1 month | 10 | 44.1 s [42.8-44.5] | 26.4 s | 20.9 s | 22.8 s | 21.5 s | 10.6 / 2.7 GB |
| Ucayali 5 km box, 3 months | 15 | 19.6 s [19.0-19.8] | 4.2 s | 4.3 s | 5.0 s | 0.39 / 0.31 GB | |
| Ucayali, other UTM zone (warp path) | 10 | 45.3 s [44.9-47.5] | 20.2 s | 22.5 s | 24.8 s | 10.9 / 2.9 GB | |
| Lake Mead, 1 month, 4 tiles | 16 | 34.9 s [34.1-35.0] | 20.3 s | 14.0 s | 14.8 s | 12.7 / 3.0 GB | |
| Yukon delta, 3 sparse months | 11 | 145.4 s [142.6-152.3] | 69.2 s | 48.4 s | 41.8 s | 14.5 / 4.6 GB |
The new pipeline is 1.9 to 4.7 times faster than the baseline at its default settings (auto, or fixed-16, which auto equals when no read fails). At the baseline's concurrency (fixed-4), the pipeline changes alone give 1.7 to 2.1 times. The rest comes from concurrency: 16 reads beat 4 on every workload. Auto and fixed-16 are indistinguishable; auto-max32 is about 15 % slower on the short runs and about 14 % faster on the 3-month Yukon run, so the default ceiling is 16. Downloaded bytes fell 13 to 26 % on the native-grid workloads (Yukon: 1663 to 1289 MB, 1031 to 837 requests) from reading SCL first and skipping source blocks without a valid pixel; the warp path skips only whole scenes and read the same 499 MB as the baseline.
Three of these runs retried a failed read (Ucayali fixed-16, warp auto-max32 and Yukon auto-capped; they are the top of each spread, up to 101 s). They predate the fix under "Read retries" and were still bit-exact.
Local server with traffic shaping
bench.py lab-workload serves a full mirror of the Ucayali month (9.7 GB) from labserver.py, with each scene under two URLs, so a month has 20 scenes. The server adds latency, a shared bandwidth cap, or HTTP 503 for requests beyond a number in flight.
| Condition | Baseline | fixed-4 | fixed-16 | fixed-32 | auto | auto-max32 |
|---|---|---|---|---|---|---|
| No shaping | 18.1 s | 3.4 s | 2.3 s | 2.5 s | 2.3 s | |
| 50 ms per response | 28.0 s | 12.0 s | 4.3 s | 3.3 s | 4.3 s | |
| 20 ms, 10 MB/s shared | 115.1 s | 89.3 s | 88.3 s | 88.2 s | ||
| 50 ms, 503 above 12 in flight | 29.6 s | 16.8 s | 18.3 s | 18.0 s | 18.9 s | 18.2 s |
Without shaping the new pipeline is 7.9 times faster and peak RSS falls from 16.9 GB to 4.3 to 4.8 GB. With 50 ms latency, 32 reads beat 16, but the run lasts 4 s and auto-max32 does not climb within it. With a 10 MB/s cap every configuration waits on the link, and the 1.3 times gain is the 13 % fewer bytes plus overlap. The throttled host costs every new configuration about the same, and none drops a scene.
What changed and what each change bought
- Reading SCL first and skipping bands of scenes, and source blocks, with no valid pixel: 13 to 26 % fewer bytes on the native-grid workloads. The windowed read on the native grid equals bilinear
reprojectbit for bit when the scene's CRS is the AOI's and the origins differ by whole pixels, which holds for Sentinel-2 in its own UTM zone (tests/test_ingest_mosaic.py, and on real Planetary Computer files). - One read per asset in a shared pool instead of one thread per scene reading 5 assets in turn, and months that overlap within a memory budget instead of a barrier per month.
- The median over scenes on uint16 with invalid pixels as 0, in parallel row blocks: 0.20 s instead of 12.7 s for 16 scenes of 2765 x 2759 pixels, equal to float32
nanmedian. - An explicit GDAL block cache (64 to 512 MB) instead of GDAL's default of 5 % of RAM, and a uint16 stack instead of float32: peak RSS 10.6 to 2.7 GB for one Ucayali month.
.npzwritten at zlib level 1 instead of 6: 0.8 s instead of 2.6 s per month, files 2 % larger, same arrays. Without shaping this was 65 % of a 1-month run.- Writes to a temporary name and a rename, so an interrupted run never leaves a partial month. A SIGINT during a 10 MB/s lab run exited after the 16 reads in flight drained (14.6 s) and left no file.
Read retries
GDAL remembers a failed open of a URL for the life of the process. A second open of the same URL fails at once with the first error and sends no request, until VSICurlPartialClearCache drops the entry (checked by serving one URL from a server that always answers 503, then from a healthy one on the same port). A Planetary Computer signed URL is the same until its token refreshes, so the baseline's retries of a scene could not reach the host after a failed open; they could only succeed when the first failure came after the open. The audit below finds no missing scene in the current Ucayali months. Before the fix, in the throttled lab case, fixed-32 dropped one scene in 2 of 3 runs (66.6 s median, output not bit-exact) and auto in 1 of 3. The pipeline now clears the entry before every retry, and the same case was bit-exact in all 15 new-pipeline runs (tests/test_ingest_mosaic.py::test_pipeline_recovers_from_a_transient_error_on_every_asset).
GDAL retries most HTTP 503 responses by itself (GDAL_HTTP_MAX_RETRY), so they never surface as errors. They appear as warnings on the rasterio._env logger, which auto mode counts. One read is several HTTP requests, so even 4 reads hit a limit of 12 in flight now and then. Halving at every second 503 drove the request limit down to 1 and made auto the slowest configuration. Auto now lowers the limit by a quarter only when an epoch's 503s outnumber its completed reads, and halves it when reads fail outright.
A failed name resolve is a different case. libcurl 8.16 to 8.21 caches a failed resolve, transient or not, for half of its 60 s DNS cache timeout (curl documentation of CURLOPT_DNS_CACHE_TIMEOUT); rasterio 1.5 wheels bundle libcurl 8.17.0, and GDAL keeps one connection cache per thread, where a retry runs. On Planetary Computer (2026-10-10) three reads kept failing with "Could not resolve host" on attempts 1, 3 and 4 over about 40 s while other threads read the same host, and every failure lowered the request limit, which averaged 2.4 reads instead of 16. A resolve failure now waits 31 s before its retry and does not lower the limit. What causes the first failure was not established: 144 concurrent lookups through the system resolver at expired TTLs (the host is a CNAME chain through Azure Traffic Manager with TTLs of 7 and 17 s) all succeeded.
Ucayali scene audit
Earlier full-archive runs dropped scenes after read errors (throttling, and expired tokens before the fix of 2026-09). examples/sentinel2_pc/audit_scenes.py checks saved months without downloading any band. A month's coverage is k/n, where n counts every scene searched and k only those read and valid. The script repeats the scene search, reads each scene's SCL band, predicts k per pixel and attributes any shortfall to specific scenes. In a test with 7 scenes removed by hand from the counts of 4 months, it named exactly those 7 scenes. Two clear acquisitions of one tile ten days apart, with 99.6 % of their valid pixels in common, needed the thresholds at the measured noise level (99.9 % and 0.05 %) to be told apart.
Result for the 117 Ucayali months on disk (written 2026-09-29 and 30), checked 2026-10-10:
- The scene count n stored in every month equals today's search, so the scenes searched then and now are the same: 739 scenes.
- No scene with a valid pixel is missing. The largest unexplained shortfall in any month is 694 of 7,628,635 pixels. These are pixels where SCL is valid but a band is 0; the pipeline excludes them, and the SCL-only prediction does not see them. No pixel has more valid scenes saved than predicted.
- Six scenes have fewer than 1000 valid pixels (24 to 560), below what the shortfall test can resolve. None of their pixels shows a shortfall, so they were included.
- Eight scenes have no valid pixel in the AOI. Whether they were read cannot be told, and it does not change any value.
- The local v0.3 store
data/stores/ucayali_santa_maria_v03equals the months on disk bit for bit in all 117 time steps. The published copy was not downloaded to compare.
No month needs to be rebuilt. The per-month report is bench/s2-ingest/audit-ucayali_santa_maria.json.
Lake Mead scene audit
The 127 Lake Mead months on disk were written on 2026-04-19, by the pipeline as it was then. The same audit (2,318 scenes, bench/s2-ingest/audit-lake_mead.json) finds every month up to 2023-05 complete. From 2023-06 on, 674 scenes with valid pixels are missing in 34 months:
- In the 33 months from 2023-07 to 2026-03 no scene contributed at all. Some of them also have scenes without a valid pixel, which is why the audit lists fewer missing scenes than scenes for 9 of them (2023-08, 2023-12, 2024-01, 2024-04, 2024-06, 2025-03, 2025-08, 2025-11, 2026-01). Every one of the 33 is a carry-forward copy of an earlier month; the
water-1build skipped all 33 as having no valid pixel. - 2023-06 is the only partial month: at least 20 of 24 scenes are missing, and 2.3 million pixels of shortfall remain unattributed.
The pattern, intact months followed by failures in calendar order, matches the expired SAS tokens described in the napkin for the first Ucayali run. A second defect predates the audit: the +1000 offset of processing baseline 04.00 and later is not removed. The rule goes by processing baseline, not acquisition date, and ESA reprocessed some older acquisitions: 4 scenes of 2019-03 (baseline 05.00) and 4 of 2021-12 (04.00) carry the offset, and every scene from 2022-01 on does. Checked against BOA_ADD_OFFSET in 23 product-metadata files and against fresh reads of B04 on a desert target (June 2022: stored median 3882, offset removed 2882, June 2021 2765). catalog.py applies the rule correctly today; the months predate that code (2026-09-30). Carry-forward spreads the 2019-03 values into gap pixels of every month to 2021-11 (0.77 % of pixels in 2019-04, falling to 0.01 %). So every month from 2019-03 to 2026-03 (85 months, about 30 to 41 GB to read again) and the lake_mead/water-1 store built from them need rebuilding; nothing was rebuilt here. The manifest, the evidence and the rebuild procedure are in bench/s2-ingest/lake-mead-recovery.md (branch data/lake-mead-recovery). The other AOIs have stores but no monthly files on disk; their coverage is a 0/1 flag, which cannot attribute missing scenes.
Spatial strips
Measured 2026-10-10 on the same laptop, Docker VM and home connection as above. Branch perf/s2-ingest-tiles; the comparator ("PR #90") is the pipeline at d7c2ce1, run by bench.py --baseline-ref d7c2ce1 with its own default settings. Records: bench/s2-ingest/results/strips/ and bench/s2-ingest/runs/*strips*.json.
A month whose scene stack does not fit the memory budget is composited in full-width strips of the AOI grid, with heights in multiples of 512 rows; the planner picks the tallest strip that fits. When the whole month fits, it is one strip, the earlier path. Monthly files became tiled GeoTIFFs written strip by strip, so no month is held whole at any point, and the encode step reads them one 512 by 512 cell of every month at a time.
Exactness. Every step after the read is per pixel. Native-grid reads of a strip are bit-exact, so every native-grid record (all lab workloads, all strip heights, all Docker limits, 14 Planetary Computer runs) has the same month hashes as PR #90 and the original pipeline. Warps are not chunk-independent in GDAL by default, for three reasons, each checked on a real scene (2834 and 9202 pixels square, EPSG:32718 to 32719):
- GDAL derives the bilinear scale of each warp chunk from the chunk's shape. Strips of 256 rows differed from the whole grid by up to 1049 DN. Pinning
XSCALE/YSCALEto the pixel-size ratio removes this. - GDAL's approximate transformer (error up to 0.125 source pixels) interpolates along each destination row over the chunk's width. Column splits changed 4.1 million of 8 million pixels; full-width strips changed none.
- GDAL splits a warp chunk where the source covers only part of it (
SRC_FILL_RATIO_HEURISTICS), which is the normal case for a scene from the neighbouring UTM zone, and it splits large grids by memory. On the 9202-pixel grid this made the whole-grid default warp differ from any strip on 0.4 % of pixels.
The pipeline therefore warps each full-width strip in one chunk (warp_mem_limit 8192 MB, which is a threshold, not an allocation; heuristics off; scale pinned). Then any strip height gives the whole grid's pixels: the lab warp month has one hash across the whole grid and every strip height.
Which warp is correct. Comparing PR #90 with strips showed 0.05 % of pixels whose set of valid scenes changed, so the SCL warp was checked against an independent reference: every grid pixel centre transformed to the source CRS with pyproj, and the 20 m SCL pixel containing it, for the 10 real scenes of the warp month.
| SCL warp | Class differs from the reference | Validity differs |
|---|---|---|
| GDAL default (PR #90) | 0.122 % | 0.022 % |
| pinned scale, one chunk, approximate transformer (first strip version) | 0.165 % | 0.033 % |
exact transformer (tolerance=0) | 0 | 0 |
Every misplaced pixel lies within 0.08 source pixels of a source pixel edge: the approximate transformer's error (up to 0.125 source pixels) moves the sample into the neighbouring 20 m pixel. Both earlier versions misplaced observations, in different places. Since the SCL decides which scenes count at a pixel, it must be exact. GDAL's exact transformer costs 22 times the approximate SCL warp, tolerances of 1e-2 to 1e-5 still left 5030 to 8 misplaced pixels, and rasterio before 1.5 (the version the lock resolves on Python 3.11) cannot request it: it passes tolerance to GDAL as a warp option, which GDAL ignores, and CI's Python 3.11 job found the 9 misplaced pixels of the approximate transformer. So the SCL is not warped by GDAL at all: the window's pixel centres are transformed exactly into the source CRS once per window and source CRS (rasterio.warp.transform, 2.3 s for the whole Ucayali grid), and each scene takes the source pixel containing each centre (read_nearest). On the real warp month this is bit-identical to GDAL's exact transformer, on every rasterio version. Band values only carry interpolation error, so bands use a transformer tolerance of 0.01 source pixels. Against exact band warps, the default left 60 % of values off (median 1 DN, p99 20, max 160) and 0.01 leaves 10 % off (p99 2, max 11) at the same cost; exact bands would cost 7 times. tests/test_ingest_mosaic.py builds a checkerboard SCL with a class edge at every source pixel edge and requires the pyproj pixel everywhere; with the old 0.125 tolerance it finds 9 misplaced pixels.
Result on the 20-scene warp month, against a pipeline with every warp exact: the valid-scene count differs on 1 of 7,927,028 pixels (a band's zero/non-zero changed where the bilinear kernel meets the band's nodata area, resolved to 0.01 source pixels), and band values differ by mean 0.15 DN, p99.9 3, max 21. PR #90's count differs from the exact one on 10,401 pixels (0.131 %), with value changes up to 2693 DN there. Warped scenes cost more: the all-warped lab month takes 6.0 s instead of 2.9 s on 16 CPUs (39 instead of 31 CPU seconds; the coordinate transformation holds the GIL, so it does not spread over threads), and 22.9 s instead of 20.8 s in Docker with 2 CPUs. Native-grid scenes never warp and are unchanged. The speed table below was measured before this change. After it (2 runs each, results/strips/exact-scl/): native-grid workloads are unchanged and bit-exact (20 scenes: whole grid 1.65 s, PR #90 2.38 s; 4 months: 3.04 and 5.84 s); the all-warped month took 5.7 s against 3.9 s for PR #90 on 16 CPUs, and 52 s instead of 21 s in Docker with 2 CPUs, while the SCL went through GDAL's exact transformer once per scene; computing the exact coordinates once per window brought the 2-CPU case to 22.9 s (above). In Docker with 1 CPU and 1.5 GB the warped month is refused before any download (a 512-row strip needs 1.09 GiB with warped reads, the budget is 1.06 GiB).
Memory. The first strip runs exceeded their budget (1000 MiB budget, 1.35 GB peak RSS): masking and the median worked in fixed row blocks, about 56 MB of temporaries per CPU worker for a 20-scene month 2759 pixels wide, times 15 workers. Both now work in blocks of 2 MiB, and the estimate counts the workers' temporaries and GDAL's 5 MB per-file cache of each read. A cgroup or SLURM limit is now budgeted at 75 % instead of 50 %, since it is memory set aside for the job.
| Run (20-scene lab month unless noted) | Budget | Estimate | Peak RSS | Strips |
|---|---|---|---|---|
macOS, 16 CPUs, --memory 1500MB | 1.46 GiB | 1.45 GiB | 1.35 GiB | 3 |
macOS, --memory 2000MB | 1.95 GiB | 1.81 GiB | 1.62 GiB | 2 |
| macOS, whole grid | 24.5 GiB | 2.98 GiB | 2.39 GiB | 1 |
| Docker 2 CPUs, 2 GB | 1.46 GiB | 1.34 GiB | 0.90 GiB (cgroup 1.09) | 3 |
| Docker 1 CPU, 1.5 GB | 1.06 GiB | 0.98 GiB | 0.72 GiB (cgroup 0.87) | 6 |
| Docker 2 CPUs, 3 GB (50 % budget) | 1.48 GiB | 1.35 GiB | 0.92 GiB (cgroup 1.10) | 3 |
| Docker 4 CPUs, 4 GB (50 % budget) | 1.98 GiB | 1.72 GiB | 1.09 GiB (cgroup 1.33) | 2 |
| Docker 1 CPU, 2 GB, 4 months | 1.46 GiB | 1.31 GiB | 1.17 GiB (cgroup 1.50) | 2 |
| Docker 2 CPUs, 2 GB, warp month | 1.46 GiB | 1.13 GiB | 0.93 GiB (cgroup 1.08) | 6 |
The estimate was above the process's peak RSS in every run, by 7 to 45 % (scenes without valid pixels never touch their zeroed planes). The cgroup peak also counts the lab server and the page cache. PR #90 refused every one of the Docker cases at its default budget (the month needs 2.35 GiB); with --memory 2600MB set by hand it ran the 2 CPU, 3 GB case in 7.8 s at a 2.54 GB cgroup peak, against 7.7 s and 1.10 GB for strips by default. A 1 GB container is refused before any download: a 512-row strip needs 0.98 GiB, mostly the fixed 0.5 GiB allowance for the interpreter and libraries.
Speed (lab server on the mirror, median of 3, 2 for shaped links; bytes and requests as served):
| Workload, link | PR #90 | Whole grid | 1024-row strips | 512-row strips | --memory 1500MB |
|---|---|---|---|---|---|
| 5 km box, 3 months | 0.31 s | 0.30 s | 0.30 s (1 strip) | 0.30 s (1 strip) | 0.29 s (1 strip) |
| 20 scenes, no shaping | 2.24 s, 3.28 GB, 870 MB | 1.51 s, 2.43 GB, 870 MB | 1.51 s, 2.01 GB, 1030 MB | 1.83 s, 1.81 GB, 1347 MB | 1.75 s, 1.44 GB (3 strips) |
| 20 scenes, 50 ms | 4.36 s | 3.71 s | 3.59 s | 4.82 s | 4.22 s |
| 20 scenes, 20 ms, 10 MB/s | 88.3 s | 87.5 s | 103.3 s | 134.8 s | |
| 20 scenes, 50 ms, 503 above 12 in flight | 22.0 s | 19.1 s | 15.1 s | ||
| 4 months, no shaping | 5.24 s, 4.04 GB | 2.72 s, 3.90 GB | 2.99 s, 2.16 GB | 3.52 s, 1.37 GB | 4.10 s, 1.51 GB (2 strips) |
| 4 months, 50 ms | 7.23 s | 6.29 s | 6.30 s | 8.81 s | 8.05 s |
| warp month, no shaping | 3.53 s, 3.69 GB, 997 MB | 2.96 s, 2.74 GB, 997 MB | 2.89 s, 1.80 GB, 1176 MB | 3.13 s, 1.65 GB, 1516 MB | 3.48 s, 1.21 GB (6 strips) |
The whole-grid path is faster than PR #90 mainly because a zstd GeoTIFF is cheaper to write than a zlib .npz, and the bounded temporaries lowered its peak RSS. Strips cost bytes, not results: a source block cut by a strip edge is read once per strip (18 % more bytes at 1024 rows, 55 % at 512). On a capped link the time follows the bytes (10 MB/s: +18 % and +54 %); on an uncapped link 1024-row strips cost nothing measurable. Header requests are not repeated, since GDAL keeps a file's size and header across reopens; a larger GDAL download cache (CPL_VSIL_CURL_CACHE_SIZE up to 1 GB) did not avoid re-reading the cut blocks (1348 to 1333 MB). The first strip is on disk well before the month: 46 s instead of 87.5 s at 10 MB/s with 512-row strips. Under the 503 throttle every configuration retried through GDAL (49 to 75 HTTP retries per run) and stayed bit-exact.
Planetary Computer (home link, ucayali-1m, 10 scenes, 14 runs, interleaved and alternating): PR #90 11.7 to 18.6 s (3 runs), whole grid 11.7 to 28.6 s (5), 1024-row strips 11.1 to 55.2 s (6); 435 MB for the whole grid and 508 to 510 MB in strips. Every output was bit-exact. Three of the six strip runs hit DNS failures ("Could not resolve host: sentinel2l2a01.blob.core.windows.net", 12 to 24 failed reads each); none of the eight others did. The retries recovered every scene, but repeated failures halve the request limit, so those runs averaged about 2.4 concurrent reads and took 44 to 55 s. The three clean strip runs took 11.1, 14.1 and 18.5 s. 640 concurrent lookups through the system resolver all succeeded; the investigation below found that strips do not make more lookups.
The DNS failures were then reproduced and instrumented on a small scale (SCL reads of the same month, 16 threads, curl verbose log), not with more full runs. Strips do not make more lookups: per run they made 32 fresh connection attempts and reused 54 connections, against 40 and 20 for the whole grid, because GDAL keeps connections per thread across reopens; in 17 alternating repetitions of each, the only failure was in a whole-grid run, at the start, while 16 threads resolved the host with an empty cache. The host is a CNAME chain through Azure Traffic Manager with TTLs of 7 and 17 s, so long runs resolve it cold many times; 144 concurrent lookups through the system resolver at expired TTLs all succeeded, so what fails first is not established. What made the failures expensive is established: libcurl 8.16 to 8.21 caches a failed name resolve, transient or not, for half of its 60 s DNS cache timeout (curl documentation of CURLOPT_DNS_CACHE_TIMEOUT), rasterio 1.5 bundles libcurl 8.17.0, and GDAL keeps one connection cache per thread, where the retry runs. The three reads of the failing run kept failing on attempts 1, 3 and 4 over about 40 s while other threads read the same host, and every failure counted against the request limit. A resolve failure now waits 31 s before its retry and does not lower the limit (#90). With 3 of 6 strip runs and 0 of 8 others failing (Fisher p about 0.05) and no mechanism tying strips to lookups, the failures are not attributed to strips.
Encode. On the 117 Ucayali months on disk (legacy .npz), PR #90's encode stacked all months: 30.5 s and 10.2 GB peak RSS. The lazy reader took 56.6 s and 3.3 GB, of which 29.9 s copied the legacy months to temporary GeoTIFFs one at a time (months written by the new pipeline skip that). The two stores are equal in every value of every level, time step, band and coverage. What remained is chronozarr's own encoder, which held a cell of every time step in flight; #99 walks unsharded stores in time slabs of about 64 MiB per cell. With it, the same 117 months encode at 1.34 GB peak RSS (32.6 s for the encode step), and the stores from PR #90, from the lazy reader and from the lazy reader with slabs are byte-identical in all 11,574 files.
Integration check (2026-10-12)
main (82b4e6b) with #99, #97 (containing #95 and #90) and #96 merged, no conflicts in any order. CI on that tree (branch integ/final-merge-check) passed every job, and locally the unit tests passed on Python 3.13 (1186, rasterio 1.5) and 3.11 (1185 plus 1 skipped, rasterio 1.4.4).
- Real data (
bench/s2-ingest/e2e_check.py, two months across the UTM 18/19 boundary, all 11 scenes warped): the whole grid equals 512-row strips at another concurrency (bands, counts, month digest, carry-forward chain); no pixel counts a scene that an SCL-only pyproj count excludes (10 of 1.24 million count fewer, where a band is 0); stores encoded in default, one and one-timestep time slabs are byte-identical, with coverage equal to the counts. - Lab server, against #90 (
eb61343), median of 3: native workloads bit-exact; 20 scenes 1.60 s against 2.87 s (2.45 against 3.29 GB), 4 months 3.02 against 5.86 s, 5 km box 0.30 against 0.32 s; with 2 % random 503s every run bit-exact with no scene failed; the all-warped month 6.37 against 3.98 s, the cost of exact SCL inclusion. - Docker: 2 CPUs and 2 GB, 3 strips, 7.3 s, peak RSS 0.89 GiB of a 1.44 GiB budget (#90 refuses); 1 CPU and 1.5 GB, 6 strips, 16.4 s, 0.70 of 1.06 GiB; warp month with 2 CPUs, 22.2 s, 0.92 of 1.46 GiB; 4 months with 1 CPU, 30.5 s, 1.17 of 1.46 GiB.
- Encoding 1024 x 1024 x 4 GeoTIFF months through the lazy reader, peak RSS at 60, 120 and 240 months: 626, 654 and 825 MiB in time slabs; 889, 1668 and 2693 MiB in one slab; 921, 1572 and 2838 MiB sharded (
shard_time12), so sharded encoding still grows with the length of the series.
Tried and not kept
GDAL_NUM_THREADSof 2 or more on a partial window: GDAL fetches the needed tiles in one multi-range batch, 22 % fewer bytes (486 against 595 MB, 184 against 386 requests on the 6-scene Yukon month) but 30 to 45 % longer wall time at 8 concurrent reads on the home link. GDAL stays at its default of 1.CPL_VSIL_CURL_USE_HEAD=NO: the HEAD becomes a GET, so the request count does not change.- Climbing above 16 reads by default: no net gain on the home link (see above).
- A larger GDAL download cache (
CPL_VSIL_CURL_CACHE_SIZE256 MB and 1 GB) so that strips reuse the source blocks their edges cut: 1333 instead of 1348 MB on 512-row strips. Not kept. - GDAL's exact transformer (
tolerance=0) for warps, which would allow windows narrower than the AOI: 5.5 times the warp CPU. Not kept; strips span the full width. - An early sweep on the home link (24 asset reads, 4 to 32 workers, 2 repetitions) showed no effect of concurrency, 11 to 18 MB/s. The interleaved runs above, with 3 repetitions per cell over two sessions, consistently favoured 16 over 4.
Remaining opportunities
| Opportunity | Evidence | Effort |
|---|---|---|
| Split one large window into stripes read in parallel, for months with few scenes | one 90 MB read: 10.6 and 11.6 s whole, 7.8 and 9.9 s in 4 stripes; Yukon slots were 46 % busy with 2 scenes | half a day, plus a bit-exact check of the stitched read |
Multi-range fetch (GDAL_NUM_THREADS >= 2) on metered or capped links | 22 % fewer bytes, slower here | a flag and one measurement on a capped link |
reproject(num_threads=...) on the warp path | the warp path is the slowest workload; GDAL's multithreaded warp splits the output into chunks, so equality with the single-threaded warp must be checked | a few hours with the existing equality test |
| Several writer threads | the single .npz writer caps a fast link at about 75 months per minute at Ucayali size | an hour |
| Benchmarks on a second machine, a Linux HPC node and a cloud VM | only this laptop has been measured | bench.py runs unchanged |
| Single-band and other band sets | the pipeline reads B02, B03, B04, B08 and SCL only, so the harness has no single-band case | depends on making the band list a parameter |