Earth Compress benchmark

Tolerance

Near-lossless and lossy runs use three error bounds for each eligible corpus. The ERA5 corpora also have expert recommended bounds where the mode supports them.

A near-lossless configuration declares tau as the largest absolute error allowed for any element, in the sample's native units. A lossy configuration uses the same tau as the largest allowed root-mean-square error for the sample. The three levels let us compare configurations on a corpus at the same bound. These are benchmark settings, not recommendations for scientific use. PROTOCOL.md v1.0 defines how the bound is checked.

1. The rule

We use a reference error, sigma, to set the three bounds. Depending on the product, it comes from instrument noise, retrieval error or model spread. For Sentinel-2 L1C at 10 m, sigma is about 10 DN of noise per pixel. The bounds are 2, 10 and 40 DN after rounding to whole DN.

level tau s2-l1c-10m-4 error on a 2,000 DN pixel relative to the noise
conservative sigma / 4 2 DN 0.1% well below it
matched sigma 10 DN 0.5% equal to it
aggressive 4 · sigma 40 DN 2% four times larger

If compression error is independent of the existing random error and has no overall bias, their mean squared errors add. Even if every compression error reaches tau in magnitude, the array's root-mean-square error could rise by up to about 3% at conservative or 41% at matched. These percentages describe the array, not individual elements. They also apply in lossy mode, where tau bounds the root-mean-square error itself. The factors 1/4, 1 and 4 are choices for this benchmark.

For integer corpora, we round each bound down to a multiple of the largest scale in the corpus. scale is the value of one stored integer step. In the Sentinel-2 example, sigma / 4 is 2.5 DN and rounds to 2 DN. A bound below one step rounds to zero. The lossless result stands for it. Floating-point bounds use tau as shown.

sigma approximates the standard deviation of random error at a typical element. We leave out offsets and errors shared by neighbouring elements when the source lets us distinguish them. We choose sigma in this order.

  1. A producer value for the same quantity and time step. For instruments we use noise measured in orbit at a typical signal. For reanalyses we use ensemble spread, and for retrievals the reported random error per element.
  2. If the producer has no such value, a standard's uncertainty requirement for the same measurement, converted to one standard deviation.
  3. Otherwise, an estimate from the corpus samples.

For multiband corpora, sigma is a typical value across bands. Noise can also vary with signal level, so sigma does not describe every element.

2. Budgets

tau is shown in native units. For integer corpora, parentheses give the number of stored steps at the largest scale. Zero means the bound rounds below one step.

corpus unit dtype scale sigma conservative matched aggressive
era5-tcc-1h fraction uint16 2^-15 0.09 0.022491455078125 (737) 0.089996337890625 (2949) 0.3599853515625 (11796)
era5-u10-1h m/s uint16 2^-10 0.3 0.07421875 (76) 0.2998046875 (307) 1.19921875 (1228)
era5-t2m-1h K uint16 2^-9 0.3 0.07421875 (38) 0.298828125 (153) 1.19921875 (614)
era5-msl-1h Pa uint16 2^-2 15 3.75 (15) 15 (60) 60 (240)
era5-tp-1h m uint16 2^-21 to 2^-19 5e-5 1.1444091796875e-05 (6) 4.9591064453125e-05 (26) 1.983642578125e-04 (104)
cop-dem-glo30 m float32 1 0.25 1 4
emit-l2a-285 reflectance float32 5e-4 1.25e-4 5e-4 2e-3
l8-oli-8 DN uint16 1 10 2 (2) 10 (10) 40 (40)
l8-oli-pan DN uint16 1 15 3 (3) 15 (15) 60 (60)
l8-tirs-2 DN uint16 1 20 5 (5) 20 (20) 80 (80)
s2-l1c-10m-4 DN uint16 1 10 2 (2) 10 (10) 40 (40)
s2-l1c-20m-6 DN uint16 1 7 1 (1) 7 (7) 28 (28)
s2-l1c-60m-3 DN uint16 1 2 0 2 (2) 8 (8)
imerg-pcp-12 mm/hr uint16 0.01 0.24 0.06 (6) 0.24 (24) 0.96 (96)
lm-mss-4 DN uint8 1 1 0 1 (1) 4 (4)
l5-tm-6 DN uint8 1 1 0 1 (1) 4 (4)
l5-tm-tir DN uint8 1 0.5 0 0 2 (2)
l7-etm-6 DN uint8 1 1 0 1 (1) 4 (4)
l7-etm-tir-2 DN uint8 1 0.5 0 0 2 (2)
l7-etm-pan DN uint8 1 1.5 0 1 (1) 6 (6)

Sources of sigma

The recommended level

For the ERA5 corpora, we add bounds recommended by ECMWF scientists in the community recommendations for safe lossy compression (Tyree et al. 2026, version 0.1.0b1). This is a fourth level where the mode supports it. It does not follow the rule of Section 1, so we report it separately.

corpus recommendation kind tau
era5-t2m-1h 0.01 K maximum per point 0.009765625 (5)
era5-msl-1h 1 Pa maximum per point 1 (4)
era5-u10-1h 0.001 m/s mean absolute 0.0009765625 (1)
era5-tcc-1h 0.05 mean absolute 0.04998779296875 (1638)
era5-tp-1h 1e-5 m mean absolute 9.5367431640625e-06 (5)

Two recommendations are maximum errors per point and apply as they stand. The other three bound the mean absolute error. Near-lossless needs a maximum, so we apply them as a maximum, which is stricter than the recommendation. Lossy applies them to the root-mean-square error, which is never below the mean absolute error, so it is stricter too. A root-mean-square bound cannot meet a maximum per point, so era5-t2m-1h and era5-msl-1h have no lossy recommended level. Each rounds down to whole steps of the largest scale, given in parentheses. At these bounds a codec may change little more than the GRIB packing of ERA5 already did.

3. Lossless-only corpora

These corpora have no budget, so they run in lossless mode only.

corpus reason
esa-wc-v200 Land-cover class codes are unordered, so 95 is mangrove and 100 is moss. An error of one gives a different class.
tessera-v2-codes Embedding codes. The effect of an error on downstream tasks is not measured.
tessera-v2-scales A scale error multiplies all 128 dimensions of a pixel. The effect on downstream tasks is not measured.
alphaearth-v1-64 Embedding codes. No error budget is specified.
clay-embeddings Embeddings. The effect of an error on downstream tasks is not measured.
goes-abi-16 Each band has its own scale and mixes reflectance factor with brightness temperature, so one budget in native units does not apply to the whole array.
s1-grd-iw-2 No per-element uncertainty of the linear backscatter is established.

4. Limits of these budgets

The bounds compare compression error with a reference error. They do not measure its effect on an analysis.

Compression error can be correlated with the signal, even when it is smaller than the noise. A derived quantity can also amplify it. A 10 DN bound on two similar reflectance bands allows a larger relative error in their normalised difference than in either band. A 1 m bound on DEM pixels allows up to 2 m of error in the height difference between neighbours.

For precipitation, a small change can turn light rain into zero. In the IMERG corpus, 41.0 million of 47.2 million cells are exact zeros. Among the 6.2 million rainy cells, 952,771, or 15%, have 0.06 mm/hr or less. A codec meeting the conservative bound of 0.06 mm/hr could still decode any of them as zero. The zero promise preserves input zeros, but not light rain. Lossy mode does not promise zeros and only reports the ones it changes.

A lossy bound limits the error of the sample, not of each element. A codec can meet it while missing a few elements, such as the peaks of a rain field, by many times tau. Lossy results therefore report the maximum error beside the ratio.

For a particular pipeline, compare its outputs before and after compression. Section 9 of PROTOCOL.md gives examples of such checks.

References