Articles | Volume 19, issue 22
https://doi.org/10.5194/gmd-19-11265-2026
https://doi.org/10.5194/gmd-19-11265-2026
Development and technical paper
 | 
25 Nov 2026
Development and technical paper |  | 25 Nov 2026

Compression Safeguards: building trust into lossy data compression

Juniper Tyree, Robert Underwood, Clément Bouvier, Daniel Köhler, Tim Reichelt, Peter Dueben, Sara Faghih-Naini, Heikki Järvinen, and Milan Klöwer
Abstract

The growth in data volumes produced by scientific models is accelerating. Data production of high-resolution weather and climate models is outpacing the methods and budgets for storing, sharing, and analysing this data, posing a threat to scientific progress. Lossy data compression greatly reduces data sizes but loses some quality, detail, or precision of the original data. Even though some lossy compressors promise size reductions of 100× or more, the lack of trust in lossy compression, rooted in the risk of losing important information, has thus far limited their adoption. We introduce Compression Safeguards, a user-centric and domain-independent framework to overcome this trust gap, with which (i) scientists declare their precise safety requirements for what lossy compression must preserve, e.g. regionally varying error bounds on quantities derived from the decompressed data, then (ii) wrap a compressor of their choice in the corresponding safeguards, which then (iii) guarantee that the user-declared safety requirements are always met by the safeguarded compressor. The Compression Safeguards represent a paradigm shift: Data producers and users no longer carry the risks of lossy compression, having to manually check for problems after compression, but instead control up-front what needs to be safeguarded. With the appropriate application-specific safeguards, trust can grow in all lossy compressors and even untrusted, potentially unsafe compressors can be used safely and with confidence. Users thus no longer need to re-verify each new compressor for each new use case, or to restrict themselves to few safe compressors and supported use cases. We showcase how our reference implementation of the Compression Safeguards can be flexibly applied to safeguard important properties across several real-world examples from weather and climate sciences for different compressors. The cost of the Safeguards is a reduced compression throughput, significantly when safeguarding complex safety requirements, and lower compression ratios if the Safeguards have to correct the decompressed data to uphold its safety. There is only minor overhead during decompression. Altogether, Compression Safeguards provide a key modular tool that gives users the confidence to use lossy compression safely across scientific disciplines. Safeguards can unlock the data reduction benefits of lossy compression and therefore solve many data storage problems across the scientific community that otherwise hinder research.

Share
1 Introduction

The data volumes produced by scientific simulations are increasing rapidly (ECMWF, 2019) as computational resources have grown with industrial, societal, and scientific demand. For example, weather and climate models have grown in resolution and scope (Stevens et al., 2019; Rackow et al., 2025; Segura et al., 2025; Hadade et al., 2025). However, methodological improvements and stagnating budgets for data storage, access, sharing, and analysis have not kept up with the typical exponential data growth (Baker et al., 2014; Kunkel et al., 2014; Hart, 2017; Peters-von Gehlen et al., 2025), especially as storage costs have increased. As the catastrophic impacts of extreme weather and climate are becoming increasingly apparent (Intergovernmental Panel on Climate Change (IPCC), 2023), the societal demand for better and higher-resolution models, which produce even more data, will grow further. Tackling this data volume challenge by reducing data storage requirements, transfer, and processing costs at every step is thus an important task in supporting and unblocking research and operations in weather, climate, and many other fields.

Data compression methods reduce the space required to store data. Lossless compression methods reproduce the bitwise equivalent data during decompression, but no longer provide sufficiently high compression factors to handle the growth in scientific data (Baker et al., 2014, 2016). Lossy data reduction can produce higher compression factors by only reproducing an approximation, where some information from the original data has been lost. Lossy compressors can be based on methods such as rounding, sampling, dimensionality reduction, model fitting, and more. Despite continuing advances in lossy data compression that promise compression ratios of 100× (e.g., Liu et al., 2024; Huang et al., 2025; Han et al., 2026) or even 1000× (e.g., Huang and Hoefler, 2023; Mirowski et al., 2024; Liu et al., 2024), lossy compression has not been widely taken up by the weather and climate modelling community (Hammerling et al., 2019; Baker et al., 2016; Tintó Prims et al., 2024) or generally across the computational sciences. Most importantly, the fear of losing information that may be relevant in a later analysis or application of the data has been blocking its adoption (Baker et al., 2014). For instance, there is concern that lossy compression may systematically distort the data, e.g. by smoothing out extreme weather events or violating the conservation of some derived quantities (Baker et al., 2016). The failure to adopt lossy compression for model outputs because of these concerns and the broader lack of trust is already hindering crucial scientific research: As scientific computing is pushing against storage limits, e.g. with high-resolution Earth system modelling projects such as the Destination Earth Climate Change Adaptation Digital Twin (Hadade et al., 2025), model outputs instead have to be quickly downscaled or discarded (Klocke et al., 2025; Cappello et al., 2025).

Many lossy compressors are error-bounded and allow limiting the error introduced by lossy compression. While most scientific compressors support bounding the pointwise error (e.g., Lindstrom, 2014; Delaunay et al., 2019; Liang et al., 2023; Huang et al., 2025; Li et al., 2023; Fallin and Burtscher, 2024; Liang et al., 2022), either directly or by first approximating and then correcting errors through encoding residuals or outliers, others are designed for reducing global errors (e.g., Christopoulos et al., 2000; Seitola et al., 2014; Li et al., 2023; Ballester-Ripoll et al., 2020; Liang et al., 2022). There have also been several efforts to establish and discuss criteria for which levels of compression error can be tolerated without losing important information (e.g., Klöwer et al., 2021; Baker et al., 2024, 2017; Cappello et al., 2025; Baker et al., 2014, 2016; Tintó Prims et al., 2024; Reichelt et al., 2026; Poppick et al., 2020; Baker, 2021; Huang et al., 2023; Sather et al., 2022; Pinard et al., 2021b, a). However, the large variety in Earth system data and their downstream applications creates complex and diverse safety requirements that often go beyond unified, simple error bounds (Cappello et al., 2025; Huang et al., 2023).

For some safety requirements, e.g. preserving topology, several new specialised compressors (e.g., Soler et al., 2018; Yan et al., 2024; Agarwal et al., 2026; Fallin et al., 2026; Li et al., 2026) and some compressor-independent adaptors (e.g., Gorski et al., 2025) have been proposed. Even though such specialised approaches can provide high efficiency, they need significant effort from compression developers, do not cover all use cases, and often do not compose well to preserve several requirements, while still asking users to find and trust one specific compressor implementation. There have also been efforts to preserve arbitrary requirements across different compressors: The state-of-the-art QPET framework can preserve quantities f(x) derived from the data x (Liu et al., 2025) but requires tight integration with compressors, i.e. cannot be used with compressors for which specific software support has not yet been developed. The meta-compressor OptZConfig, in contrast, can wrap around any compressor to tune its configuration to uphold any safety requirement, but would need to fall back to lossless compression if no suitable configuration can be found (Underwood et al., 2022), e.g. because the compressor does not preserve missing values.

Altogether, there is currently no user-centric mechanism that (i) allows scientific users to formally specify their diverse safety requirements, (ii) ensures that all of these requirements are consistently enforced simultaneously (Cappello et al., 2025), (iii) works with any compressor without requiring tight software integration, all (iv) without falling back to globally-lossless compression. In practice, users themselves have to take on the risks of lossy compression. Data producers and users are often advised to always manually verify that lossy compression has not violated important properties of their data (e.g., Reichelt et al., 2026). This approach is time-consuming, consequently only applied to data samples in practice and therefore error-prone, particularly around edge cases, and does not foster confidence in the reliability of lossy compression. In particular, trust is typically only gained with one compressor and in one configuration – changing either and the user is required to repeat the verification. Without a reliable mechanism to automatically uphold safety requirements across different compressors and datasets, trust in lossy compression naturally remains limited within the scientific community, which hinders its adoption.

To address this trust gap, we introduce Compression Safeguards – a user-focused framework designed to enforce user-defined safety requirements and build trust in safe lossy compression. Instead of proposing yet another compressor or requiring users to learn about, check, and trust each new compressor, the Compression Safeguards are fully general: They require no integration and thus work with any current and future compressor, with any type of data, in any scientific domain, allowing users to configure their Safeguards once and then benefit from improvements in future compressors without needing to configure or check again. With Compression Safeguards, users can declare any composition of safety requirements, such as simple pointwise error bounds, complex regional quantities of interest such as preserving the wind divergence inside a hurricane, or global requirements. These requirements are automatically checked for violations after compression and re-established if necessary by producing per-point corrections. Instead of requiring trust in the complex compressor or the complex method for correcting violations, the Safeguards, like QPET (Liu et al., 2025), check again to verify their own corrections, thereby guaranteeing that neither safety bugs in the compressor (e.g., Fallin and Burtscher, 2024; Reichelt et al., 2026) nor the corrections can slip through. Compression Safeguards build on the well-established concept of first lossily approximating data before correcting violations (e.g., Liang et al., 2023; Liu et al., 2025; Li et al., 2023; Ren et al., 2026; Li et al., 2026; Fallin et al., 2026; Huang et al., 2025) but provide novel flexibility in fully generalising the concept by (1) delegating approximation to the lossy compressor and (2) producing corrections in a standardised format that (3) supports different implementations and (4) can protect any safety requirement. In short, the Safeguards provide hard guarantees that end users can rely on: they guarantee that user-declared safety requirements are upheld, have a simplified, consistent, and cross-compressor-reusable protect surface that builds trust, and are compatible with any compressor. Even compressors that are not error bounded can be used safely with Safeguards – an especially important application as increasingly many modern lossy compression methods are based on neural networks (e.g., Huang and Hoefler, 2023; Mirowski et al., 2024; Han et al., 2026), which are inherently more difficult to validate and trust. We see Compression Safeguards as a necessary paradigm shift to address the understandable lack of trust in lossy compression that exists as a psychological problem throughout the computational science community.

The Compression Safeguards are designed to be always used, just like a car seat belt: They incur only minimal overhead in storage and time if no corrections are needed, but automatically intervene to restore the user's safety requirements when necessary. We imagine Safeguards to become a new default component in modular lossy compression pipelines (e.g., Liang et al., 2023). These pipelines may consist of the following components: preprocessing using meta-compressors, tuning error bounds (e.g., Liu et al., 2025), lossy approximation (e.g., Delaunay et al., 2019; Liang et al., 2023; Li et al., 2023; Lindstrom, 2014), safeguarding (ours), lossless compression of the approximation and any corrections, and full-stack optimisation of this pipeline (e.g., Underwood et al., 2022). With such a modular design, the responsibility for highly efficient and safe lossy compression is divided: The responsibility of the compressor is to provide high compression ratios, even if safety requirements are sometimes violated. The responsibility of the Safeguards is to guarantee arbitrary safety requirements, ideally only having to produce corrections rarely. Duplicate implementation work is thereby reduced across the ecosystem, and users are empowered to switch out individual modular components depending on availability or other data production constraints.

To enable the adoption of safeguarded lossy compression, we provide the compression-safeguards reference implementation, an open-source cross-platform Python package, which supports composing different safety requirements, works with any compressor, supports novel non-pointwise safety requirements, and produces corrections that do not simply revert to lossless compression. Our implementation works best with gridded integer or floating-point data but can also be repurposed for unstructured and categorical data, e.g. integer-encoded time series data with missing values. We have also created two user-facing frontends, i.e. easy-to-use interfaces for the compression-safeguards for specific use cases: numcodecs-safeguards and xarray-safeguards integrate with the popular numcodecs compression application programming interface (API) (Zarr developers, 2025) and the xarray ecosystem for labelled multidimensional and chunked data (Hoyer and Hamman, 2017), respectively. All packages are published to the Python Package Index (PyPI).

In this manuscript, we present the Compression Safeguards for (a) scientists who would work with compressed data and require confidence that lossy compression does not hinder their research, (b) producers of scientific data who would apply Safeguards when compressing the data, and (c) developers of compression algorithms. Since not all sections may be relevant to every reader, we mark which are focused on data-users [U], data-producers [P], and technical details [T]. In particular, we

  • introduce the Compression Safeguards Framework in Sect. 2 [U, P, T],

  • present the compression-safeguards reference implementation in Sect. 3 [T] and its data-producer-facing frontends in Sect. 3.5 and 3.6 [P],

  • compare the compression-safeguards with prior work in Sect. 4 [P, T],

  • evaluate safeguarding different lossy compressors for several real-world, primarily weather and climate use cases in Sect. 5 and Appendix B [U, P], including their (de)compression speed in Sect. 5.7 and 5.8 [P, T],

  • discuss the results of the evaluation in Sect. 6 [U, P, T], and

  • conclude in Sect. 7 [U, P, T] that the Compression Safeguards are a key modular component towards safe, trusted, and fearless lossy compression, while also outlining where there is need for future work.

The compression-safeguards reference implementation (Tyree et al., 2026c) has a continuously updated online documentation (Tyree et al., 2026a) with additional examples and analyses.

2 The Compression Safeguards Framework

Compression Safeguards enable users to declare their safety requirements for lossy compression and guarantee that they will be upheld. We distinguish between the abstract concept of the Safeguards, which we refer to as the Compression Safeguards Framework, and specific implementations of this framework. While this section introduces the abstract framework in detail, Sect. 3 presents our compression-safeguards reference implementation and its user-facing frontends.

The fundamental idea of the Compression Safeguards Framework is (i) to automate the process of checking user safety requirements and (ii) to produce portable pointwise binary corrections that are applied to the lossy-decompressed data to re-establish any violated requirements. To verify and guarantee that the produced corrections are safe, the corrections are automatically re-checked. So long as the checks correctly represent the user's intended requirements, trusting the Compression Safeguards Framework therefore does not require trust in the compressor or how corrections are produced.

The Compression Safeguards Framework is designed to be implementation-independent and work with any digital data format in any domain. It supports floating-point arrays of regularly spaced dimensions as well as integer or categorical data on unstructured grids or dimensions. While lossy compressors typically rely on ordinal data to formulate an approximation, this is not a requirement for the Safeguards framework per se. The framework only specifies the interoperable format of the pointwise binary corrections and how to apply them. This limited specification allows different implementations of the Compression Safeguards to co-exist and explore different use cases, strategies, and trade-offs for producing corrections, while also ensuring that users can read safeguarded data produced by any implementation. Having an interoperable format additionally opens up a future where popular data formats like HDF5 (The HDF Group, 2025) or Zarr (Miles et al., 2025) could support applying such corrections transparently at decompression time. Data-users could then read safeguarded lossy compressed data, e.g. produced by weather forecasting centres using different implementations of the Safeguards, without needing to use custom software or interact with the Safeguards directly.

2.1 What is a safeguard?

Each safeguard represents a user-provided safety requirement. It combines

  1. a declarative specification of the safety requirement,

  2. a procedure to check if this requirement is met for some decompressed approximation x^ relative to the original data x, and

  3. a safeguard- and implementation-specific procedure to compute the corrected data x̃ that fulfils the requirement.

A binary correction b̃ is derived from this corrected data x̃. This correction b̃ can later be applied to the approximation x^ to correct it and reproduce the corrected data x̃. Importantly, while the approximation may not meet the safety requirements, the corrected data is guaranteed to satisfy them.

Safety requirements of arbitrary complexity can be expressed as safeguards. For instance, a simple pointwise absolute error bound safeguard over finite data can be specified as |x^i-xi|≤ϵabs for all indices i.

2.2 Meta-compression with safeguards

Meta-compressors are compressor adaptors that wrap one or more internal compressors, allowing their functionality to be extended or combined (Alted, 2010; Underwood et al., 2021). The Compression Safeguards Framework can be used in a meta-compressor to construct a safeguarded compressor wherein one or more safeguards are wrapped around some compressor to guarantee that the user's safety requirements are always satisfied. Since the Safeguards are designed to be compressor-independent, they do not automatically know whether the inner compressor provides any safety guarantees itself, and users have to manually inform the Safeguards about these requirements to ensure that the Safeguards know to uphold them.

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f01

Figure 1Overview of the dataflow in a safeguarded compressor, which guarantees that the user's safety requirements are upheld by an arbitrary compressor. During compression, the corrections for the decompressed data are produced and validated, and then later applied during decompression to correct the decompressed data. In the provided example on the left, the compressor hallucinates values for missing data, and the Safeguards remove these hallucinations.

An overview of the meta-compression process is shown in Fig. 1. At compression time, a safeguarded compressor requires additional computation: the data x is first compressed, then decompressed to produce the approximation x^, corrected if necessary, and finally checked again to validate the corrections. The corrections need to be already computed during compression when the original data is still known. At decompression time, the corrections can be cheaply applied without any knowledge of how they were computed.

The Compression Safeguards Framework does not specify whether or how the compressed data and the corrections should be stored together. This flexibility allows the framework to be adopted both ad hoc, when compressing new data with Safeguards, or post hoc, when computing corrections for data that had been compressed before. Post hoc safeguarding is possible as long as the original uncompressed data can still be accessed while computing the corrections. These corrections can then be stored and distributed as a separate file, and later applied after decompression, all without having to modify the compressed data. The corrections file should ideally have metadata to identify which original data it applies to and to guard against accidentally trying to apply corrections to different data. Importantly, storing corrections separately ensures that the unsafeguarded data can still be accessed directly whenever the safety requirements do not need to be satisfied. Furthermore, separate storage would also allow the Safeguards to be integrated with Magri and Lindstrom (2024)'s progressive decompression framework, which allows users to choose data accuracy during decompression.

2.3 Implementation-agnostic and hardware-portable corrections

This technical section defines the interoperable binary format of the corrections. Given the approximation x^ and corrected data x̃, which may be integer or floating-point, the corrections b̃ are stored in the following binary format, indexed with i:

(1) b ̃ i = as_bits ( x ̃ i ) - as_bits ( x ^ i )

where the as_bits function converts from the data's original type to its binary unsigned integer representation, the binary difference is computed using wrapping unsigned integer subtraction. Importantly, b̃ is pointwise for each element in x^ and has the same n-dimensional shape as the original data x.

The binary correction can later be applied to the approximation to reproduce the corrected data, which only requires a pointwise wrapping unsigned integer addition per data point:

(2) x ̃ i = from_bits ( as_bits ( x ^ i ) + b ̃ i )

where the from_bits function converts the binary representation back to the data's original type. Since the Compression Safeguards define their corrections with respect to the binary representation of the data, they can be applied to any data format, from gridded floating-point to unstructured categorical, and can correct for any type of safety requirement, whether local, regional, or global. Furthermore, this pointwise fixed-length binary format also naturally supports random-access.

Why is the correction encoded as a binary difference? For integer data, the binary difference is bitwise equivalent to the integer difference. For floating-point data, conversely, the binary difference is generally less concise since values with the same floating-point difference may have different binary differences, which increases the entropy of the corrections, thus decreasing their lossless compressibility. However, the difference between any two floating-point numbers cannot always be represented with the same precision, e.g. while (a-b)+b=a mathematically, in 16-bit IEEE 754-2008 floating-point arithmetic (IEEE, 2008), (0.00000006-0.0001222)+0.0001222=0.0000001≠0.00000006, which could cause safety requirements to be violated (Fallin and Burtscher, 2024). While using two floating-point additions, with special rules for propagating non-finite values, would be able to represent all differences, it would also double the correction's size footprint. Furthermore, some processors may flush subnormal floating-point values to zero and could thus cause two machines to apply the corrections differently. While linear quantisation provides an efficient encoding for absolute error bound corrections (e.g., Di and Cappello, 2016; Li et al., 2023), it cannot easily be extended to more complex safety requirements without needing to also store a per-point-varying absolute error bound (Liu et al., 2025). Using binary differences sidesteps all of these problems, prioritising hardware- and implementation-portable correctness, both in storage and when applying corrections, over a more compressible corrections format. Storing the pointwise binary corrections in addition to the lossy-compressed approximations will reduce the overall compression ratio, particularly if many unique corrections are needed. To reduce the storage overhead of the corrections, they should be compressed losslessly (Tao et al., 2017; Liang et al., 2023), e.g. by combining an entropy encoding and a lossless compressor such as Zstandard (Collet, 2021). To maintain random access to the corrections, their lossless compression should support partial decompression (e.g., Lindstrom et al., 2025). Often, more than one binary correction can re-establish the safety requirements, and implementations can choose to produce fewer unique corrections to reduce their entropy. In particular, data points that already fulfil the safety requirements should be left as-is, such that their correction is zero. If no corrections are required, i.e. all corrections are zero, corrections do not need to be stored at all.

Even with these remedies, in the worst case of incompressible unique corrections for every data point, corrections may take as much additional space as losslessly compressing the original data. While such a safeguarded compressor may not be efficient, it would still be safe; Sect. 5.7 discusses towards the end how such cases could be handled. If, in contrast, the lossy compressor is well-behaved and configured appropriately, only a few sparse corrections may be required, whose storage cost scales linearly. Safeguarded compressor configurations could even be tuned for higher combined compression ratios using existing compression optimisation frameworks such as OptZConfig (Underwood et al., 2022), all while avoiding the fear and optimisation complexity of violating the user's safety requirements. This trade-off between cheap approximate compression/prediction and costly corrections is the foundation of many existing error-bounded compressors like SZ and SZ3 (Di and Cappello, 2016; Zhao et al., 2021), SPERR (Li et al., 2023) and QPET (Liu et al., 2025), which use more specialised and less generally-applicable approaches than the Safeguards.

2.4 The printer problem in safeguarding lossy compression

The Compression Safeguards Framework needs to know about all safety requirements that should be upheld. For example, if the data is first safeguarded with an absolute error bound, and then later this safeguards-corrected data is safeguarded again with a relative error bound, the resulting data may violate the original absolute error bound. Even applying the same safeguard twice in a row can violate the guarantees. This is also known as the printer problem or generation loss (Reich and Heathcote, 2022): Every time a document is copied from a previously copied and printed document, new artefacts are added, and errors may accumulate over time. To avoid the printer problem, the Compression Safeguards must only be used on the original, uncompressed, and unsafeguarded reference data, and they must apply all safety requirements at once. When the safety requirements need to change after safeguarding, the Compression Safeguards must be applied again to the original and decompressed data to produce the new corrections. In the future, standardised metadata for lossy-compressed data could help with warning about such compression error accumulation. A prototype for guarding against the printer problem is implemented in the xarray-safeguards frontend (see Sect. 3.6). Additionally, future implementations of the Compression Safeguards framework could provide the additional guarantee that the accumulated error is bounded, as with rounding, linear quantisation, or ZFP (Fox et al., 2020).

3 The compression-safeguards Reference Implementation

We provide a reference implementation of the Compression Safeguards Framework, the compression-safeguards Python package. Its design was guided by our goal of providing a cross-platform portable implementation that allows different safety requirements to be combined arbitrarily while keeping the runtime cost predictable and limited.

The compression-safeguards package is published open-source under the Mozilla Public License 2.0 on GitHub (Tyree et al., 2026c) and PyPI (Tyree et al., 2026f). To be portable, the compression-safeguards are written in pure Python and only require six dependencies from the Python Package Index, of which only two need platform-specific wheels: numpy, (Harris et al., 2020) Python's fundamental package for scientific computing over n-dimensional arrays, which is vectorised to achieve data parallelism, and numpy-quaddtype for IEEE 754 128-bit quadruple precision floating point calculations. Future work could explore using the Python array API standard (Meurer et al., 2023) to support non-numpy array computation backends such as CuPy (Okuta et al., 2017) for CUDA-accelerated computations on NVIDIA GPUs.

We have also published two frontend packages to PyPI. The numcodecs-safeguards package (Tyree et al., 2026h) implements a meta-compressor for the numcodecs (Zarr developers, 2025) compression framework. The xarray-safeguards frontend (Tyree et al., 2026i) provides support for the xarray (Hoyer and Hamman, 2017) ecosystem for labelled multidimensional and chunked data, which enables parallelising the computation and application of corrections across multiple processors and machines. The documentation for the reference implementation and its frontends are published in Tyree et al. (2026a).

3.1 Composing multiple safeguards using safe intervals

Instead of providing specialised safeguards for each specific use case, the reference implementation provides basic building block safeguards, which can be composed using logical combinators to represent the user's diverse safety requirements. When computing the corrections for such a composed safeguard, care needs to be taken to ensure that the corrections from different sub-safeguards do not conflict with and invalidate each other. Since the number of possible combinations increases quickly when preserving multiple safety requirements, it is infeasible to support each combination with a custom correction algorithm. While fixed-point iteration could be used to find corrections that satisfy all requirements, the runtime cost of such an iterative approach would not be predictable.

Instead, the compression-safeguards implementation produces corrections in a chunking-friendly, communication-free, and iteration-free one-shot algorithm that uses safe intervals to represent and compose corrections from different safeguards. A safe per-point interval, li≤x̃i≤hi, specifies a continuous range of data values that all satisfy the safety requirements, from an inclusive lower bound l up to an inclusive upper bound u. In our reference implementation, each safeguard produces a union of safe intervals for each data point. These unions are more expressive than absolute error bounds and can represent exact, asymmetric, and disjoint value ranges, which allows producing better corrections. Since the original data x always fulfils all requirements, the union of safe intervals must always contain x. Multiple safeguards can be combined, without requiring explicit collaboration, by intersecting, unioning, or selecting between their unions of safe intervals. After the safe intervals from all safeguards have been combined via intersection, the corrected value is chosen from each data point's union of disjoint safe intervals. To reduce the entropy of the resulting binary corrections, the compression-safeguards implementation tries to choose fewer unique corrections with a HyperLogLog-inspired heuristic (Flajolet et al., 2007) that maximises the number of leading and trailing zero bits in the total order binary difference between the approximation and corrected value.

3.2 Preserving pointwise and stencil safety requirements

The compression-safeguards implementation can preserve a variety of safety requirements. Pointwise requirements are checked independently for each data point and can directly be translated into pointwise safe intervals. For example, a pointwise maximum absolute error bound xi-x^i≤ϵabs can be transformed into the equivalent safe interval (xi-ϵabs)≤x^i≤(xi+ϵabs). The compression-safeguards implementation currently support the following pointwise safeguards that bound the error over the data x for all indices i:

  1. maximum absolute error: (xi-ϵabs)≤x^i≤(xi+ϵabs) for ϵabs≥0.

  2. maximum relative error: (xi-ϵrel⋅|xi|)≤x^i≤(xi+ϵrel⋅|xi|) for ϵrel≥0.

  3. maximum ratio error: min(xi/ϵratio,xi⋅ϵratio)≤x^i≤max(xi⋅ϵratio,xi/ϵratio) for ϵratio≥1.

    The ratio error bound is sometimes also known as a decimal error bound, where ϵdecimal=log 10(ϵratio).

The error over a pointwise derived quantity of interest (QoI) f(x) can similarly be bounded (see Sect. 3.4). Additionally, the compression-safeguards implementation also has safeguards to preserve a specific value c inclusively, (xi=c)→(x^i=c), or exclusively, (xi=c)↔(x^i=c), and to preserve the sign of the data, optionally relative to a zero-by-default isovalue.

Even for these simple safeguards, special care must be taken to handle edge cases correctly, e.g. floating-point rounding errors, non-finite values, and wrapping integer arithmetic (Fallin and Burtscher, 2024). The error-bounding safeguards always preserve infinite values with the same bit pattern, and can preserve NaN values with the same or with an arbitrary payload.

Some safety requirements are defined as a function over a small local neighbourhood around each data point in a regular grid. This neighbourhood is called a stencil, and it can be thought of as a window that moves over the data, e.g. to compute the data derivative using finite differences. Whereas each point is independent in pointwise safeguards, stencils may overlap, and so in stencil safeguards the points and their corrections are interdependent. Furthermore, the data's boundary conditions have to be taken into account to ensure that the requirements are correctly preserved, e.g. along a periodic axis. The compression-safeguards implementation provides stencil safeguards to preserve error bounds over user-defined derived quantities of interest f(x) over local neighbourhoods.

Producing pointwise-independent safe intervals for stencil safeguards results in suboptimal corrections, since satisfying a safety requirement without knowing how the neighbouring points will be corrected requires conservatively restricting all corrections. For instance, an affine transformation such as x^=3x+1 preserves the monotonicity of the input but this cannot be represented by safe intervals. An implementation of the Compression Safeguards Framework that uses different strategies, such as incremental (e.g., Jiao et al., 2022) or iterative corrections, may be able to produce less pessimistic corrections and higher compression ratios. We explore iterative and incremental corrections in Sect. 5.7 and Appendix B9, respectively.

3.3 Logical and regional compositions of safeguards

Users may have regionally varying safety requirements that are stricter in areas with important domain-specific features, e.g., around local extrema or critical points. In the compression-safeguards implementation, safeguards can be made regionally-varying using late-bound constant parameters. When declaring their safety requirements during the one-time data-independent safeguard configuration, users only need to provide the name of a late-bound parameter but not yet its value. The values of all late-bound parameters only have to be provided when later computing the corrections for some specific data, allowing these values to be data-dependent, e.g. the data's coordinates or a mask. These late-bound parameter values are treated as constant.

The error-bounding safeguards can be configured with a late-bound error bound array, such that the error bound can vary arbitrarily per-point across the data domain. Furthermore, the value-preserving and sign-preserving safeguards allow their sentinel/isovalue to be late-bound. Late-bound parameters can also be used in a logical select combinator, which takes a late-bound index array to select, per point, which of a collection of combined-over safeguards must fulfil its requirements for this point. The select combinator can be used to represent a discrete set of regions of interest.

The compression-safeguards implementation also provides an “any” combinator for logical disjunctions over multiple safeguards, an “all” combinator for logical conjunctions, and an assumed-safe safeguard. Intuitively, for each data point, at least one safeguard in the any combinator must fulfil its requirements, whereas all safeguards must fulfil their requirements in the all combinator. While the “all” combinator directly maps to the intersection of safe intervals, the “any” combinator over non-pointwise safeguards is not equivalent to the pointwise union. For the assumed-safe combinator, every data point is assumed to be safe, which can be used together with the select combinator to apply some safeguard only in particular regions of interest.

The logical any, all, and select combinators can combine over both pointwise and stencil safeguards, e.g. to preserve isosurfaces and gradients inside a hurricane. They are themselves pointwise if they only combine over pointwise safeguards. When the combinators combine over stencil safeguards, the influence of every point is explicitly tracked since a failure of the per-point check may be related to any data point in the stencil, and equivalently, one data point correction can impact all neighbouring points in whose stencils it is.

3.4 Safeguards for derived quantities of interest

Derived quantities of interest (QoIs) refer to domain- and use-case-specific functions f(x) that are computed over the data x. The compression-safeguards implementation can preserve pointwise absolute, relative, and ratio error bounds over both pointwise and stencil QoIs. The error bounds are first translated into safe intervals over the evaluated QoI. This user-given quantity of interest, which is written in Python-like syntax, is then traversed as a symbolic expression tree to propagate the safe intervals. At each expression node, which represents a function g(a), the inverse function g−1 is applied to determine the safe intervals over a. For functions where no unique inverse exists, e.g. the periodic sin (a), the piecewise inverse is used instead. While periodic functions may produce a union of disjoint safe intervals, only one branch is currently followed to bound the runtime cost. For functions with several data-dependent parameters, e.g. a weighted sum, the flexibility in the safe intervals is distributed conservatively amongst all data-dependent parameters such that all possible combinations remain safe.

The quantities of interest are evaluated using numpy in a configurable floating-point data type that provides sufficient precision to losslessly represent all values of the data x, e.g. at least float64 for int32 data. Special care is taken to handle all edge cases correctly, including NaN, infinity, and −0.0. At each expression node, the propagated safe intervals are checked for these edge cases and possible rounding errors, followed by the final check of the corrections, to guarantee that the produced corrections are indeed safe. Since numpy does not guarantee correctly-rounded floating point operations, future work could investigate quantity of interest evaluation that is cross-platform reproducible.

The compression-safeguards implementation supports many novel quantity of interest features that are listed and compared with prior work in Table 2 in Sect. 4. For instance, they support forward/central/backwards finite differences of arbitrary order and with an arbitrary order of accuracy (Fornberg, 1988), over any axis on a regular grid, with a constant grid spacing or arbitrary constant gridpoint positions, and an optional grid period such as 360° longitude, even for chunked data. Furthermore, comparisons and logical combinators can be composed to preserve monotonic sequences or critical points and local order (Fallin et al., 2026) and to optionally limit requirements to dynamically identified regions of interest such as hurricanes. More broadly, different safeguards, regionally varying, with quantities of interest and late-bound constants, can be composed to describe and enforce many diverse safety requirements, or can often at least preserve a more conservative invariant, which makes the compression-safeguards more flexible and reusable than if it only supported specific safety requirements. The online documentation provides some general tips and tricks for composing these various features to translate safety requirements into safeguards (Tyree et al., 2026b).

3.5 The numcodecs-safeguards frontend

The numcodecs Python package defines a minimal interface for compressing n-dimensional arrays (Zarr developers, 2025). The numcodecs-safeguards frontend provides the SafeguardedCodec, a meta-compressor for the numcodecs API, which follows the data flow in Fig. 1 and works with any deterministic numcodecs-compatible codec. It produces one combined byte stream that includes the compressed data, the losslessly compressed corrections, and a checksum of the corrected data, which is used to guard against non-deterministic decompression that might invalidate the safety requirements. If no corrections are required, they are excluded from the output entirely.

Since the Compression Safeguards Framework does not prescribe how corrections should be losslessly compressed, the SafeguardedCodec provides a reasonable and overridable default: The corrections are first tokenised, then the most frequent correction is extracted into a bitmap, followed by a byte shuffle, and the resulting bytes are compressed with Zstandard (Collet, 2021). This pipeline is applied to the corrections or the 1D binary deltas over the corrections, depending on which produces better compression. In contrast to standard Huffman coding, these transformations are easily vectorisable and produce byte-aligned symbols that are well-suited for the byte-based Zstandard compressor.

The SafeguardedCodec extends the compression-safeguards by providing an experimental flag to iteratively reduce the one-shot corrections to improve compression ratios at the cost of extra compute time (see Sect. 5.5 and Appendix B6 and B7). In contrast to incremental corrections, which are briefly explored in Appendix B9, this iterative process does not compute new corrections but instead checks if some data points can safely skip their corrections. The SafeguardedCodec can also produce lossless corrections that reproduce the original data exactly, which may also be iteratively reduced.

Compression in numcodecs operates on unlabelled data without explicit support for data chunking, and numcodecs-based tools thus typically compress each chunk independently. Since only pointwise safety requirements can be preserved independently across chunks, chunked data should instead be compressed with the xarray-safeguards frontend.

3.6 The xarray-safeguards frontend for parallelisation over chunked data

Large datasets often no longer fit into a computer's working memory and are instead split into chunks such that computations can be distributed in time and across multiple processors and machines. The xarray-safeguards frontend expands the compression-safeguards to support parallelisation over chunked data by integrating with the xarray ecosystem (Hoyer and Hamman, 2017) for labelled multidimensional and chunked data. Unlike the SafeguardedCodec, the xarray-safeguards can safely produce per-chunk corrections even for non-pointwise stencil safeguards.

To avoid the need for synchronisation between the chunks, preserving stencil safeguards across chunk boundaries requires read-only access to data and approximation elements from adjacent chunks. Computing chunked corrections is, however, non-trivial since each data point is not only affected by the data values inside its local neighbourhood, but also by the safety requirements that all points inside this neighbourhood have and impose back on it. Therefore, computing the corrections for a chunk requires access to the stencils of the boundary points as well as all the neighbourhoods of the points in these stencils, which are likely outside the original chunk. For example, when safeguarding a second-order finite central difference, which uses a stencil of size [x-h;x+h], a double-stencil of size [x-2h;x+2h] is needed. This is further complicated when multiple safeguards are combined, all of which may use different stencils with different boundary conditions.

In contrast to the all-in-one ad-hoc high-level meta-compression API of the numcodecs-safeguards package, the xarray-safeguards provide a lower-level functional API where corrections are produced and applied lazily and data coordinates are automatically made available as auxiliary parameters. Corrections also remain separate from the compressed approximation such that the user can freely choose how to losslessly compress corrections and where and how to store them, e.g. in the same or a different dataset, using any data format of their choice. This makes the xarray-safeguards great for post hoc adoption of the Compression Safeguards: Corrections can be computed long after the original data was compressed – as long as the original data is still available – then distributed to users in separate files, which are then recombined at dataset-load time. Since the xarray-safeguards frontend works with labelled data arrays that support metadata, it also implements some simple protections against accidental occurrences of the printer problem, e.g. producing corrections for already-corrected data or without the original data (see Sect. 2.4).

4 The compression-safeguards in Comparison with Prior Work

The Compression Safeguards Framework follows the increasingly popular approach of correcting errors from an initial compression step, whether by storing smooth residuals (e.g., Huang et al., 2025) or by encoding outliers losslessly (e.g., Liang et al., 2023; Liu et al., 2025) or quantising errors (e.g., Liang et al., 2023; Li et al., 2023; Ren et al., 2026; Fallin et al., 2026).

We first briefly compare the Compression Safeguards with several methods that specialise on specific safety requirements. pMSz and FFCz both wrap existing compressors and iteratively produce post-hoc corrections, to preserve the Morse-Smale complex topological descriptor in pMSz (Li et al., 2026), and to preserve spatial and spectral error bounds using both spatial and spectral corrections in FFCz (Ren et al., 2026). LOPC is an integrated quantisation-based compressor that iteratively computes quantisation sub-bins to preserve topology via local order (Fallin et al., 2026). These three methods can be seen as three implementations of two safeguards, topology and spectral errors, which produce corrections in three application-specific non-general and incompatible formats that provide, for their specific safety requirement, better correction compression ratios. If the three were changed to output their corrections in the implementation-agnostic binary corrections format from Sect. 2.3, they could indeed be seen as three alternative implementations of the Compression Safeguards Framework, where each only supports its specific safety requirement. What sets our compression-safeguards reference implementation apart from the above methods is its support for novel and composable safety requirements, supported through near-arbitrary pointwise and stencil quantities of interest.

We now compare in Tables 1 and 2 the characteristics of the compression-safeguards reference implementation with QoI-SZ3, QPET, MGARD-QoI/ MGARD-λ, and OptZConfig, which showcase prior work on supporting non-specific safety requirements through quantities of interest.

Table 1Comparison of the characteristics of the compression-safeguards reference implementation and quantity-of-interest-aware error-bounded lossy compressors. The complexity is expressed in terms of evaluating a quantity of interest QoI over N elements in O(QoIN), while evaluation over a subset k for a number of iterations it takes O(QoIk)⋅it. The QoI's expression tree depth is denoted O(log O(QoI)). * OptZConfig can be manually extended to support arbitrary compressors, data domains, error norms, and quantities of interest. State-of-the-art capabilities are highlighted in bold.

Download Print Version | Download XLSX

Table 2 Supported features by quantity-of-interest-aware lossy compressors, QoI-SZ3, MGARD-QoI, and meta-compressors, QPET, OptZConfig, and the compression-safeguards. For each feature, the evaluation sections where the feature is used are listed. * OptZConfig can support arbitrary quantities of interest but requires the user to manually implement them, typically in C++. QoIs have to return a single scalar error metric, e.g. to describe whether the QoI is satisfied for all data points. Crucially, OptZConfig cannot guarantee that a safe configuration can be found, and safely using OptZConfig requires a possibly-external global lossless fallback.

Download Print Version | Download XLSX

QoI-SZ3 (Jiao et al., 2022) extends the SZ3 compressor by analytically deriving a priori per-point absolute data error bounds, which are passed to SZ3, that bound the absolute error over a derived quantity of interest. These per-point data error bounds have to be stored as part of the compressed data so that they can be used in SZ3's quantiser.

QoI-SZ3 supports quantities of interest that contain polynomials, logarithms, or square roots, and may also preserve regional averages as well as isosurfaces over the QoI (see Table 2).

QPET (Liu et al., 2025) is the successor to QoI-SZ3 and bounds the absolute or range-relative error over a derived quantity of interest. It derives approximate a priori per-point absolute data error bounds using the symbolic derivative over the quantity of interest, which are passed to the compressor. QPET can be coupled to existing compressors, e.g. in QPET-SZ and QPET-SPERR (see Sect. 5.2). In case the approximate data error bounds exceed the quantity of interest's error bound, QPET post-hoc losslessly encodes the outlier data points. QPET supports pointwise and blockwise quantities of interest that contain polynomials, exponentiation, logarithm, trigonometric and hyperbolic functions, but not their inverses, the sign and absolute value functions, as well as isosurfaces (see Table 2).

MGARD, Multi-Grid Adaptive Reduction of Data (Liang et al., 2022), is a lossy compression framework that recursively decomposes the data grid, using linear interpolation to approximate the residuals from coarser levels, until a user-chosen error bound for an arbitrary error norm is met. The MGARD-QoI variant (Ainsworth et al., 2019) can bound errors over those quantities of interest that can be expressed as bounded linear functionals, e.g. the arithmetic mean over the data, but not a non-linear function such as sin (x) or the percentage of points exceeding an error threshold (Baker et al., 2017; Underwood et al., 2022). The experimental MGARD-Lambda variant (Banerjee et al., 2022) additionally supports preserving those non-linear quantities of interest that can be converted into linear constraints under simplifying assumptions.

OptZConfig (Underwood et al., 2022) is a meta-compressor in the LibPressio compression framework (Underwood et al., 2021) that allows auto-tuning the a priori configuration of a lossy compressor via iterative black-box optimisation to target or preserve some metric. OptZConfig can optimise for any user-defined metric that produces a single scalar output, such as a specific compression ratio or quantity of interest, using a variety of efficiently parallelised search functions. While OptZConfig may sometimes produce higher compression than other approaches, it cannot guarantee that a safe configuration can be found, and would thus require a global lossless fallback.

A clear distinction of the Compression Safeguards is that they operate entirely based on post-processing after compression, which is treated as a black box and not manipulated by the Safeguards, whereas QoI-SZ3, QPET, MGARD-QoI, and OptZConfig all operate mainly before compression, typically to inject data error bounds, and thus require some level of integration and further fallbacks. While the aforementioned FFCz and pMSz are also post-hoc methods, they only support specific non-composable safety requirements.

Most of the above QoI-aware compressors support pointwise absolute error bounds, including over the quantities of interest, though MGARD-QoI and OptZConfig stand out for supporting arbitrary error norms. Similarly, while most QoI-aware compressors only support structured grids, or unstructured data packed into a 1D array, MGARD supports unstructured grids and OptZConfig can work with any data. The compression-safeguards implementation can handle unstructured 1D data when using only pointwise safeguards, but stencil safeguards still require a structured grid to define their local neighbourhoods.

The compression-safeguards implementation of quantities of interest builds on the symbolic analysis of QoIs as expression trees in QoI-SZ3 and QPET. QPET and the compression-safeguards both combine symbolic and numeric analysis of the quantity of interest and guarantee correctness using corrections. In contrast, QoI-SZ3 and MGARD-QoI only provide symbolic correctness, which may be violated through inaccurate floating-point arithmetic, and OptZConfig does not guarantee safety. While QoI-SZ3 and QPET derive symmetric data error bounds, with QPET correcting outliers losslessly, the compression-safeguards produce asymmetric safe intervals from which non-lossless corrections are chosen. All QoI-aware compressors support at least pointwise quantities of interest. QoI-SZ3 and QPET support multi-variable compression out of the box, but OptZConfig and the compression-safeguards require multiple variables to be stacked into one array. While QoI-SZ3 and QPET support block means over a quantity of interest, the compression-safeguards provide the more expressive moving window stencil safeguards.

In terms of complexity and runtime cost, QPET is expected to be more efficient than QoI-SZ3 and the compression-safeguards since the combination of a small number of compression iterations with lossless outlier correction is often faster than propagating error bounds through a quantity of interest. For the compression-safeguards implementation, the complexity comes primarily from having to evaluate the quantity of interest at each node of the expression tree to guarantee that numeric rounding errors do not cause violations of the error bounds.

Like OptZConfig, the Compression Safeguards are an end-user-focused solution that is compatible with any compressor and works across domains. Overall, the black-box optimiser OptZConfig provide the greatest flexibility for the end-user, as any data with any quantity of interest can be preserved for any compressor, so long as it is able to find a safe compressor configuration, which may be impossible if the wrapped compressor cannot be configured to provide lossless compression, e.g. with a zero error bound. However, extending OptZConfig to support e.g. boundary conditions requires manual implementation, whereas many such features are directly provided by the compression-safeguards implementation. Common tasks like preserving missing values, regionally varying error bounds, simple quantities of interest using auxiliary variables and boundary conditions can be directly and concisely configured, and more complex safety requirements can be composed from several safeguards. Furthermore, as OptZConfig can only tune global parameters, it would have to fall back to fully lossless compression to provide safety in cases where the compressor cannot be configured to preserve a requirement, e.g. missing values, whereas the Compression Safeguards always guarantee safety and would, in this case of missing values, only need to produce a few corrections.

Overall, Compression Safeguards provide a previously missing last line of defence for end users. They guarantee that the user's safety requirements are always met, support novel safety requirements, and can be used with any compressor, including FFCz, pMSz, LOPC, QoI-SZ3, QPET, MGARD-QoI/MGARD-λ, and OptZConfig, to combine their strengths with the guaranteed safety that the Compression Safeguards provide.

5 Experimental Evaluation

We evaluate the compression-safeguards reference implementation on a variety of real-world datasets and analyses using the numcodecs-safeguards.SafeguardedCodec meta-compressor. While some examples are generic, others are taken from weather and climate analyses. The goal of our evaluation is to (i) explore how different lossy compressors perform across diverse use cases, (ii) showcase how the compression-safeguards can protect important safety requirements, and (iii) examine the impact of safeguarding on compression ratios, compression throughput, and compression error distributions. All evaluation codes and datasets are available in Tyree et al. (2026e). The specific version of the code and analyses used to produce the results in this manuscript has also been published in Tyree et al. (2026g) under version 1.0.0rc1.post1.

This evaluation does not cover all features of the compression-safeguards implementation. In particular, preserving regionally varying safety requirements, topological features such as isosurfaces and critical points are all excluded for brevity. The online documentation provides additional examples and guides for these use cases and more (Tyree et al., 2026a).

5.1 Datasets

In the evaluation, we choose publicly available datasets that reflect common difficulties in compressing weather and climate data: humidity and precipitation for non-normal distributions, satellite and fire danger data for missing values, and wind because vorticity is a common derived quantity, which uses wind gradients:

  1. ERA5 is a comprehensive reanalysis of the global climate and weather, which is produced by the European Centre for Medium-Range Weather Forecasts (ECMWF). ERA5 combines observations with the IFS numerical weather prediction model to reproduce the global state of the atmosphere, land surface, and ocean waves, filling gaps in observational data to produce a complete dataset, gridded regularly in space and time (Hersbach et al., 2020). We use

    • a.

      the specific humidity (Hersbach et al., 2018a) for 2 April 2024 at 12:00 UTC at 850hPa (4.0 MiB), and

    • b.

      the u and v wind components (Hersbach et al., 2018a) for 2 April 2024 at 12:00 UTC at 500 hPa (7.9 MiB), and

    • c.

      the single-level hourly total precipitation (Hersbach et al., 2018b) for 2–4 April 2024 (285.2 MiB).

  2. The energy release component of the ERA5-derived global daily fire danger index (Copernicus Climate Change Service, Climate Data Store, 2019) for 18 July 2024 (4.1 MiB).

  3. The global 6-hourly total column water vapour over ocean derived from satellite observations (Copernicus Climate Change Service, 2022; Andersson et al., 2021) for 2 August 2020 (3.5 MiB).

We have also made these datasets, their licenses, and download scripts available in Tyree et al. (2026d). The datasets are also deliberately kept small. Weather and climate datasets are usually chunked in practice, often along the time dimension, with chunks typically of size 1–10 MiB (Hassell and Cimadevilla Alvarez, 2026). We therefore evaluate mostly on single timesteps of 2D fields, which are sufficient to demonstrate cases of unsafe compression and assess how the Safeguards resolve them. However, we acknowledge that scientific compressors are often evaluated on much larger datasets (e.g., Zhao et al., 2020; Reichelt et al., 2026; Han et al., 2026) where they can produce higher compression ratios.

5.2 Compressors

We compare the compression-safeguards with ZFP-ROUND, abbreviated henceforth as ZFP, and SZ3, SPERR, OptZConfig, and QPET-SPERR. ZFP (Lindstrom, 2014; Diffenderfer et al., 2019) is a transform-based error-bounded lossy compressor that processes n-dimensional data in 4×…×4 blocks. The values in each block are decorrelated, reordered by magnitude, and concatenated into a bitstream that can be truncated to satisfy a user-provided compression target, e.g. a specific compression ratio or an absolute error tolerance. The ZFP-ROUND variant eliminates the error bias in the original implementation (Diffenderfer et al., 2019; Hammerling et al., 2019). SZ3 (Zhao et al., 2021; Liang et al., 2023; Liu et al., 2024) is a modular prediction-based error-bounded lossy compressor that consists of preprocessing, prediction, lossy quantisation, entropy coding, and lossless compression. SZ3 supports bounding the pointwise absolute or range-relative error, combinations of the two, the peak signal to noise ratio, or the L2 error, all of which are transformed into pointwise absolute error bounds. Several domain-optimised configurations and expansions of SZ3 have been published, including CliZ for climate data (Jian et al., 2024). The SPERR compressor (Li et al., 2023) combines wavelet-based lossy compression with quantised outlier corrections to bound the pointwise absolute error. SPERR is tuned to produce around 2 % outliers, which minimises the combined cost of compression and corrections. OptZConfig (Underwood et al., 2022) is a meta-compressor that automatically tunes the wrapped compressor's configuration to optimise a user-defined metric, e.g. to bound the error over a quantity of interest while also increasing compression ratios. While OptZConfig cannot guarantee safety, it can often identify safe and efficient compressor setups. QPET-SPERR (Liu et al., 2025) integrates SPERR with QPET to bound the absolute or range-relative error over a derived quantity of interest. It derives and auto-tunes an approximate global absolute error bound over the data that is passed to SPERR, and losslessly encodes data points to correct violations in the quantity of interest (see Sect. 4 for further details). These compressors cover important classes of scientific lossy compression with a focus on reducing local errors: ZFP is block-transform-based, SZ3 is predictive, SPERR is wavelet-transform-based, and OptZConfig and QPET represent the state of the art in preserving quantities of interest. Please refer to Di et al. (2024) for a survey and taxonomy of further error-bounded lossy compression methods.

For compression, we use the numcodecs-wasm (Tyree, 2026) project, which adapts many popular scientific compressors to the numcodecs compression API (Zarr developers, 2025), compiles them to platform-independent WebAssembly bytecode, published as Python packages, and then executes each compressor in its own sandbox, making compression fully reproducible across different platforms. Please refer to Reichelt et al. (2026) for further details on numcodecs-wasm.

Table A1 lists the versions of all compressors that we evaluate. We test v3.3.2 of SZ3 unless otherwise specified, but additionally compare against v3.2.2 in Sect. 5.4 to highlight how compression-safeguards would have protected users from a bug in v3.2.2. We intended to compare both QPET-SPERR, where QPET derives a global absolute error bound for SPERR, and QPET-SZ, where QPET derives per-point absolute error bounds for SZ3. Unfortunately, QPET-SZ is tightly coupled to an outdated version of SZ3 and crashed in our evaluations, and the authors were unable to fix the underlying bug in time. We also do not compare with the quantity-of-interest-aware MGARD-QoI compressor because of its high computational complexity. Please refer to Underwood et al. (2022) for a comparison between MGARD-QoI and OptZConfig, which concludes that OptZConfig outperforms MGARD-QoI.

In the following examples, we use OptZConfig's FRaZ-based Fixed Metric Fidelity Search (FMFS) tuning algorithm (Underwood et al., 2020, 2022) to maximise compression ratios while eliminating all violations of the example's safety requirements. We have extended OptZConfig such that it can be used with numcodecs-wasm compressors and can reuse safety requirement validation routines written in Python, ensuring that OptZConfig results are comparable. Since OptZConfig struggled with directly finding safe absolute compressor error bounds, whose search space typically spans many orders of magnitude, we instead tune the logarithm of the error bound for 25 iterations.

The Compression Safeguards Framework is intended to safeguard an existing lossy compressor and the SafeguardedCodec was not specifically designed to be a compressor in and of itself. Nevertheless, we also evaluate the effects of safeguarding a constant-zero-predictor, denoted as 0, to stress-test the lossless compressibility of the corrections that are needed for nearly every point of the all-zero decompressed data. Additionally, we compare, for each safeguarded compressor, the default one-shot corrections with iteratively-reduced corrections (see Sect. 3.5) and iteratively-reduced lossless corrections to assess the impact of the one-shot corrections. We also compress every dataset losslessly using Zstandard (Collet, 2021) at maximum compression, level 22, to provide a comparison for safe compression ratio and throughput.

5.3 Evaluation metrics and visualisations

We compute the following metrics to compare the compression-safeguards implementation with different compressors, where x is the original data of size N, x^ is the decompressed data and b̃ is the binary corrections:

  1. L∞(x^)=maxi|x^i-xi| measures the maximum pointwise absolute error. If L∞ is NaN or infinite, we also give the finite-only maximum pointwise absolute error in parentheses.

  2. L2(x^)=∑iNx^i-xi2N measures the root mean square error. If L2 is NaN or infinite, we also give the finite-only root mean square error in parentheses.

  3. okabs(xi,x^i,ϵabs)=(|x^i-xi|≤ϵabs)∨(x^i≡xi) defines whether a point i satisfies a pointwise absolute error bound ϵabs. The equivalence cases in the disjunction accounts for infinite and NaN values, such that infinite values must be preserved exactly and x^i must be NaN if and only if xi is NaN. In examples that use a quantity of interest f(x), okabs is computed over f(x) and f(x^) instead.

  4. V=|{i|¬ok(xi,x^i)}|N measures the percentage of data points that violate their safety requirements, often a pointwise absolute error bound. We report the percentage rounded to one digit of precision, and use V<0.05 % to denote that there were some but very few violations. If no points violate the requirements, we give V=0.

  5. C=|{i|b̃i≠0}|N measures the percentage of data points for which the safeguards produce a non-zero correction. If no corrections were produced, we give C=0.

  6. CR=|bytes(x)||bytes(c)| measures the compression ratio as the ratio between the in-memory byte-size of the original data x over the byte-size of the compressed data c. For instance, ×10 describes compression that reduced the size by a factor of ten. For the original data, we report the in-memory byte-size in binary notation, i.e. 10 MiB refers to 10×220 bytes.

Each figure contains the compression ratio CR and the percentage of violations V, while the other metrics are reported in auxiliary tables. For each compressor, we also include a map of the violations, if there were any, and a map of the corrections when using the compression-safeguards. Many auxiliary figures also show the distribution of the data, quantity of interest, or its error as a histogram above the colour bar to assess if compressors introduce bias. On these histograms, we mark the 25 %, 50 %, and 75 % quantiles with line markers, and the mean with a dotted line. If the colour bar includes error values that violate the safety requirements or data values that are outside the original range, they are marked on the colour bar with white hatches. Missing or NaN values are highlighted with pink hatches.

5.4 Example: NaN missing values

Scientific datasets often contain missing values, e.g. from sometimes-sparse missing observation values or from ocean-only model variables over land. Missing values are typically represented as NaNs in memory but may have a different representation on disk. To examine how compressors handle NaN missing data, we compress four 6-hourly satellite observations of sea-only satellite observation data, where data is statically missing on land and temporarily missing where there is no satellite coverage. We configure each compressor and the safeguards with an absolute error bound of ϵabs=0.1kgm-2 (see Listing C1).

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f02

Figure 2Compressed water vapour path maps from satellite data with NaN missing values using different lossy compressors with absolute error bounds. In the left map, the original data and the decompressed data from SZ3 v3.2 and v3.3 are shown. The right map shows the compression-safeguarded data from an all-zero predictor and SZ3. For each compressor, the compression ratio and percentage of violations V, are given as well. Areas with originally missing values, above land and in between satellite swaths, are outlined and hatched.

Not all lossy compressors support or handle non-finite values correctly (Fallin and Burtscher, 2024). Figure 2 shows that SZ3 [v3.2] hallucinates plausible non-NaN values where data was originally missing. We reported and fixed this bug in SZ3 pull request #91 (Tyree, 2025), and SZ3 [v3.3] now correctly preserves the missing values.

Error-bounding safeguards always preserve NaN values, configurable with the same or any NaN payload bit pattern, and the safeguarded compressors thus have no violations. When the safeguards have to correct hallucinated non-missing values, the compression ratio drops, though the decrease is lower when not preserving NaN payload bit patterns exactly (see Table B1). For SZ3 [v3.3], which has no violations, the safeguards produce no corrections and thus only have a negligible impact on the compression ratio. Overall, the safeguards are able to correctly and efficiently preserve missing values and would have protected users from the bug in SZ3 [v3.2].

Interestingly, the safeguarded SZ3 [v3.2] compressor compresses better than SZ3 [v3.3]. While this may point to a more efficient NaN correction scheme in the safeguards than in SZ3, the difference may also come from unrelated algorithmic changes between the two versions of SZ3. The safeguarded all-zero predictor produces the second-highest compression ratio.

Appendix B1 further compares the preservation of missing values with ZFP and SPERR. It also showcases that OptZConfig is only able to safely preserve NaN missing values if the underlying compressor can preserve them itself. While this example has focused on NaN missing values, Appendix B2 examines whether compressors preserve missing values encoded as non-NaN values. It also shows how a masking meta-compressor can also efficiently preserve missing data values.

5.5 Example: kinetic energy as a multi-variable pointwise quantity of interest

Preserving error bounds and other properties over quantities of interest f(x) derived from the data x is an important gap in lossy scientific compression (Cappello et al., 2025). Appendix B4 provides an introductory example about preserving the single-variable quantity log (x), which can also be expressed as a ratio error bound. In this more complex example, we compute the wind kinetic energy per unit mass, KE=12(u2+v2), from a dataset of wind components u and v, examine whether it is preserved after lossy compressing u and v, and demonstrate how the compression-safeguards can bound the absolute error over the derived kinetic energy. Kinetic energy is a pointwise quantity of interest that is computed over two variables at once. For simplicity, we stack both variables into one array, such that they can be compressed together. Stacking u and v is possible because they have very similar data distributions. Since u and v are independent, we stack them along a new first, slowest varying axis. We aim to bound the absolute error over the kinetic energy to ϵabs(KE)=1m2s-2 and configure each compressor with an absolute error bound of 0.125 m s−1 over the stacked array.

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f03

Figure 3 Pointwise kinetic energy error maps derived from compressed wind u and v components using different lossy compressors. In the left map, the original data and the decompression error from SPERR and QPET-SPERR are shown. The right map shows the compression error for the compression-safeguarded SPERR using one-shot corrections, Sg(SPERR)/Sg, on the left and iteratively-reduced corrections, Sg[it](SPERR)/ Sg[it], on the right. The middle section of the right map compares the two correction distributions with the distribution of SPERR's error-bound violations. The compression ratio and percentage of violations V are also given for each compressor, as well as the percentage of corrections C for the safeguarded compressors.

The safeguards are directly configured to bound the pointwise absolute error over the derived kinetic energy, which is translated into a quantity of interest. Since u and v are stacked into one array, we now compute the kinetic energy over a two-element (u,v) local neighbourhood along the stacked first axis (see Listing C4). Since QPET-SPERR can preserve polynomials, we can similarly configure QPET-SPERR to bound the pointwise absolute error over the derived kinetic energy. We therefore utilise QPET-SPERR's block-mean mode to equivalently bound the mean of x2 over the stacked (u,v) axis.

Figure 3 shows that simply bounding the absolute error over u and v is not sufficient in general, as SPERR violates the targeted absolute error bound over the kinetic energy. Similar violations can also be seen in Appendix B5 for the ZFP and SZ3 compressors. With the safeguards and QPET-SPERR, no violations are produced. In this example, safeguarded SPERR compresses the best and even outperforms QPET-SPERR, which in turn beats OptZConfig-tuned SPERR. The safeguarded compressors also provide better compression than tuning with OptZConfig (see Appendix B5). The compression ratios for the safeguards can be further improved by switching from one-shot to iteratively-reduced corrections (see also Table B5).

5.6 Example: relative vorticity as a stencil quantity of interest

While pointwise quantities of interest can independently consider and correct each data point, many quantities of interest depend on a local neighbourhood around each point, e.g. to approximate spatial derivatives using finite differences. In this example, we compute the relative vorticity

(3) ζ ( ϕ , λ ) = ∂ v ∂ λ - ∂ u ⋅ cos ϕ ∂ ϕ ⋅ R e ⋅ cos ϕ - 1

for a dataset of wind u, v vectors on a regular latitude-longitude grid, which requires taking the spatial derivative along both the latitude ϕ and longitude λ axes, where Re is Earth's radius. Note that the derivative along the longitude is computed along a periodic axis, which requires handling the periodic boundary condition when computing and safeguarding the finite differences. We compare how the derived vorticity is affected after compressing u and v with different error-bounded lossy compressors, and demonstrate how the compression-safeguards can bound the absolute error over the derived vorticity. As in Sect. 5.5, u and v are stacked into one variable along a new first, slowest varying axis.

We configure each compressor with an absolute error bound of 0.01 m s−1 over the u-v array with the aim of bounding the absolute error over the derived vorticity to ϵabs(ζ)=10-8s-1; the safeguards are configured directly with this bound.

For the safeguards, Eq. (3) is translated into a quantity of interest over a small local neighbourhood, where first-order, second-order-accuracy finite central differences over an arbitrary grid approximate the spatial derivatives, taking into account the period of 360° along the longitude axis. For the derivative along the latitude axis, we switch to forward and backward finite differences at the polar boundaries, as in the second case in Appendix B6. The complete configuration of the vorticity quantity of interest for the SafeguardedCodec is given in Listing C7.

The compression-safeguards implementation goes beyond the state-of-the-art. While QPET can bound the mean error over non-overlapping blocks of data, this is insufficient for bounding the error over a finite difference, where data points and local neighbourhoods are not independent. Since QPET also does not support either boundary conditions over the data or referencing auxiliary variables in a quantity of interest, here the latitude and longitude coordinates, we do not compare with QPET-SPERR in this example. We do, however, evaluate OptZConfig, which requires manual extension to support the relative vorticity quantity of interest.

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f04

Figure 4 Relative vorticity error maps derived from compressing wind u and v components using different lossy compressors. In the left map, the original data and the decompression error from SPERR and OptZConfig-tuned SPERR are shown. The right map shows the compression error for the compression-safeguarded SPERR using one-shot corrections, Sg(SPERR)/Sg, on the left and iteratively-reduced corrections, Sg[it](SPERR)/ Sg[it], on the right. The middle section of the right map compares the distribution of the two correction distributions with the distribution of SPERR's error-bound violations. The compression ratio and percentage of violations V are also given for each compressor, as well as the percentage of corrections C for the safeguarded compressors.

Figure 4 shows that the lossy absolute-data-error-bounded compressors, here SPERR, violate the error bound over the derived vorticity close to the poles, where the divisor cos ϕ in Eq. (3) tends to zero and the vorticity error-bound can thus only be satisfied by an increasingly small data error. Similar violations can also be seen in Appendix B7 for the ZFP and SZ3 compressors. With the safeguards, all violations are corrected, though at the cost of decreasing the compression ratio. This decrease is particularly significant for SPERR (see also Table B8). Crucially, while OptZConfig is also able to safely bound the vorticity error, it only achieves very little compression that is clearly outperformed by safeguarding. This is likely because OptZConfig has to reduce the global error bound to account for localised violations near the poles, whereas the Safeguards only need to produce localised corrections.

The safeguarded compression ratio can again be improved by switching from one-shot to iteratively-reduced corrections. Interestingly, in this example, there is a clear pattern in where some of the one-shot corrections can be removed. Whereas the one-shot corrections have to be conservative everywhere, the iterative corrections are only needed closer to the poles, where the wrapped lossy compressors violate the safety requirements.

The example of relative vorticity exercises the support for several novel features: boundary conditions, coordinates as auxiliary data, and finite differences over arbitrary grids. Appendix B6 provides an additional derivative-focused example about safeguarding the Laplacian. To further stress test the compression-safeguards implementation, Appendix B8 examines how to guarantee a minimum score for the data structural similarity index (dSSIM) measure (Baker et al., 2024).

5.7 Performance evaluation

The previous sections have evaluated how our reference implementation can preserve important data invariants across a variety of weather and climate use cases, showcasing the flexibility and novel features of the compression-safeguards implementation. We now evaluate the runtime performance of the numcodecs-safeguards.SafeguardedCodec across the examples from Sect. 5.4, 5.5, 5.6 and Appendix B2, B4, B6, and B8. In each example, we measure the throughput that each safeguarded compressor takes to (de)compress, and compare the throughputs across examples and stages of safeguarding. We later also compare the compression ratios across the examples. The measurements were performed on an Apple M2 CPU running Python 3.11 with numpy 2.4.6. We exclude cases where the safeguards did not have to produce any corrections.

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f05

Figure 5 Throughput of the numcodecs-safeguards.SafeguardedCodec's safeguarding stages across all examples in Sect. 5 and Appendix B. The throughput is reported separately for computing corrections, encoding (compressing) and decoding (decompressing) corrections, and applying corrections. The distribution of the measurements is visualised with box plots that show the median in orange, the inter-quartile range as a box, and use whiskers to display 1.5 times the inter-quartile range, bounded by the minimum and maximum values. The throughputs are split by the wrapped compressor – the all-zero predictor in lime, ZFP in blue, SZ3 in pink, and SPERR in green – and by the mode of corrections – lossless as diamonds, one-shot (default) as dots, and iterative as stars. The examples are abbreviated as NaN (missing values), MV (non-NaN missing values), log 10 (pointwise logarithm), KE (kinetic energy), Δ (Laplacian with x= const), ln Δ (logarithm of Laplacian), ζ (relative vorticity), dSSIM (dSSIM with 3×3 kernel). The throughput for the non-native WASM codecs, which should not be directly compared with the safeguarding throughputs, are given separately in Fig. B11.

Download

Figure 5 compares the throughput of the numcodecs-safeguards.SafeguardedCodec during compression and decompression across of the examples. The most significant overhead comes from computing the corrections, which increases drastically as the complexity of the safety requirements grows, especially for the examples using non-pointwise quantities of interest. Iteratively reducing corrections has the lowest throughput, while producing lossless corrections that are iteratively reduced typically has higher throughput than producing the one-shot corrections. While the time taken to compute the corrections is typically similar across different compressors, in the Laplacian example where SZ3 requires more corrections Table B6, correcting ZFP is significantly faster and SZ3 is significantly slower. In the dSSIM example, the top three safeguarded zero-predictor outlier throughputs are produced by the much-simplified bins(256) safeguard (see Appendix B8).

In contrast to the example-specific performance for computing corrections, the encoding, decoding, and application of corrections all perform similar across examples. Importantly, applying the corrections has the highest throughput of all steps, since it only requires the binary addition of the corrections (see Sect. 2.3) and, specifically in numcodecs-safeguards, the check of the corrected data's checksum (see Sect. 3.5).

Altogether, this comparison shows that the throughput of safeguarding is clearly dependent on the complexity of the safety requirements and the algorithm with which corrections are produced. Fundamentally, safeguarded compression performs significantly more work than unsafeguarded compression. In addition to compressing with the underlying compressor, the data also needs to be decompressed, and corrections need to be computed, checked, and losslessly encoded. Therefore, safeguarding during compression most likely bottlenecks and significantly reduces the compression throughput for modern compressors. If a compressor is optimised for higher performance, the overhead of safeguarding is likely to mask the performance gain. This is in contrast to OptZConfig, which needs to compress and check for several iterations and whose performance thus likely improves alongside the compressor's as long as the check of safety requirements does not bottleneck the execution time. In real-world applications where a sufficient target compression ratio might be known in advance, OptZConfig can be further sped up by terminating the tuning early once the target has been safely met (Underwood et al., 2022). Therefore, while safeguarding may offer competitive runtime performance compared to OptZConfig in very simple cases, OptZConfig outperforms safeguarding for more complex requirements.

While safeguarding can drastically reduce compression throughput for complex non-pointwise safety requirements, data is typically only compressed and written once but decompressed and read many times by the data users (Cappello et al., 2025). To allow users to benefit from safe and fearless decompression at little additional computational cost, data producers may be able to spend more on compression time, to parallelise computing corrections, e.g. with the xarray-safeguards frontend, or to offload them, e.g. to the GPU (e.g., Li et al., 2026; Ren et al., 2026). Since corrections can be computed long after compression and can distributed separately from the compressed data (see Sect. 2.2), safeguarding can also be moved entirely off the performance-critical compression path. We plan to specifically investigate a performance-focused implementation of the Compression Safeguards Framework in future work.

While this evaluation focused on the runtime performance of the numcodecs-safeguards frontend, Appendix B12 briefly investigates the performance scaling of the xarray-safeguards frontend over chunked data.

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f06

Figure 6Impact of different correction methods on the safeguarded compression ratios for each of the examples, including for the all-zero predictor in lime. The compression ratio for the lossless and iteratively-reduced corrections is shown relative to the compression ratio with the default one-shot corrections. The distribution of the measurements is visualised with box plots, as in Fig. 5. The compression ratio of QPET-SPERR relative to one-shot safeguarded SPERR is also given as a dark green “x” for the log 10 and kinetic energy examples. For all examples, grey-outlined and yellow-outlined triangles in the middle, coloured like the wrapped compressors, show whether lossless compression with Zstandard and tuning with OptZConfig produced lower or higher compression ratio than the one-shot corrections for the safeguarded compressors.

Download

Several compressors internally use lossless corrections (e.g., Liang et al., 2023; Liu et al., 2025) to guarantee error bounds over data or quantities of interest. The compression-safeguards implementation instead produces non-lossless corrections in an expensive one-shot algorithm that uses a simple heuristic to improve their compressibility (see Sect. 3.1). Figure 6 compares the compression ratios of these one-shot corrections with lossless corrections and iteratively-reduced corrections. Across most examples, one-shot corrections offer higher compression ratios than lossless corrections, typically by a factor of two or more. The non-NaN missing values example from Appendix B2 is the exception, since the error-bounded compressors require corrections only for the missing value sentinel, for which only lossless corrections suffice. The one-shot corrections also outperform the compression ratios from QPET-SPERR, also when using lossless corrections for safeguarding SPERR. Importantly, safeguarding with one-shot corrections achieves better compression than tuning with OptZConfig across most examples. The only exceptions are non-NaN missing values with SZ3 and the Laplacian quantity of interest with SZ3 and SPERR. While OptZConfig can compress better when preserving an affine quantity of interest with uniform global error bound and a highly-efficient compressor, the safeguards outperform tuning whenever safety requirements are non-linear or when the wrapped compressor cannot be configured to preserve a requirement by itself.

In the examples with non-pointwise safeguards, the iteratively-reduced corrections provide smaller benefits, typically an increase by less than a factor of two. As the above-analysed runtime cost of these iterative corrections is significant, one-shot corrections can be seen as a valuable trade-off between compression speed and compression ratio.

Finally, Fig. 6 also provides insight into whether safeguarded lossy compression is worthwhile or if lossless compression using Zstandard achieves higher compression ratios. For most examples and most compressors, one-shot safeguarded compressors are better, though there are some exceptions. ZFP typically provides comparatively low lossy compression ratios, and safeguarded ZFP produces sub-lossless compression ratios in the NaN missing value and vorticity examples. Similarly, in other cases where the base-compression ratio is low, e.g. for the unstructured data with non-NaN missing values, or when many corrections are needed, e.g. when preserving the logarithm over the Laplacian, lossless compression can also outperform safeguarded lossy compression. In the worst case, where the compressor produces adversarial random noise and the Safeguards have to produce incompressible unique corrections for every data point, the safeguarded compression ratio could even drop below one. Such sub-lossless compression ratios could be avoided by falling back to fully lossless compression if necessary (e.g., Zhao et al., 2021; Liang et al., 2023). However, lossless compression does not take advantage of the tolerable information loss allowed by the safety requirements. A better alternative could be to fall back to safeguarding an all-zero predictor, which instead allows for lossy compression. In all our examples, this consistently provides better-than-lossless compression ratios.

5.8 ClimateBenchPress

We further investigate the performance of the compression-safeguards implementation using the ClimateBenchPress (v1.0) benchmark, which is designed to fairly compare the compression ratio, compression errors, and execution cost of lossy compressors across a diverse variety of datasets and variables (Reichelt et al., 2026). The benchmark compares compressors across three different levels of absolute and relative error bounds to investigate trade-offs between compression ratios and distortion errors. Please refer to Reichelt et al. (2026) for a description of the datasets, benchmark setup, evaluation metrics, and the code and data availability.

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f07

Figure 7 Scorecard of the mean absolute error, compression ratio, and error bound violations for several error-bounded lossy compressors and their outlined compression-safeguarded equivalents for the mid level error bound. Each row contains the results for a different compressor, each column for a different variable, and each panel for a different metric. Black triangles indicate cases where an absolute or relative error bound needed to be conservatively transformed since the compressor lacked support for it. Combinations where the compressor raised an exception are denoted with “Crash”. The cells are coloured to indicate the difference – blue for better, red for worse – compared to the BitRound compressor, which is used as a baseline. The data variables are abbreviated as in Sect. 2.1 in Reichelt et al. (2026): “10u”: IFS 10 m u-wind component, “10v”: IFS 10 m v-wind component, “agb”: ESA CCI above ground biomass estimate, “msl”: IFS mean sea level pressure, “no2”: CAMS nitrogen dioxide mass fraction, “pr”: NextGEMS precipitation rate, “q”: IFS specific humidity, “rlut”: NextGEMS outgoing longwave radiation flux, “ta”: CMIP6 air temperature, “tos”: CMIP6 sea surface temperature.

Download

We extend ClimateBenchPress with several new compressors. First, we add safeguarded versions of bit rounding and Pcodec, abbreviated henceforth as BitRound, and of EBCC (Huang et al., 2025), SPERR, SZ3, and ZFP-ROUND, abbreviated henceforth as ZFP. These safeguarded compressors preserve the pointwise absolute or pointwise relative error bound, depending on the variable being compressed. Reichelt et al. (2026) uses SZ3 v3.2.2 in the benchmark, abbreviated henceforth as SZ3[v3.2], which does not handle NaN values correctly. While most of Sect. 5 evaluates v3.3.2, v3.2.2 is compared once in Sect. 5.4. Table A2 lists the versions of all compressors that we evaluate with ClimateBenchPress. Second, we also benchmark the safeguarded all-zero predictor. As ClimateBenchPress evaluates the data structural similarity index (dSSIM) metric (Baker et al., 2024), we also include a safeguarded all-zero predictor that additionally guarantees a perfect dSSIM score using the cheap quantisation-bin preservation method from Appendix B8. Since the dSSIM score is computed independently for each 2D latitude-longitude slice, the minimum and maximum values for each slice are provided as late-bound parameters. Third, however, we do not benchmark QPET-SPERR, which does not support pointwise relative error bounds and would thus achieve the same results as SPERR but with lower compression throughput. We also exclude OptZConfig, whose performance at maximising compression ratios for such simple safety requirements without early stopping would not be competitive and entirely dominated by having to compress and decompress for multiple iterations.

Figure 7 compares the mean absolute error, compression ratio, and percentage of pointwise error bound violations across all variables and compressors. Fallin and Burtscher (2024) and Reichelt et al. (2026) have shown that many available scientific error-bounded compressors have some edge cases where the error bounds are violated. Importantly, all violations are eliminated by safeguarding the compressors, thus providing safety. This safety comes with smaller mean absolute errors and reduced compression ratios, particularly for SZ3, where many missing value and pointwise relative error bound violations need to be corrected (Reichelt et al., 2026). BitRound, ZFP, and their safeguarded variants typically produce the smallest compression errors. SZ3, safeguarded SZ3, and the safeguarded zero-predictor produce much larger errors but also compress better, especially SZ3 without safeguards. EBCC and SPERR raise exceptions when compressing the “ta” and “tos” variables, which both contain NaN values. When safeguarding both compressors, we first replace NaNs with the data mean and then use the safeguards to restore the NaN values, as in Appendix B1, which resolves the crashes. For the “pr” variable, ClimateBenchPress converts the relative error bound, which SPERR does not support, to a conservative tiny absolute error bound, causing SPERR to fail. This crash is unchanged when wrapping SPERR in safeguards. The complete scorecards for the low, middle, and high error bounds are provided in Figs. B12, B13, and B14, respectively.

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f08

Figure 8 Comparison of the rate-distortion plots, for four distortion metrics, for several error-bounded lossy compressors, shown as solid lines, and their compression-safeguarded equivalents, shown as dotted lines. Each plot shows the compression ratio on the x-axis and a different distortion metric on the y-axis. The compression ratios and rate-distortions for each compressor are normalised across all variables as in Fig. 3 of Reichelt et al. (2026), except for dSSIM. In the dSSIM scores panel, the optimal dSSIM=1 is highlighted as a dashed line for comparison. Each plot's axes are selected to exclude outliers; the uncropped rate-distortion curves are provided in Fig. B15.

Download

We further investigate the trade-off between compression ratio, also called compression rate, and several distortion error metrics using rate-distortion plots in Fig. 8. Safeguarded SPERR typically provides the best safe trade-off without violations. Safeguarding generally tends to reduce the compression ratio, though the difference is only significant for SZ3's maximum absolute error, likely because the safeguards have to correct many violations, as described above and shown in Fig. 7. We can also observe that the safeguarded zero-predictor provides good compression, better than ZFP and BitRound, though with much larger still-safe errors, which result in especially high spectral errors. Therefore, it would be worth investigating a spectral error safeguard in the future, e.g. based on Ren et al. (2026). The dSSIM-preserving safeguarded zero-predictor produces, by construction, dSSIM=1 across all variables, though at the cost of some lower compression ratios than the basic safeguarded zero-predictor. All in all, for the simple use cases of preserving only pointwise absolute or relative error bounds and NaN missing values, ClimateBenchPress shows that the safeguards provide safety while maintaining high compression ratios when few corrections are needed.

We also evaluate the runtime performance using ClimateBenchPress in Fig. B16. The results mirror the outcomes in Sect. 5.7 and Appendix B10, which compares safeguarding a larger variety of more complex safety requirements.

6 Discussion

Section 5 and Appendix B have examined the effects of applying different lossy compressors across various datasets and analyses, and shown how the compression-safeguards reference implementation can safeguard these compressors to guarantee that important user-declared data invariants are preserved. At their most basic, the safeguards can ensure that pointwise absolute, relative, or ratio error bounds over the data are always met and that missing values are preserved, particularly when the wrapped compressor violates their error bound (see Sect. 5.4, Appendix B2, and Sect. 5.8). While such simple requirements can also be fulfilled using specialised meta-compressors, often with greater runtime performance and higher compression ratios (see Appendix B2 and B4), the compression-safeguards further generalise to composed complex requirements, which can be composed arbitrarily, and across different compressors.

When safeguarding pointwise safety requirements like error bounds or missing values, only the points that violate the requirements need corrections. For lower-dimensional data, e.g. 2D data slices, losslessly compressing the safeguards-produced corrections can often minimise their impact on the combined compression ratio. For higher-dimensional data and highly effective compressors such as SZ3 or SPERR, frequent per-point corrections can, however, bottleneck the compression ratio. While safeguarded compressors have near-constant overhead during decompression, the overhead during compression depends heavily on the complexity of the safety requirements and can easily bottleneck and drastically reduce compression throughput (see Sect. 5.7).

The compression-safeguards implementation also supports bounding the error over quantities of interest that are computed per-point or over local neighbourhoods. For example, higher order derivatives over regular grids with arbitrary point spacing, or arbitrary functions over these derivatives, can be preserved using their finite difference approximations (see Appendix B6 and Sect. 5.6). Here, the compression-safeguards provide novel support for data with boundary conditions, e.g. the periodic boundary along Earth's longitude axis, and can even correctly preserve non-pointwise safety requirements across chunk boundaries in chunked data. Overall, the compression-safeguards provide sufficient flexibility to preserve even complex safety requirements, such as a lower bound on the dSSIM score (see Appendix B8).

The evaluation has also highlighted that the compression-safeguards implementation comes with several limitations.

The errors produced by lossy compression should ideally be unbiased and without spatial patterns, e.g. to ensure that two-point statistics or integrals over the data are not disturbed (Kouznetsov, 2021). The compression-safeguards implementation does not yet provide any safeguard to guarantee that the compression errors are always unbiased. Appendix B3 shows that the safeguarded compression errors typically have a similar distribution to the errors from the wrapped compressor and may propagate its bias, though the choice of producing fewer unique corrections to improve their compressibility may also introduce additional bias. While the implementation of a bias safeguard should be investigated in the future, there does not seem to exist a general and composable non-lossless method to produce error distributions that are unbiased with respect to both the data and an arbitrary quantities of interest. For instance, an unbiased error in the data x is incompatible with an unbiased error in log (x).

Non-pointwise safety requirements create dependencies between different data points, where correcting one might violate the safety requirements for another. The one-shot corrections produced by the compression-safeguards implementation are necessarily conservative and may affect too many data points, hurting compression ratios (see Sect. 5.5, 5.6, Appendix B8 and Sect. 5.7). Iteratively reducing the number of corrections can increase compression ratios at the cost of lower throughput during compression (see Sect. 5.7). Incrementally computed corrections can produce less conservative corrections and may provide further compression improvements in the future (see Appendix B9).

Still, safeguarding lossy compressors compares favourably with the state-of-the-art OptZConfig and QPET-SPERR methods, even when using only one-shot corrections. Across our evaluation, safeguarded compression ratios were higher than QPET-SPERR's, likely because one-shot corrections compress significantly better than lossless corrections (see Sect. 5.7). Furthermore, while OptZConfig tunes the configured compressor error bound, which might be dragged down to satisfy sparse outliers with stricter requirements, the Safeguards are able to provide localised corrections that more efficiently handle outliers while benefitting from higher compression ratios elsewhere. Conversely, safeguarded compression can still benefit from tuning with OptZConfig when requirements are uniform, e.g. in an affine derivative-based quantity of interest (see Appendix B6), and violations can be efficiently reduced with a lower error bound.

Finally, the compression-safeguards implementation also does not yet support preserving global safety requirements. Instead of preserving a global mean error, for example, Appendix B8 has to bound the stricter pointwise error everywhere, which produces more conservative corrections. Since global requirements can be expressed as stencil safeguards that cover the entire data, iterative or incremental corrections would likely be required to produce better corrections with good compressibility.

7 Conclusions and Perspectives

The data volumes produced in computational sciences, including in numerical weather prediction and climate modelling, have been growing exponentially. While lossy compression methods promise reductions in data size by factors ranging from ten to more than a thousand, their adoption has thus far been limited. A key barrier is the concern among scientists that compression may lead to the loss of critical information, potentially affecting the reliability and interpretability of results derived from the decompressed data. Consequently, this lack of trust continues to hinder the uptake of lossy compression, contributing to the ongoing growth of data volumes and hindering scientific progress.

In this work, we have presented the Compression Safeguards Framework, a user-centred approach that empowers users to control which safety invariants of the data they need to be preserved by lossy compression. The Compression Safeguards Framework extends existing approximate-then-correct compression approaches by going beyond lossless outlier corrections and safety-requirement-specific correction formats. The Safeguards work with any compressor and data predictor, are portable across platforms and implementations and data formats, and provide novel flexibility in the safety requirements that users can preserve and how they can be composed. Since the Safeguards define portable corrections with respect to the binary representation of the data, they are generally applicable for any kind of data from any scientific domain. The Compression Safeguards are designed to act as a final layer of defence against potentially unsafe compression, to build trust in lossy compression, and to unlock the benefits of lossy compression for the entire computational science community.

The Compression Safeguards are not meant to replace or discourage individual compressors or meta-compressors from implementing measures for safe lossy compression, such as support for missing values or quantities of interest. Indeed, many compressors or problem-specific meta-compressors may be able to integrate specific safety requirements like spectral errors (Ren et al., 2026) more efficiently and produce higher compression ratios. However, supporting the necessary diversity and combinatorial flexibility in safety requirements would require excessive duplication of effort for compression developers and for users who still would need to constantly re-verify which compressors safely fulfil their requirements and which meta-compressors are compatible. Instead, we provide a generally-applicable solution that can be used every time to keep users safe no matter the compressor they use and the requirements they have. Importantly, the Compression Safeguards are symbiotically compatible with existing compressors and meta-compressors so that users can benefit both from high compression ratios and from guaranteed safety, for example by combining the Safeguards with QPET, OptZConfig, or a meta-compressor for pointwise relative error bounds. When safeguarding a compressor that is already safe for a particular application, the Safeguards simply automate the verification of safety. If the compressor violates the user's requirements, the Safeguards step in and correct them, guaranteeing that the user's safety requirements are upheld, always. Particularly as compressors get more complicated and increasingly use less-constrained machine-learning, trust and safety can be provided by the Safeguards while allowing compression developers and users to focus on achieving the best compression ratios.

We have provided a reference implementation for the Compression Safeguards, the compression-safeguards Python package, as well as user-facing integrations with the numcodecs compression API and xarray ecosystem for chunked data. Our implementation supports a larger variety of safety requirements than the state-of-the-art QPET compressor. The compressor-tuning OptZConfig meta-compressor can be manually extended for even greater flexibility, so long as the user knows the specialised meta-compressors or compressor-specific settings for how to preserve their safety requirements. However, OptZConfig uses global black-box optimisation to handle user-provided requirements and thus cannot guarantee safety if it cannot find a safe compressor configuration. In contrast, the compression-safeguards always guarantee safety even when generalising to complex composed requirements, are configured concisely based only on what needs to be preserved, analyse these requirements symbolically and numerically to produce targeted corrections, and support novel features out of the box, including data boundary conditions and higher order finite differences over chunked data. We have evaluated the reference implementation across a variety of examples, highlighting the expressiveness of the compression-safeguards but also their limitations, the use of expensive one-shot pointwise corrections with low throughput and lack of safeguards that bound global errors or bias, which we hope to address in future work.

Our compression-safeguards implementation provides flexibility and portability while focusing on gridded data and local or regional safety requirements. Since the Compression Safeguards Framework specifies an interoperable format for corrections, other implementations can co-exist, and safeguarded corrections can be applied across different hardware without knowing how they were produced. This guaranteed interoperability eases the adoption of the Compression Safeguards and ensures their long-term compatibility, as corrections can be computed even for already-compressed data, delivered to users as separate files, and then applied when reading the data without requiring complex new software. For instance, we hope to extend the NetCDF Climate and Forecast (CF) Metadata Conventions (Eaton et al., 2024) to natively support the application of corrections. Users could then transparently read safeguarded data in CF-based formats and software such as NetCDF or xarray.

While we hope that the Compression Safeguards provide an important tool in fostering trust in safe lossy compression, the Safeguards are just one piece of a larger puzzle. The question of which safety requirements need to be preserved for different variables is still unresolved and subject to ongoing research and debate, particularly as data producers often do not know about all downstream uses of their data. We therefore hope that high-resolution data-producing institutions and projects, such as ECMWF, Destination Earth, or the Coupled Model Intercomparison Project (CMIP), may use the Safeguards to optionally provide safely-lossy-compressed data to their end users – with user-chosen safety requirements that could be collected to inform community discussions – particularly where data storage and sharing constraints already impose limits, and safely-lossy-compressed data can provide scientists with higher-quality datasets than what can currently be made available. Importantly, the Compression Safeguards are similarly capable of guaranteeing that more niche, individual-user-specific safety requirements are preserved when users compress their own data.

As lossy compression is adopted more, we believe that the community should also develop new provenance metadata standards for lossy compression, such that lossy compressors and the Compression Safeguards can record the safety requirements that they fulfil. Such metadata would also offer protection from repeatedly compressing the same data over and over, accidentally accumulating errors beyond the specified error bounds with each iteration.

Overall, we hope that the Compression Safeguards will contribute to building trust in lossy compression, enabling its broader adoption across scientific computing to mitigate the rapid growth of data volumes, and to make higher-resolution datasets more accessible. Where data volumes impose limits on scientific research, as in high-resolution climate modelling, we hope that trusted lossy compression can empower scientists to continue advancing our understanding of and informing our responses to growing societal challenges.

Appendix A: Experimental Evaluation: Compressor Versions

Table A1 Versions of the compressors used in the evaluations in Sect. 5 and Appendix B. For each compressor, we provide the published version, if applicable, and the name and version of the corresponding Python package. The published version is suffixed by a “+” if the Python package wraps a compressor code in between published versions.

Download Print Version | Download XLSX

Table A2 Versions of the compressors used in ClimateBenchPress in Sect. 5.8. For each compressor, we provide the published version, if applicable, and the name and version of the corresponding Python package. The published version is suffixed by a “+” if the Python package wraps a compressor code in between published versions. * Version 1.0.0b6 of the compression-safeguards is functionally equivalent to version 1.0.0rc1.

Download Print Version | Download XLSX

Appendix B: Experimental Evaluation: Auxiliary Examples and Results

B1 Example: NaN missing values

This appendix contains additional results for compressing water vapour path satellite data with NaN missing values using different absolute-error-bounded lossy compressors in Sect. 5.4. Figure B1 and Table B1 compare how missing values are preserved, including the results for ZFP, SPERR, and OptZConfig.

ZFP, where NaN values trigger undefined behaviour in lossy compression, fills missing values with compiler-chosen values, here zeros. Recently, Lindstrom (2025) has outlined several approaches for how ZFP could support encoding special values such as NaN, infinity, or other sentinel values, none of which have been implemented at the time of writing.

SPERR raises an exception when compressing data with NaN values, H5Z-SPERR (Li, 2026). The HDF5 plugin for SPERR, replaces the NaNs with the mean data value before compressing with SPERR, and keeps a bitmask of NaN locations to recover the NaNs after decompression. For this example, we similarly replace NaN values with the mean, but leave the corrections up to the safeguards. Since SPERR interpolates over this mean fill-value, it produces silhouette-like results like ZFP.

Table B1 shows that OptZConfig does not find safe configurations for ZFP, SZ3 v3.2 and SPERR since none of these compressors can be configured such that they correctly preserve NaN missing values. For SZ3 v3.3, OptZConfig performs like SZ3 without tuning.

We do not compare with QPET-SPERR in this example because it is so tightly coupled with SPERR that QPET-SPERR also raises an exception when compressing NaN values.

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f09-part01

Figure B1 (a–b) Decompressed water vapour path maps with NaN missing values from Sect. 5.4. In the left column, the maps for the original data and decompressed data from ZFP, SZ3 [v3.2], SZ3 [v3.3], and SPERR are shown. In the right column, the compression-safeguarded equivalents are given. For each compressor, the compression ratio and percentage of violations V are shown as well. For compressors with violations, a map of the violations in red is added. For the safeguarded compressors, a map of the one-shot corrections in dark green is overlaid. Areas with originally missing values are outlined and hatched.

Table B1 Compression metrics for water vapour path data with NaN missing values from Sect. 5.4. For each compressor, the L∞ and L2 errors, the percentage of violations V, and the compression ratio CR are given. If the compressor cannot preserve NaN values, there are as many violations as NaN values, 68.3 %, that need to be corrected. For each safeguarded compressor, the percentage of corrections C is given as well. Since the safeguards can be configured to preserve NaN values with the same payload bit pattern or to allow any NaN, compression ratios for both cases are shown. The highest safe compression ratio is highlighted in bold.

Download Print Version | Download XLSX

B2 Example: non-NaN missing values

This appendix extends Sect. 5.4 with an example of compressing data with non-NaN missing values, here a single time step of the energy release component of the fire danger index. The data is on an unstructured grid, in a 1D array with matching 1D latitude and longitude arrays, and contains missing values over sea. It is stored in Gridded Binary (GRIB) format, which typically encodes missing values on disk as the integer-representable value 9999. Since high-level tools like cfgrib (Amici, 2018) replace missing values with NaNs when loading the data, we manually read the GRIB file using the lower-level eccodes tool (Santoalla and Najm, 2017).

We configure each compressor and the safeguards with an absolute error bound of 1, the step size between the discrete metric values. The safeguards are further configured to preserve the sentinel value 9999, so that missing values are remain missing and no non-missing values take on the sentinel value (see Listing C2). OptZConfig is configured to maximise compression while eliminating violations.

Figure B2 and Table B2 show that none of the lossy compressors handles the non-NaN missing values correctly. ZFP preserves most missing values as missing as it only interpolates the large 9999 value into some neighbouring values, owing to its small 41 block size in 1D. SPERR also preserves some missing values but has significantly more violations. For SZ3, seemingly no missing values are preserved correctly, likely because non-missing values get interpolated towards 9999 and originally-missing values only need to change slightly to no longer count as missing. Since ZFP, SZ3, and SPERR have no knowledge that the value 9999 is special, it is expected that they would be unable to preserve sentinel-encoded missing values. Requiring all compressors to support such special values would require significant duplicated development effort.

With the safeguards, the missing values are correctly preserved, at the cost of a small reduction in compression ratio. The safeguarded all-zero-predictor produces the best compression for this simple example.

A specialised meta-compressor that stores a mask of the missing values during compression and restores them during decompression can also be used to preserve missing values, e.g. the mask_interpolation_compressor_plugin in the LibPressio C++ compression framework (Underwood et al., 2021) or the numcodecs-mask Python package. Figure B2 and Table B2 show that such a meta-compressor can provide higher per-compressor compression ratios than the safeguards.

Tuning the compressors using OptZConfig allows ZFP and SZ3 to correctly preserve the missing values by drastically lowering their error bounds. While safeguarded ZFP compresses better than tuned ZFP, tuning SZ3 outperforms both safeguarding and the masking meta-compressor. However, OptZConfig fails to find a safe configuration for SPERR, since SPERR approximates the sentinel even for increasingly small error bounds and does not produce lossless compression as the error bound tends to zero.

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f10-part01

Figure B2 (a–c) Decompressed energy release component maps with non-NaN missing values. In the left column, the maps for the original data and decompressed data from ZFP, SZ3, and SPERR are shown in the first four rows. In the right column, the compression-safeguarded equivalents are given, which specifically preserve the missing value sentinel. The last two rows present the maps for the OptZConfig-wrapped compressors, which are tuned to preserve the missing value. For each compressor, the compression ratio and percentage of violations V are shown as well. For compressors with violations, a map of the violations in red is added. For the safeguarded compressors, a map of the one-shot corrections in dark green is overlaid. Areas with originally missing values are hatched. The results from first wrapping ZFP, SZ3, and SPERR in the numcodecs-mask meta-compressor are given in parentheses.

Table B2 Compression metrics for energy release component data with the non-NaN missing value 9999. The table compares the results of different absolute-error-bounded lossy compressors, with and without a masking meta-compressor, with and without missing value safeguards. For each compressor, the L∞ and L2 errors, the percentage of violations V, and the compression ratio CR are given. For each safeguarded compressor, the percentage of corrections C is given as well. The highest safe compression ratio is highlighted in bold.

Download Print Version | Download XLSX

B3 Example: bias in the error distribution

This appendix investigates if the compression-safeguards implementation propagates or introduces bias in the safeguarded error distribution. We use several synthetic approximation distributions for accumulated precipitation as examples. The safeguards are configured to bound the absolute error to 0.1 mm h−1 or below, and we examine the per-grid-cell mean-in-time and the global mean biases.

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f11

Figure B3 Mean error/bias maps of the compression error produced by the compression-safeguards for different synthetic approximations for three days of hourly total precipitation: constant zero in the top left, constant mean in the top right, biased by half the error bound in the bottom left, and with added uniform random noise in the bottom right. The expected range of biases for uniformly distributed i.i.d. compression errors, computed as two standard deviations of the Irwin Hall distribution, is shown as red bars over the colour bar. Each error map is hatched where the mean error is outside this expected range.

Figure B3 show that the compression-safeguards, in the absence of a safeguard for unbiased and symmetric errors, do not guard against bias in the compression error. For instance, the constant zero approximation produces negatively biased corrections for the non-negative precipitation dataset, as many values near zero lie within the error bound and thus require no corrections. Biased approximations that still fulfil the safety requirements are not corrected and propagate their bias into the safeguarded compression error. For this particular dataset, using an unbiased mean approximation does not resolve the issue but just makes the bias positive. The bias can, however, be reduced by making the approximation itself unbiased, e.g. by adding uniform random noise. While a noisy approximation produces the lowest Moran's I score in Table B3, the bias is still unexpectedly often outside the expected range, and the required additional corrections reduce the compression ratio. This example thus highlights the need for future work to provide a way for users to control the bias introduced by lossy compression and safeguarding.

Table B3 Compression metrics for different synthetic approximation distributions. For each safeguarded compressor, the L∞ and L2 errors over the precipitation PR, the global bias E[PR^-PR], the global Moran's I score, the percentage of violations V and corrections C are given. Moran's I is a measure of spatial autocorrelation in range [-1;+1], where |I|→0 indicates no correlation (Moran, 1950). Here, we compute Moran's I for the error distribution PR^-PR. Finally, the percentage of latitude-longitude pairs where the mean error is unexpectedly large, E> 95 %, is given. A location has an unexpectedly large error when the mean error is outside two standard deviations of the expected spread of the Irwin Hall distribution that models uniformly distributed i.i.d. compression errors.

Download Print Version | Download XLSX

B4 Example: logarithm as a pointwise quantity of interest

In this appendix, we introduce safeguarding pointwise quantities of interest by bounding the absolute error over the log-scale visualisation of specific humidity. log (x) is one of the simplest quantities of interest since it can be preserved in various ways:

Support for bounding the logarithmic error is sparse amongst error-bounded compressors: ZFP requires export mode to bound the relative error for normal-only values, SZ3 only supports a range-relative/normalised absolute error bound, and SPERR lacks support entirely. Therefore, we fall back to configuring each compressor with a reasonable absolute error bound of 5×10-4 kg kg−1, but also compare the results from using the numcodecs-pw-ratio meta-compressor. We configure QPET-SPERR and the safeguards to directly bound the pointwise absolute error on the decimal logarithm to 0.25 (see Listing C3). OptZConfig is configured to maximise compression while eliminating violations.

Figure B4 shows that data-error-bounded ZFP, SZ3, and SPERR all fail to preserve the logarithm, since they produce negative values whose real logarithm is undefined. Safeguarding these compressor eliminates the violations, though compression ratios decrease, particularly for SZ3. OptZConfig and QPET-SPERR also correctly preserve the quantity of interest.

The violations can also be eliminated by equivalently bounding the data ratio error with ϵratio=100.25 using the meta-compressor. In this case, the safeguards do not need to produce any corrections, and compression ratios increase drastically, as can be seen in Fig. B4 and Table B4. While the safeguarded all-zero predictor produces the best compression without using the meta-compressor, whether using a ratio error bound over the data or an absolute error bound over the quantity of interest, it is significantly outperformed by the numcodecs-pw-ratio-wrapped SZ3.

Safeguarded SPERR outperforms QPET-SPERR, likely because QPET-SPERR needs to find a near-zero global absolute error bound that avoids negative values. Similarly, all safeguarded compressors outperform the compressors tuned with OptZConfig. While we were unable to compare with QPET-SZ (see Sect. 5.2), which derives per-point absolute error bounds, we would expect it to perform better than QPET-SPERR, possibly as well as the numcodecs-pw-ratio-wrapped SZ3.

This example highlights that, in some simple cases with a single safety requirement, specialised approaches such as meta-compressors can extend the functionality of existing compressors while achieving high compression ratios. However, it may not always be possible to compose several such specialised approaches, whereas the compression-safeguards support composing arbitrary safety requirements. Importantly, approaches like the numcodecs-pw-ratio meta-compressor can be used together with the compression-safeguards, providing the best of both worlds with extended compressor functionality, higher compression ratios, and guaranteed safety.

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f12-part01

Figure B4 (a–c) Error maps for the logarithm over compressed specific humidity. The left column shows in the first four rows the maps for the original data and the errors over the logarithm of the decompressed data from ZFP, SZ3, and SPERR. In the right column, the compression-safeguarded equivalents are given, which have been configured to directly preserve the logarithmic scale. The last two rows present the maps for the OptZConfig-wrapped compressors, which are tuned to bound the error over the data logarithm, and for QPET-SPERR, which is configured like the safeguards. For compressors with violations, a map of the violations in red is added. For the safeguarded compressors, a map of the one-shot corrections in dark green is overlaid. Areas where lossy compression introduces non-positive specific humidity values, whose logarithm is undefined, are highlighted with pink outlines and hatching. The results for bounding the ratio error by first wrapping ZFP, SZ3, and SPERR in the numcodecs-pw-ratio meta-compressor are given in parentheses.

Table B4 Compression metrics for specific humidity data q. The table compares the results of different absolute-error-bounded lossy compressors, with and without the pointwise ratio error bound meta-compressor, with and without safeguards for the specific humidity logarithm. For each compressor, the L∞ errors over q and log 10(q) as well as the L2 error over log 10(q), the percentage of violations V, and the resulting compression ratio CR are given. For each safeguarded compressor, the percentage of corrections C is provided as well. The comparison also includes the safeguarded zero-predictor, first with a log 10(q) quantity of interest and second with a ratio error bound, which produce equivalent results. The highest safe compression ratio is highlighted in bold.

Download Print Version | Download XLSX

B5 Example: kinetic energy as a multi-variable pointwise quantity of interest

This appendix contains additional results for computing the kinetic energy over compressed wind u and v components using different absolute-data-error-bounded lossy compressors in Sect. 5.5. Figure B5 and Table B5 compare how the derived kinetic energy is preserved, including the results for ZFP, SZ3, and OptZConfig.

Figure B5 shows that all data-error bounded compressors violate the error bound over the derived kinetic energy, which are resolved with using either the safeguards, OptZConfig, or QPET-SPERR. Table B5 details that iteratively-reduced corrections improve the safeguarded compression ratio, by requiring fewer corrections as seen in the corrections maps in Fig. B5, and producing higher errors that only just stay below the error bound, thus making better use of the safety constraints. Even with one-shot corrections, the safeguards outperform OptZConfig and QPET-SPERR. QPET-SPERR also compresses better than SPERR tuned with OptZConfig, which indicates that correcting violations or outliers, instead of finding a smaller safe error bound, is likely superior for a non-linear quantity of interest like kinetic energy.

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f13-part01

Figure B5 (a–c) Error maps for kinetic energy derived from compressed wind components from Sect. 5.5. The left column shows in the first four rows the maps for the original data and the errors for the kinetic energy of the decompressed data from ZFP, SZ3, and SPERR. In the right column, the compression-safeguarded equivalents are given, which have been configured to bound the absolute error over the kinetic energy. The last two rows present the maps from the OptZConfig-wrapped compressors, which are tuned to similarly bound the error, and for QPET-SPERR, which is configured like the safeguards. For the safeguarded compressors, the compression ratios from iteratively-reduced corrections are given in parentheses. For compressors with violations, a map of the violations in red is added. For the safeguarded compressors, a map of the corrections is overlaid. The map is light green where the there are both the one-shot and iterative corrections and dark green where only the one-shot corrections are needed, i.e. where the iterative method was able to remove corrections.

Table B5 Compression metrics for the kinetic energy example in Sect. 5.5. For each compressor, the L∞ errors over u and v and the kinetic energy KE as well as the L2 error over KE, the percentage of violations V, and the resulting compression ratio CR are given. For each safeguarded compressor, the percentage of corrections C are provided as well. The highest safe compression ratio is highlighted in bold.

Download Print Version | Download XLSX

B6 Example: laplacian as a stencil quantity of interest

In this appendix, we introduce safeguarding higher-order spatial derivatives using the example of the Laplacian, which we have adopted from the ZFP documentation on preserving derivatives (Lawrence Livermore National Laboratory, 2024). In particular, we evaluate how the Laplacian Δu=∂u2∂x2+∂u2∂y2 of two different 2D functions u(x,y), discretised over a regular grid covering [-1,1] with 1024 grid points along both axes, is affected by compressing the discretised u[x,y] array. We evaluate the Laplacian numerically using second-order finite central differences of second-order-accuracy.

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f14

Figure B6 Laplacian of u(x,y)=(x2+y2)3/2/9 after applying lossy compression to u. The top row shows the analytical Laplacian as well as the numerically computed Laplacians over the u^ array compressed with ZFP, SZ3, and SPERR. The middle row shows the compression-safeguarded equivalents that bound the absolute error over the Laplacian. The bottom row presents the OptZConfig-wrapped compressors, which are tuned to similarly bound the error. Contour lines in light grey are shown on top of the Laplacian. For compressors with violations, a map of the violations in red is added. For the safeguarded compressors, a map of the corrections is overlaid. The map is light green where the there are both the one-shot and iterative corrections and dark green where only the one-shot corrections are needed, i.e. where the iterative method was able to remove corrections. For the safeguarded compressors, the compression ratios from using iteratively-reduced corrections are given in parentheses.

Download

Table B6 (a–b) Compression metrics for the first Laplacian example, u(x,y)=(x2+y2)3/2/9. For each compressor and for three different absolute data error bounds, the L∞ errors over u and Δu as well as the L2 error over Δu, the percentage of violations V, and the resulting compression ratio CR are given. For each safeguarded compressor and the three safeguard correction methods, the percentage of corrections C is provided as well. The highest safe compression ratio is highlighted in bold.

Download Print Version | Download XLSX

First, we take u(x,y)=(x2+y2)329, which has an analytical Laplacian of Δu=x2+y2. We configure each lossy compressor with an absolute error bound of 10−7 over the u array with the aim of bounding the absolute error over the Laplacian to ϵabs(Δu)=0.01. The safeguards are configured to directly bound the pointwise absolute error over the derived Laplacian. To simplify the quantity of interest for this first case, we assume a constant grid spacing and only evaluate the Laplacian where the second-order finite differences are defined but ignore the boundary points (see Listing C5). OptZConfig is configured to maximise compression while eliminating violations. Since QPET cannot bound the error over finite differences, we do not compare with QPET in this example (see Sect. 5.6 for further details).

Figure B6 shows that all absolute-data-error-bounded lossy compressors violate the absolute error bound of 0.01 over the Laplacian, with SZ3 producing the fewest violations while also having the highest compression ratio. With the safeguards, all violations are eliminated, though at a considerable reduction in compression ratio, particularly for SZ3. The iteratively-reduced corrections improve the compression ratios, as shown in Table B6, particularly for safeguarded SZ3. While the correction maps highlight a clear improvement in correcting fewer points, the iteratively-reduced corrections still likely overcorrect.

OptZConfig is also able to compress without violations. While tuning ZFP underperforms compared to safeguarding, OptZConfig achieves much better compression ratios with SZ3 and SPERR, clearly outperforming even iteratively-reduced safeguard corrections.

For this first case, we also investigate the impact of tuning the data error bound to produce the best safeguarded compression by testing two more compressor-dependent absolute error bounds that produce ∼1 % and zero violations, respectively. Table B6 shows that, for this example, using lower data error bounds that need fewer corrections improves the overall compression ratios. For SZ3 and SPERR, but not for ZFP, using a sufficiently low error bound that requires no corrections produces the highest compression that is still safe, which matches the results from OptZConfig. We hypothesise that the linear cost of corrections can easily bottleneck the overall compression ratio for highly efficient compressors with sub-linear cost like SZ3 and SPERR, which gives compressor-tuning an edge for this affine quantity of interest.

Second, we take u(x,y)=e4x+3y, which has an analytical Laplacian of Δu=25u. We then plot the natural logarithm of the Laplacian, making the quantity of interest non-linear. We configure each compressor with an absolute error bound of 5×10-6 over the u array with the aim of bounding the absolute error over the natural logarithm of the Laplacian to 0.1. For this second case, we no longer assume a constant grid spacing but instead pass the coordinate arrays X and Y to the SafeguardedCodec as late-bound constant parameters. Furthermore, we now use second-order central finite differences on non-boundary points and second-order forward/backwards finite differences on boundary points to evaluate the Laplacian everywhere. The complete configuration is given in Listing C6.

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f15

Figure B7Logarithm of the Laplacian of u(x,y)=e4x+3y after compressing u. The top row shows the logarithm of the analytical Laplacian as well as the numerical results from ZFP, SZ3, and SPERR, whereas the middle row shows their compression-safeguarded equivalents, which bound the absolute error over the logarithm of the Laplacian. The bottom row presents the OptZConfig-wrapped compressors, which are tuned to similarly bound the error. Contour lines in light grey are shown on top of the Laplacian. For compressors with violations, a map of the violations in red is added. For the safeguarded compressors, a map of the corrections is overlaid. The map is light green where the there are both the one-shot and iterative corrections and dark green where only the one-shot corrections are needed, i.e. where the iterative method was able to remove corrections. Areas where the logarithm is undefined are marked with pink hatching. For the safeguarded compressors, the compression ratios from using iteratively-reduced corrections are given in parentheses.

Download

Figure B7 shows that all absolute-data-error-bounded lossy compressors violate the quantity of interest, since they can produce negative Laplacian values whose logarithms are undefined. While a similar problem could be resolved in Appendix B4 by wrapping the compressors in a meta-compressor that bounds the ratio error, this is not possible here where a ratio error over the Laplacian, a complex weighted sum, would have to be preserved. The safeguards still eliminate all violations, but are required to correct most points and thus reduce the compression ratio significantly for SZ3 and SPERR. In this case, using the iteratively-reduced corrections provides less benefit. As the correction maps and Table B7 show, the reduction in the number of corrections works less well, and the safeguards very likely over-correct.

Tuning the absolute error bound of each compressor to produce no violations does not help either, since a near-zero error bound is required, and OptZConfig produced worse compression ratios than using one-shot safeguard corrections. In contrast, the safeguarded all-zero-approximation achieves the highest safe compression ratio, even outperforming unsafeguarded SZ3. Since the safeguards are able to propagate the error bound over the logarithmic quantity of interest through the logarithm and the Laplacian, the heuristic to choose well-compressible corrections can make full use of the greater range of possible corrections when correcting the well-behaved zero-entropy all-zero approximation.

Table B7 Compression metrics for the second, logarithm of the Laplacian, example, u(x,y)=e4x+3y. For each compressor, the L∞ errors over u and ln (Δu) as well as the L2 error over ln (Δu), the percentage of violations V, and the resulting compression ratio CR are given. For each safeguarded compressor and the three safeguard correction methods, the percentage of corrections C is provided as well. The highest safe compression ratio is highlighted in bold.

Download Print Version | Download XLSX

B7 Example: relative vorticity as a stencil quantity of interest

This appendix contains additional results for computing the relative vorticity over compressed wind u and v components using different absolute-data-error-bounded lossy compressors in Sect. 5.6. Figure B8 and Table B8 compare how the derived vorticity is preserved, including the results for ZFP and SZ3 and their OptZConfig-tuned counterparts.

Figure B8 shows that all lossy absolute-data-error-bounded compressors exceed the absolute vorticity error bound near the poles. Since ZFP only has a few violations, its small compression ratio is almost unaffected by the safeguards corrections. For SZ3 and particularly SPERR, which provides the highest compression ratio, safeguarding results in significant decreases in compression ratios, which can be improved by using the iteratively-reduced corrections instead of one-shot corrections. The correction maps clearly show how the iterative approach is able to better match the corrections to the violations and limit them to near the poles.

OptZConfig is also able to compress without violations, though it produces very low compression ratios that are clearly outperformed by even one-shot safeguard corrections. The worse performance likely comes from OptZConfig having to drastically reduce the compressor error bound globally to account for violations near the poles.

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f16-part01

Figure B8 (a–c) Error maps for relative vorticity derived from compressed wind components from Sect. 5.6. The left column shows in the first four rows the maps for the original data and the errors over the relative vorticity of the decompressed data from ZFP, SZ3, and SPERR. In the right column, the compression-safeguarded equivalents are given, which have been configured to bound the absolute error over the vorticity. The last two rows present the maps from the OptZConfig-wrapped compressors, which are tuned to similarly bound the error. For the safeguarded compressors, the compression ratios from iteratively-reduced corrections are given in parentheses. For compressors with violations, a map of the violations in red is added. For the safeguarded compressors, a map of the corrections is overlaid. The map is light green where the there are both the one-shot and iterative corrections and dark green where only the one-shot corrections are needed, i.e. where the iterative method was able to remove corrections.

Download

Table B8 Compression metrics for the vorticity example in Sect. 5.6. For each compressor, the L∞ errors over u and v and the relative vorticity ζ as well as the L2 error over ζ, the percentage of violations V, and the resulting compression ratio CR are given. For each safeguarded compressor, the percentage of corrections C are provided as well. The highest safe compression ratio is highlighted in bold.

Download Print Version | Download XLSX

B8 Example: data structural similarity index measure

This appendix showcases how the expressive quantity of interest support in the compression-safeguards implementation can be used to preserve a complex metric, here the structural similarity index for floating-point data, dSSIM (Baker et al., 2024). We compress a dataset of u wind component. The pointwise dSSIM between the original u and compressed u^ is then defined as:

(B1)dSSIM(u,u^)=S1(q(u),q(u^))⋅S2(q(u),q(u^)), where(B2)S1(a,b)=2μaμb+C1μa2+μb2+C1,(B3)S2(a,b)=2σa,b+C2σa2+σb2+C2,

where further C1=C2=10-8. q(x) first rescales x to [0;1] based on the combined minimum and maximum of u and u^, and then quantises the rescaled x into 256 bins, which was inspired by the rescaling and quantisation during plotting. The dSSIM captures changes in local features in the means μa and μb, variances σa and σb, and the covariance σa,b, which are all computed over a local neighbourhood using a Gaussian kernel which is typically symmetric and of size 11×11 (Baker et al., 2024). The dSSIM ranges between −1 and 1, with more similar data achieving scores closer to 1. It is usually reported as the mean over all points, excluding NaN points and boundary values where the neighbourhood is not defined.

We configure each lossy compressor with an absolute error bound of 0.1 m s−1 with the aim of achieving a dSSIM score of at least 0.995, as suggested by (Baker et al., 2024). The safeguards are configured to guarantee the dSSIM to be ≥0.995 by translating Eq. (B1) into a quantity of interest. We make use of a few tricks and simplifications in this translation:

  1. We conservatively bound the pointwise dSSIM, not the mean dSSIM, and reduce the neighbourhood size to 3×3.

  2. The rescaling range is kept constant by preserving the global minimum and maximum using two sign safeguards.

  3. The quantity of interest computes the dSSIM with respect to the original uncompressed data. The absolute error with respect to dSSIM(u,u)=1 is bounded to ϵabs(dSSIM)=1–0.995 to guarantee that dSSIM(u,u^)≥0.995.

  4. The dSSIM reference implementation (Pinard et al., 2025) avoids NaN values bleeding over in Gaussian smoothing by replacing them with Gaussian-interpolated values before the smoothing. We implement a simpler variant that excludes NaN values from the convolution, sets the corresponding per-point kernel weights to zero, and then rescales the kernel weights. Like Pinard et al. (2025), the quantity of interest returns dSSIM=NaN for data points that are NaN in the input.

Figure B9 shows that all absolute-data-error-bounded compressors violate the data structural similarity index (dSSIM) bound. Even ZFP, which usually produces lower errors for the same absolute error bound (e.g., Reichelt et al., 2026), still exceeds the pointwise dSSIM bound sufficiently often to violate the mean dSSIM bound. We also check how the SZ3 compressor performs with a pointwise normalised absolute error bound of ϵnoa=1/255, which corresponds to the bin width of the quantisation in dSSIM. Importantly, Table B9 shows that such a bound does not guarantee a high dSSIM score, because even a tiny non-zero error bound still allows values to cross quantisation bin boundaries.

The safeguards eliminate the mean dSSIM bound violation by producing overly conservative corrections everywhere that significantly reduce compression ratios for SZ3 and SPERR, which are not significantly improved by iteratively-reduced corrections. If the compression-safeguards implementation was able to preserve a mean error bound, the compression ratio would likely be higher.

To further investigate the origin of the overly conservative corrections, we also test a simplified safeguard, which we refer to as bins(256), that guarantees that the rescaled and quantised data values remain the same (see Listing C9). In effect, this method guarantees a perfect dSSIM score of 1 without requiring zero compression error. Table B9 shows that this method currently produces the same results as the more complex dSSIM quantity of interest. Since Eq. (B1) contains variances and co-variances that are calculated as non-linear sums and products, where the safeguards need to account for the worst-case error propagation, the propagated error bound is likely reduced to near-zero before propagating through the quantisation, thus arriving at the same result as the simplified safeguard. However, future improvements in the quantity of interest safeguards, e.g. incremental corrections (see Appendix B9), could allow the dSSIM quantity of interest to produce less conservative corrections.

We also examine in Table B9 how using a larger absolute data error bound ϵabs=1ms-1 impacts the safeguarded compression ratios. For all three compressors, the percentage of violations increases drastically, resulting in many more corrections. These additional corrections reduce the overall safeguarded compression ratios for SZ3 and SPERR even though the wrapped inner compressors provide better compression. For ZFP, however, the safeguarded compression ratio increases for the higher error bound, highlighting the possible benefits of compressor-specific error bound tuning.

OptZConfig, which is configured to maximise compression while bounding the mean dSSIM, also safely keeps above the mean bound. To our surprise, one-shot safeguard corrections still provide better compression than tuning, even though OptZConfig directly bounds the mean whereas the safeguards conservatively bound the pointwise dSSIM scores. This again highlights the power of the Compression Safeguards, which often only need to correct a small number of outliers.

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f17-part01

Figure B9 (a–c) Pointwise dSSIM maps for compressed u wind data. The left column shows in the first four rows the maps for the original data and the pointwise dSSIM scores for the decompressed data from ZFP, SZ3, and SPERR. In the right column, the compression-safeguarded equivalents are given, which have been configured to guarantee that the pointwise dSSIM at or above 0.995. The last two rows present the maps from the OptZConfig-wrapped compressors, which are tuned to bound the mean dSSIM. For the safeguarded compressors, the compression ratios from the iteratively-reduced corrections are given in parentheses. For unsafeguarded compressors, a map showing in orange where the pointwise dSSIM is below 0.995 is added. For the safeguarded compressors, a map of the corrections is overlaid. The map is light green where the there are both the one-shot and iterative corrections and dark green where only the one-shot corrections are needed, i.e. where the iterative method was able to remove corrections.

Download

Table B9 Compression metrics for u wind in the dSSIM example. For each compressor and for two absolute data error bounds, the L∞ and L2 errors over u, the mean E[D], minimum min(D), and maximum max(D) of the pointwise dSSIM metric D, the percentage of points where D<0.995, the success S of whether the mean dSSIM lower bound was met, and the resulting compression ratio CR are given. For each safeguarded compressor and the three correction methods, the percentage of corrections C is given as well. The table also includes results for the SZ3(ϵnoa) and Safeguarded(0, bin(256)) compressors. The highest safe compression ratio is highlighted in bold.

Download Print Version | Download XLSX

B9 Preview: incremental corrections

This appendix investigates the potential benefits of replacing the one-shot corrections in the compression-safeguards implementation with incrementally computed corrections. Incremental corrections can be less conservative for non-pointwise safeguards by conditioning the corrections for next data points on the already corrected previous points, potentially improving compression ratios. For this example, we bound the box mean u-wind to 0.1 m s−1. The unweighted box mean is computed over a five-element neighbourhood along the latitude axis (see Listing C10). With one-shot corrections, preserving a mean error has to be equivalent to preserving a pointwise error, since we need to account for the worst-case error accumulation. However, some elements could tolerate a higher error because others compressed with a lower error.

We test an ad hoc implementation for computing incremental corrections, where all data points are partitioned into K disjoint subsets. The safeguards are applied K times and given access to the corrections from prior rounds, but only the corrections for this round's subset of data points are kept. We compare two variants of this approach: the shuffled method randomly partitions the data into K=5 groups, while the step-by method partitions based on the latitude axis index modulo five. We test both with SPERR and the all-zero predictor. Here, SPERR has been configured with the peak signal-to-noise ratio bound PSNR=49.875 that effectively bounds the root mean square error to roughly 0.1 m s−1; it will exceed the conservative pointwise absolute error bound for some but not all points.

Figure B10 shows that the incremental corrections become less conservative with every round, i.e. have larger data errors that still preserve the error bound over the block mean quantity of interest. Increasingly less conservative corrections also compress better, partly because they have lower entropy, which is more prevalent for the all-zero predictor, but mainly since fewer corrections will be needed, particularly when producing sparse corrections for SPERR. Even though the step-by incremental corrections produce a clear step pattern along the longitude axis, fewer corrections are needed than for the random partitioning, as Table B10 shows.

This brief investigation highlights that further improvements in compression ratios can be achieved by computing corrections in a different order instead of all at once. However, the overall positive impact of incremental corrections on compression ratios appears to be minor, which might be improved by iteratively refining the incremental corrections in future work.

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f18-part01

Figure B10 (a–b) Data error maps for compressed u-wind that has been safeguarded to bound the absolute error over the five-element block mean along the latitude axis. Three correction methods are compared, one per row: one-short, incremental with shuffled rounds, and incremental with step-by partitions. The left column shows the results for the safeguarded all-zero predictor, the right for safeguarded SPERR. Below the error distribution histogram and above the colour bars, the relative contributions of each incremental correction round towards the overall errors are shown. The change in the per-round percentage of corrections and compression ratios is plotted in the bottom centre of each map; the final compression ratio and percentage of corrections are given in the lower left and upper right corners. The smaller sub-maps in the top left and right highlight the partition pattern and data error details around the English Channel. While the colour bar and distribution for the error over the box mean are given as well, this error is not shown in the maps.

Download

Table B10 Compression metrics for the incremental corrections example. For each compressor, the L∞ and L2 errors over u and u‾, the percentage of violations V, and the resulting compression ratio CR are given. For each safeguarded compressor and for the three correction methods, the percentage of corrections C are provided as well. The highest safe compression ratio is highlighted in bold.

Download Print Version | Download XLSX

B10 Performance evaluation

This appendix contains the throughput for the non-native lossy compressors in WASM.

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f19

Figure B11 Throughput of compression and decompression, measured in B s−1, with ZFP, SZ3, SPERR, and maximum-level Zstandard across all examples in Sect. 5 and Appendix B. The throughput is measured for the non-native single-threaded numcodecs-wasm-* compressors (see Sect. 5.2), which have significant overhead to guarantee reproducible execution. Therefore, the throughput measurements should not be directly compared with the safeguarding throughputs in Fig. 5. The distribution of the measurements is visualised with box plots, as in Fig. 5. The examples are abbreviated as NaN (missing values), MV (non-NaN missing values), log 10 (pointwise logarithm), KE (kinetic energy), Δ (Laplacian with x= const), ln Δ (logarithm of Laplacian), ζ (relative vorticity), dSSIM (dSSIM with 3×3 kernel).

Download

Our evaluation uses the numcodecs-wasm-* compressors, which provide reproducible results at the cost of significantly reduced runtime performance. Therefore, the throughput measurements of the WASM codecs should not be directly compared with the safeguarding throughputs in Fig. 5.

Figure B11 shows that ZFP has the highest compression throughput across all examples, while SPERR has the lowest. While there are some differences across examples, no clear pattern emerges. The kinetic energy and relative vorticity examples are exceptional, since they stack the wind u and v vectors into one dimension, which ZFP has to pad to size four, thus doubling its compression workload.

All three compressors have higher decompression throughputs, with ZFP again performing the best and SPERR performing the worst, with the same exception for kinetic energy and relative vorticity.

Figure B11 also compares the throughput of the lossless ZStandard compressor at its maximum level. While it has significantly lower compression throughput than SPERR, its decompression throughput typically lies between SZ3's and SPERR's, with the exception of the non-NaN missing value and logarithm of the Laplacian examples where ZStandard decompresses the fastest.

B11 ClimateBenchPress

This appendix contains additional results from ClimateBenchPress in Sect. 5.8. The safeguards eliminate all violations.

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f20

Figure B12Scorecard of four distortion metrics, compression ratios, and error bound violations for several error-bounded lossy compressors and their compression-safeguarded equivalents for the low level error bound. The dSSIM and spectral error are not computed for the CMIP6 “ta” and “tos” variables, which contain large regions of NaN values (Reichelt et al., 2026). Please see Fig. 7 for the full description.

Download

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f21

Figure B13 Scorecard of four distortion metrics, compression ratios, and error bound violations for several error-bounded lossy compressors and their compression-safeguarded equivalents for the mid level error bound. Please see Fig. 7 for the complete figure description.

Download

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f22

Figure B14 Scorecard of four distortion metrics, compression ratios, and error bound violations for several error-bounded lossy compressors and their compression-safeguarded equivalents for the high level error bound. Please see Fig. 7 for the complete figure description.

Download

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f23

Figure B15 Comparison of the full rate-distortion plots, for four distortion metrics, for several error-bounded lossy compressors, shown as solid lines, and their compression-safeguarded equivalents, shown as dotted lines. Each plot shows the compression ratio on the x-axis and a different distortion metric on the y-axis. The compression ratios and rate-distortions for each compressor are normalised across all variables as in Fig. 3 of Reichelt et al. (2026), except for dSSIM. In the dSSIM scores panel, the optimal dSSIM=1 is highlighted as a dashed line for comparison. This figure is the uncropped version of Fig. 8.

Download

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f24

Figure B16 Comparison of the compression and decompression throughput, measured in MiB s−1, across all variables in Fig. 7, for several error-bounded lossy compressors, in solid bars, and their compression-safeguarded equivalents, in hatched bars, for the low, mid, and high error bound levels from left to right. Only the absolute or relative error bounds are safeguarded, except for Safeguarded(0, dSSIM) which also guarantees a perfect dSSIM score. Each bar height represents the median across all variables, the uncertainty lines indicate the 25 % and 75 % quantiles. The throughput is measured with the single-threaded numcodecs-wasm-* compressors (see Sect. 5.2), which have significant overhead to guarantee reproducible execution. While native compressors would have significantly higher throughput, the throughput of their safeguarded counterparts would remain bottlenecked by the low throughput of computing corrections during safeguarded compression. Therefore, the throughput measurements should only be used for relative comparison between only safeguarded, or between only non-safeguarded compressors. The measurements are run on the same setup used by Reichelt et al. (2026), an AMD EPYC 9654 CPU.

Download

We also evaluate the runtime performance, i.e. the time taken to compress and decompress, using ClimateBenchPress. ClimateBenchPress also uses the numcodecs-wasm-* compressors, which provide reproducible results at the cost of significantly reduced runtime performance, which only permits relative comparisons between only safeguarded, and between only non-safeguarded compressors. While these compressors are single-threaded, they can be externally parallelised over data chunks. ClimateBenchPress can use WebAssembly-bytecode-based instruction counters to produce cross-platform reproducible instructions-per-compressed-byte measurements. Since the compression-safeguards are implemented in pure Python and are not supported by this metric, we only report the wall-clock-based throughput for each compressor, even though it is platform-dependent and contains measurement noise.

Figure B16 shows that ZFP has the highest compression throughput of the lossy error-bounded compressors and EBCC the lowest. For most compressors, excluding ZFP, decompression has significantly higher throughput than compression, with BitRound and SZ3 performing the best and SPERR the worst. Most compressors, excluding SZ3, have slightly higher compression throughput for higher error bounds, while only EBCC displays this clearly at decompression time. Applying safeguards to the compressors reduces the throughput significantly during compression, especially for ZFP, SZ3, and SPERR. At decompression time, the overhead is typically only minor, except for SZ3, where many corrections have to be decompressed. The compression throughput of the safeguarded zero-predictor is low, outperforming only safeguarded EBCC, even more so when preserving the dSSIM metric, showcasing that the compression time cost increases with the number of corrections and the complexity of the safety requirements that are being preserved. At decompression time, they have a high throughput that is significantly better than that of the other safeguarded compressors. The results mirror the outcomes from Appendix B10.

B12 Performance scaling of chunked safeguarding with the xarray-safeguards frontend

This appendix investigates the scaling of the runtime performance and memory footprint of safeguarding chunked data using the xarray-safeguards frontend (see Sect. 3.6). For this investigation, we reuse the relative vorticity example from Sect. 5.6, since relative vorticity is a non-pointwise and non-linear quantity of interest that computes spatial derivatives across the longitude and latitude axes and makes use of boundary conditions. To support cross-chunk corrections for non-pointwise safeguards, the xarray-safeguards and compression-safeguards internally extend each chunk with some overlap (see Sect. 3.6, which increases computational load. We only test the SZ3 compressor since its violations produce one-shot corrections that are spread throughout (see Fig. B8). We measure the real time, also called wall-clock time, and the allocated memory footprint across different chunkings of the data. The measurements were performed on an Apple M2 CPU running Python 3.11 with dask 2025.12.0, numpy 2.4.6, and xarray 2025.12.0.

To establish a baseline, we first measure the performance of compressing and safeguarding all data at once using the non-chunked compression-safeguards API. Next, we compare using the low-level chunked APIs in the compression-safeguards directly, again to safeguard a single chunk. Finally, we use the chunking-aware xarray-safeguards frontend to safeguard the relative vorticity across an increasing number of chunks and check that it produces equivalent corrections. Between the steps of compressing and decompressing the data, computing the corrections, compressing and decompressing the corrections, and applying the corrections, we force computation and materialise the chunked results into memory. Importantly, as this investigation is focused on chunking overheads but not on the general scalability of multi-thread or multi-node parallelism, we compute across the chunks without any multithreading, which also makes non-chunked and chunked performance measurements directly comparable.

Figure B17 shows that the costs of compressing and decompressing and applying corrections both grow as more chunks are used and the overlap between chunks increases. The highly-performant application of corrections (see Sect. 5.7) has only negligible per-chunk overhead itself, so the difference between the non-chunked baseline and single-chunk case as well as the increase in runtime likely come entirely from xarray and dask. Compressing and decompressing the corrections initially displays a similar increase, but with a higher baseline, which is likely caused by the increasing per-compression overhead. Applying corrections eventually overtakes compressing corrections in overhead; this is likely caused by xarray having to combine two arrays in application but only map over one in compression, leading to the worse scaling.

Computing the corrections, which is the most expensive operation, at first shows a very minor decrease in runtime as the number of chunks increase, before also adopting a similar runtime increase. The initial decrease likely comes from the quantity of interest implementation in the compression-safeguards, which has to check for and correct rounding errors after every propagation of the safe intervals throughout the expression tree (see Sect. 3.4). When chunks are smaller, sparse rounding error corrections only require changing smaller arrays, which reduces the total runtime, which could be employed as an internal performance optimisation in the future. As the number of chunks further increases, the per-compute-corrections and chunk-overlap overheads outweigh these small benefits.

The peak memory usage, which is primarily impacted by computing the corrections, also first declines before increasing again. The initial decrease likely comes from scheduling the chunked computations serially, such that each computation now only runs over a smaller data subset. The later decrease likely comes from the increasing memory overhead of the higher number of chunks, its associated task graph, and the required overlap between chunks. The final memory usage also increases, though its cause is less clear.

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-f25

Figure B17 Scaling of single-threaded wall-clock runtime, memory footprint, and chunk overlap with the xarray-safeguards frontend when safeguarding the relative vorticity quantity of interest (see Appendix B7) across an increasing number of chunks. The upper plot shows the wall-clock time, the middle the final and peak allocated memory usage in light and dark blue lines, respectively, and the lower plot the number of chunks and percentage of overlap between chunks. The baseline without chunking is shown as a dashed horizontal line and the measurements with the xarray-safeguards are given as solid lines. The performance is split into computing corrections in blue, losslessly compressing and decompressing corrections in orange, and applying the corrections in green.

Download

Overall, this investigation highlights that runtime and memory usage increase as the number of chunks increase, likely caused by the per-computation and chunk-overlap, and per-chunk overheads in the safeguards and xarray, respectively. The increase in runtime is outweighed by the increase in the number of chunks across the evaluated chunk sizes, suggesting that this relative vorticity case would benefit from parallelised chunked safeguarding. However, as the runtime is growing faster than the number of chunks increases, this would not hold forever. In particular, non-pointwise quantities of interest with larger stencils require greater chunk overlap, which significantly reduces the number of chunks where chunking and parallelisation still provide performance benefits.

Appendix C: Experimental Evaluation: Safeguard Configurations

C1 Example: NaN missing values

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-l01

Listing C1Configuration for bounding the absolute error and preserving NaN missing values using numcodecs-safeguards in Sect. 5.4 and Appendix B1.

Download Print Version | Download TXT

C2 Example: non-NaN missing values

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-l02

Listing C2Configuration for bounding the absolute error and preserving the special non-NaN missing value 9999 using numcodecs-safeguards in Appendix B2.

Download Print Version | Download TXT

C3 Example: logarithm as a pointwise quantity of interest

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-l03

Listing C3Configuration for bounding the the absolute error over the pointwise log 10(x) quantity of interest using numcodecs-safeguards in Appendix B4.

Download Print Version | Download TXT

C4 Example: kinetic energy as a multi-variable pointwise quantity of interest

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-l04

Listing C4Configuration for bounding the the absolute error over the multi-variable pointwise kinetic energy quantity of interest using numcodecs-safeguards in Sect. 5.5 and Appendix B5.

Download Print Version | Download TXT

C5 Example: laplacian as a stencil quantity of interest

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-l05

Listing C5Configuration for bounding the absolute error of the Laplacian over a 2D grid with fixed grid point spacing using numcodecs-safeguards in Appendix B6. The Laplacian is approximated using the 2nd order central finite difference on the inner points, but not on the boundary points.

Download Print Version | Download TXT

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-l06

Listing C6Configuration for bounding the absolute error over the natural logarithm of the Laplacian over a 2D grid with arbitrary grid point locations using numcodecs-safeguards in Appendix B6. The Laplacian is approximated using the 2nd order central finite difference on inner points and the 2nd order forward/backwards finite difference on boundary points.

Download Print Version | Download TXT

C6 Example: relative vorticity as a stencil quantity of interest

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-l07

Listing C7Configuration for bounding the absolute error of the relative vorticity over a latitude-longitude grid with arbitrary grid point locations using numcodecs-safeguards in Sect. 5.6 and Appendix B7.

Download Print Version | Download TXT

C7 Example: data structural similarity index measure

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-l08

Listing C8Configuration for ensuring a minimum pointwise 3×3 dSSIM score over a 2D grid using numcodecs-safeguards in Appendix B8.

Download Print Version | Download TXT

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-l09

Listing C9Configuration for ensuring a perfect pointwise dSSIM score using numcodecs-safeguards in Appendix B8, Sect. 5.8, and Appendix B11.

Download Print Version | Download TXT

C8 Preview: incremental corrections

https://gmd.copernicus.org/articles/19/11265/2026/gmd-19-11265-2026-l10

Listing C10Configuration for bounding the absolute error over the five-element box mean along the latitude axis using numcodecs-safeguards in Appendix B9.

Download Print Version | Download TXT

Code and data availability

All code and data are available open source from the GitHub repository at https://github.com/juntyr/compression-safeguards (last access: 20 November 2026), which is published under the Mozilla Public License 2.0. The exact version of the code that was used to produce the results and plots presented in this paper is archived on Zenodo under https://doi.org/10.5281/zenodo.23776642 (Tyree et al., 2026g). The exact version of the ClimateBenchPress code that was used in the evaluation is archived on Zenodo under https://doi.org/10.5281/zenodo.21393343 (Reichelt and Tyree, 2026).

The compression-safeguards reference implementation and its numcodecs-safeguards and xarray-safeguards frontends are published to the Python Package Index at https://pypi.org/project/compression-safeguards/ (last access: 20 November 2026), https://pypi.org/project/numcodecs-safeguards/ (last access: 20 November 2026), and https://pypi.org/project/xarray-safeguards/ (last access: 20 November 2026), respectively. They are published under the Mozilla Public License 2.0, which is a weak, file-based copyleft free and open-source license that permits commercial use and integration with differently-licensed code but ensures that modifications to the original source code files remain open-source and available for the public benefit.

Author contributions

Juniper Tyree: Conceptualisation, Methodology, Software, Investigation, Writing – Original Draft, Visualisation

Robert Underwood: Methodology, Investigation, Writing – Review and Editing

Clément Bouvier: Investigation, Writing – Review and Editing, Supervision

Daniel Köhler: Investigation, Writing – Review and Editing, Visualisation

Tim Reichelt: Investigation, Writing – Review and Editing, Visualisation

Peter Dueben: Writing – Review and Editing

Sara Faghih-Naini: Writing – Review and Editing

Heikki J. Järvinen: Writing – Review and Editing, Supervision, Funding acquisition

Milan Klöwer: Methodology, Writing – Review and Editing, Supervision

Competing interests

The contact author has declared that none of the authors has any competing interests.

Disclaimer

Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims made in the text, published maps, institutional affiliations, or any other geographical representation in this paper. The authors bear the ultimate responsibility for providing appropriate place names. Views expressed in the text are those of the authors and do not necessarily reflect the views of the publisher.

Acknowledgements

Juniper Tyree wants to thank her colleagues in the Dynamic Meteorology group at the University of Helsinki and the Climate Modelling Research Group at the University of Oxford for their valuable conversations during the development of the Compression Safeguards, in particular Clément and Victoria who always found time to give feedback and help out. Juniper wants to further thank Swayam Singh and Nathan Goldbaum for developing Numpy-QuadDType and accommodating the needs and bug fixes for this project. Juniper also wishes to acknowledge Ulla Eronen, Janika Lähdes, Niina Lehtimäki, Maria Ruuska, and Liisa Mayow from Kaskas for their fruitful work and collaboration on the infographics and pictograms for the Compression Safeguards. Most importantly, Juniper wants to express her gratitude to Arden, Keagan, and Rhea for enduring months of her struggle with floating-point arithmetic edge cases.

Financial support

Juniper Tyree, Peter Dueben, Sara Faghih-Naini, and Heikki J. Järvinen are funded by the ESiWACE3 Centre of Excellence. Funded by the European Union. This work has received funding from the European High Performance Computing Joint Undertaking (JU) under grant agreement no. 101093054. This work received 50 % complementary funding from the Research Council of Finland under grant no. 359787. Robert Underwood is funded by the National Science Foundation (NSF) CSSI “FZ” project with Grant no. 2311875. Clément Bouvier is funded by the European Union's Destination Earth Initiative (grant no. DE_340) and the Research Council of Finland (grant nos. 338615 and 337549). Daniel Köhler is funded by the University of Helsinki Doctoral School. Tim Reichelt received funding from ARIA, and DSIT, and Pillar VC under the Encode: AI for Science Fellowship. Peter Dueben acknowledges funding from the WeatherGenerator Horizon Europe project (grant no. 101187947). Milan Klöwer acknowledges funding from the Natural Environment Research Council under grant number UKRI191.

Open-access funding was provided by the Helsinki University Library.

Review statement

This paper was edited by Rolf Sander and reviewed by two anonymous referees.

References

Agarwal, T., Di, S., Liang, X., Su, Z., Li, Y., Gopalakrishnan, G., Guo, H., and Cappello, F.: TopoSZp: Lightweight Topology-Aware Error-controlled Compression for Scientific Data, arXiv [preprint], https://doi.org/10.48550/ARXIV.2602.17552, 2026. a

Ainsworth, M., Tugluk, O., Whitney, B., and Klasky, S.: Multilevel Techniques for Compression and Reduction of Scientific Data-Quantitative Control of Accuracy in Derived Quantities, SIAM J. Sci. Comput., 41, A2146–A2171, https://doi.org/10.1137/18M1208885, 2019. a

Alted, F.: c-blosc: Meta-compresion and advantages over other existing compressors, GitHub repository [code], https://github.com/Blosc/c-blosc/commit/f445706cda788b5ac52a9b5a334368cc69a06c53 (last access: 20 November 2026), 2010. a

Amici, A.: CFGRIB: easy and efficient GRIB file access in xarray, https://www.ecmwf.int/en/elibrary/80908-cfgrib-easy-and-efficient-grib-file-access-xarray (last access: 20 November 2026), 2018. a

Andersson, A., Graw, K., Schröder, M., Fennig, K., Liman, J., Bakan, S., Raphoe, N., Hollmann, R., and Klepp, C.: Hamburg Ocean Atmosphere Parameters and Fluxes from Satellite Data – HOAPS4.0, Copernicus Climate Change Service (C3S) Climate Data Store (CDS) [data set], https://doi.org/10.24381/cds.92db7fef, 2021. a

Baker, A. H.: On Preserving Scientific Integrity for Climate Model Data in the HPC Era, Compu. Sci. Eng., 23, 16–24, https://doi.org/10.1109/MCSE.2021.3119509, 2021. a

Baker, A. H., Xu, H., Dennis, J. M., Levy, M. N., Nychka, D., Mickelson, S. A., Edwards, J., Vertenstein, M., and Wegener, A.: A methodology for evaluating the impact of data compression on climate simulation data, in: Proceedings of the 23rd International Symposium on High-Performance Parallel and Distributed Computing, HPDC '14, Association for Computing Machinery, New York, NY, USA, 203–214, ISBN 9781450327497, https://doi.org/10.1145/2600212.2600217, 2014. a, b, c, d

Baker, A. H., Hammerling, D. M., Mickelson, S. A., Xu, H., Stolpe, M. B., Naveau, P., Sanderson, B., Ebert-Uphoff, I., Samarasinghe, S., De Simone, F., Carbone, F., Gencarelli, C. N., Dennis, J. M., Kay, J. E., and Lindstrom, P.: Evaluating lossy data compression on climate simulation data within a large ensemble, Geosci. Model Dev., 9, 4381–4403, https://doi.org/10.5194/gmd-9-4381-2016, 2016. a, b, c, d

Baker, A. H., Xu, H., Hammerling, D. M., Li, S., and Clyne, J. P.: Toward a Multi-method Approach: Lossy Data Compression for Climate Simulation Data, in: High Performance Computing, edited by: Kunkel, J. M., Yokota, R., Taufer, M., and Shalf, J., Springer International Publishing, Cham, 30–42, ISBN 978-3-319-67630-2, https://doi.org/10.1007/978-3-319-67630-2_3, 2017. a, b

Baker, A. H., Pinard, A., and Hammerling, D. M.: On a Structural Similarity Index Approach for Floating-Point Data, IEEE T. Vis. Comput. Gr., 30, 6261–6274, https://doi.org/10.1109/TVCG.2023.3332843, 2024. a, b, c, d, e, f

Ballester-Ripoll, R., Lindstrom, P., and Pajarola, R.: TTHRESH: Tensor Compression for Multidimensional Visual Data, IEEE T. Vis. Comput. Gr., 26, 2891–2903, https://doi.org/10.1109/TVCG.2019.2904063, 2020. a

Banerjee, T., Choi, J., Lee, J., Gong, Q., Wang, R., Klasky, S., Rangarajan, A., and Ranka, S.: An Algorithmic and Software Pipeline for Very Large Scale Scientific Data Compression with Error Guarantees, in: 2022 IEEE 29th International Conference on High Performance Computing, Data, and Analytics (HiPC), 226–235, https://doi.org/10.1109/HiPC56025.2022.00039, 2022. a

Cappello, F., Underwood, R., Alexeev, Y., Baker, A., Bozdağ, E., Burtscher, M., Chard, K., Di, S., Felker, K. G., O'Grady, P. C., Guo, H., Huang, Y., Jiang, P., Jin, S., Johansson, P., Li, S., Liang, X., Lindahl, E., Lindstrom, P., Lukić, Z., Lundborg, M., Lykov, D., Nagaso, M., Sato, K., Singh, A., Son, S. W., Song, S., Tang, W., Tao, D., Tian, J., Yoshii, K., and Zhao, K.: What to Support When You're Compressing: The State of Practice Gaps and Opportunities for Scientific Data Compression, in: Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, SC '25, Association for Computing Machinery, New York, NY, USA, 1966–1979, ISBN 9798400714665, https://doi.org/10.1145/3712285.3759856, 2025. a, b, c, d, e, f

Christopoulos, C. A., Ebrahimi, T., and Skodras, A. N.: JPEG2000: the new still picture compression standard, in: Proceedings of the 2000 ACM Workshops on Multimedia, MULTIMEDIA '00, Association for Computing Machinery, New York, NY, USA, 45–49, ISBN 1581133111, https://doi.org/10.1145/357744.357757, 2000. a

Collet, Y.: Zstandard Compression and the “application/zstd” Media Type, https://doi.org/10.17487/rfc8878, 2021. a, b, c

Copernicus Climate Change Service: Monthly and 6-hourly total column water vapour over ocean from 1988 to 2020 derived from satellite observations, Copernicus Climate Change Service (C3S) Climate Data Store (CDS) [data set], https://doi.org/10.24381/cds.92db7fef, 2022. a

Copernicus Climate Change Service, Climate Data Store: Fire danger indices historical data from the Copernicus Emergency Management Service, Copernicus Climate Change Service (C3S) Climate Data Store (CDS) [data set], https://doi.org/10.24381/cds.0e89c522, 2019. a

Delaunay, X., Courtois, A., and Gouillon, F.: Evaluation of lossless and lossy algorithms for the compression of scientific datasets in netCDF-4 or HDF5 files, Geosci. Model Dev., 12, 4099–4113, https://doi.org/10.5194/gmd-12-4099-2019, 2019. a, b

Di, S. and Cappello, F.: Fast Error-Bounded Lossy HPC Data Compression with SZ, in: 2016 IEEE International Parallel and Distributed Processing Symposium (IPDPS), 730–739, https://doi.org/10.1109/IPDPS.2016.11, 2016. a, b

Di, S., Liu, J., Zhao, K., Liang, X., Underwood, R., Zhang, Z., Shah, M., Huang, Y., Huang, J., Yu, X., Ren, C., Guo, H., Wilkins, G., Tao, D., Tian, J., Jin, S., Jian, Z., Wang, D., Rahman, M. H., Zhang, B., Song, S., Calhoun, J. C., Li, G., Yoshii, K., Alharthi, K. A., and Cappello, F.: A Survey on Error-Bounded Lossy Compression for Scientific Datasets, arXiv [preprint], https://doi.org/10.48550/ARXIV.2404.02840, 2024. a

Diffenderfer, J., Fox, A. L., Hittinger, J. A., Sanders, G., and Lindstrom, P. G.: Error Analysis of ZFP Compression for Floating-Point Data, SIAM J. Sci. Comput., 41, A1867–A1898, https://doi.org/10.1137/18M1168832, 2019. a, b

Eaton, B., Gregory, J., Drach, B., Taylor, K., Hankin, S., Caron, J., Signell, R., Bentley, P., Rappa, G., Höck, H., Pamment, A., Juckes, M., Raspaud, M., Blower, J., Horne, R., Whiteaker, T., Blodgett, D., Zender, C., Lee, D., Hassell, D., Snow, A. D., Kölling, T., Allured, D., Jelenak, A., Soerensen, A. M., Gaultier, L., Herlédan, S., Manzano, F., Bärring, L., Barker, C., and Bartholomew, S. L.: NetCDF Climate and Forecast (CF) Metadata Conventions, Zenodo, https://doi.org/10.5281/ZENODO.14274886, 2024. a

ECMWF: ECMWF's vision for Big Data, AI and cloud computing, https://climate.copernicus.eu/sites/default/files/2019-11/Martin%20Palkovic.pdf (last access: 23 December 2025), 2019. a

Fallin, A. and Burtscher, M.: Lessons Learned on the Path to Guaranteeing the Error Bound in Lossy Quantizers, arXiv [preprint], https://doi.org/10.48550/ARXIV.2407.15037, 2024. a, b, c, d, e, f

Fallin, A., Gorski, N., Agarwal, T., Wang, B., Gopalakrishnan, G., and Burtscher, M.: Fast Topology-Aware Lossy Data Compression with Full Preservation of Critical Points and Local Order, arXiv [preprint], https://doi.org/10.48550/arXiv.2603.26968, 2026. a, b, c, d, e

Flajolet, P., Éric Fusy, Gandouet, O., and Meunier, F.: HyperLogLog: the analysis of a near-optimal cardinality estimation algorithm, Discrete Mathematics & Theoretical Computer Science, DMTCS Proceedings vol. AH, 2007 Conference on Analysis of Algorithms (AofA 07), 10, https://doi.org/10.46298/dmtcs.3545, 2007. a

Fornberg, B.: Generation of finite difference formulas on arbitrarily spaced grids, Math. Comput., 51, 699–706, https://doi.org/10.1090/s0025-5718-1988-0935077-0, 1988. a

Fox, A., Diffenderfer, J., Hittinger, J., Sanders, G., and Lindstrom, P.: Stability Analysis of Inline ZFP Compression for Floating-Point Data in Iterative Methods, SIAM J. Sci. Comput., 42, A2701–A2730, https://doi.org/10.1137/19M126904X, 2020. a

Gorski, N., Liang, X., Guo, H., Yan, L., and Wang, B.: A General Framework for Augmenting Lossy Compressors With Topological Guarantees, IEEE T. Vis. Comput. Gr., 31, 3693–3705, https://doi.org/10.1109/TVCG.2025.3567054, 2025. a

Hadade, I., Klocke, D., Enkovaara, J., Lunttila, T., Rackow, T., Engels, J. F., Frauen, C., Redler, R., Kontkanen, J., Jung, T., Sein, D., Sandu, I., Reuter, B., Wedi, N., Milinski, S., Doblas-Reyes, F., Castrillo, M., Acosta, M., Girona, S., and Manninen, P.: Destination Earth: The Climate Change Adaptation Digital Twin, in: Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, SC '25, Association for Computing Machinery, New York, NY, USA, 99–110, ISBN 9798400714665, https://doi.org/10.1145/3712285.3771790, 2025. a, b

Hammerling, D. M., Baker, A. H., Pinard, A., and Lindstrom, P.: A Collaborative Effort to Improve Lossy Compression Methods for Climate Data, in: 2019 IEEE/ACM 5th International Workshop on Data Analysis and Reduction for Big Scientific Data (DRBSD-5), 16–22, https://doi.org/10.1109/DRBSD-549595.2019.00008, 2019. a, b

Han, T., Du, D., Chen, Z., Guo, S., Ouyang, W., and Bai, L.: CRA5 a high-fidelity compressed reanalysis atmospheric dataset for weather and climate research, Sci. Data, https://doi.org/10.1038/s41597-026-07381-2, 2026. a, b, c

Harris, C. R., Millman, K. J., van der Walt, S. J., Gommers, R., Virtanen, P., Cournapeau, D., Wieser, E., Taylor, J., Berg, S., Smith, N. J., Kern, R., Picus, M., Hoyer, S., van Kerkwijk, M. H., Brett, M., Haldane, A., del Río, J. F., Wiebe, M., Peterson, P., Gérard-Marchant, P., Sheppard, K., Reddy, T., Weckesser, W., Abbasi, H., Gohlke, C., and Oliphant, T. E.: Array programming with NumPy, Nature, 585, 357–362, https://doi.org/10.1038/s41586-020-2649-2, 2020. a

Hart, D.: Cheyenne and Beyond: NCAR’s Research Computing and Storage Roadmap to 2022, https://www.cisl.ucar.edu/sites/default/files/2021-10/Hart.pdf (last access: 14 July 2026), 2017. a

Hassell, D. and Cimadevilla Alvarez, E.: cmip7repack: Repack CMIP7 netCDF-4 datasets, Zenodo [code], https://doi.org/10.5281/zenodo.18849756, 2026. a

Hersbach, H., Bell, B., Berrisford, P., Biavati, G., Horányi, A., Muñoz Sabater, J., Nicolas, J., Peubey, C., Radu, R., Rozum, I., Schepers, D., Simmons, A., Soci, C., Dee, D., and Thépaut, J.-N.: ERA5 hourly data on pressure levels from 1940 to present, Copernicus Climate Change Service (C3S) Climate Data Store (CDS) [data set], https://doi.org/10.24381/cds.bd0915c6, 2018a. a, b

Hersbach, H., Bell, B., Berrisford, P., Biavati, G., Horányi, A., Muñoz Sabater, J., Nicolas, J., Peubey, C., Radu, R., Rozum, I., Schepers, D., Simmons, A., Soci, C., Dee, D., and Thépaut, J.-N.: ERA5 hourly data on single levels from 1940 to present, Copernicus Climate Change Service (C3S) Climate Data Store (CDS) [data set], https://doi.org/10.24381/cds.adbb2d47, 2018b. a

Hersbach, H., Bell, B., Berrisford, P., Hirahara, S., Horányi, A., Muñoz-Sabater, J., Nicolas, J., Peubey, C., Radu, R., Schepers, D., Simmons, A., Soci, C., Abdalla, S., Abellan, X., Balsamo, G., Bechtold, P., Biavati, G., Bidlot, J., Bonavita, M., De Chiara, G., Dahlgren, P., Dee, D., Diamantakis, M., Dragani, R., Flemming, J., Forbes, R., Fuentes, M., Geer, A., Haimberger, L., Healy, S., Hogan, R. J., Hólm, E., Janisková, M., Keeley, S., Laloyaux, P., Lopez, P., Lupu, C., Radnoti, G., de Rosnay, P., Rozum, I., Vamborg, F., Villaume, S., and Thépaut, J.-N.: The ERA5 global reanalysis, Q. J. Roy. Meteor. Soc., 146, 1999–2049, https://doi.org/10.1002/qj.3803, 2020. a

Hoyer, S. and Hamman, J.: xarray: N-D labeled arrays and datasets in Python, J. Open Res. Softw., 5, https://doi.org/10.5334/jors.148, 2017. a, b, c

Huang, H., Castruccio, S., Baker, A. H., and Genton, M. G.: Rejoinder on “Saving Storage in Climate Ensembles: A Model-Based Stochastic Approach”, J. Agric. Biol. Envir. S., 28, 370–374, https://doi.org/10.1007/s13253-023-00542-5, 2023. a, b

Huang, L. and Hoefler, T.: Compressing Multidimensional Weather and Climate Data into Neural Networks, arXiv [preprint], https://doi.org/10.48550/arXiv.2210.12538, 2023. a, b

Huang, L., Fusco, L., Scheidl, F., Zibell, J., Sprenger, M. A., Schemm, S., and Hoefler, T.: Error bounded compression for weather and climate applications, arXiv [preprint], https://doi.org/10.48550/arXiv.2510.22265, 2025. a, b, c, d, e

IEEE: IEEE Standard for Floating-Point Arithmetic, IEEE Std 754-2008, 1–70, https://doi.org/10.1109/IEEESTD.2008.4610935, 2008. a

Intergovernmental Panel on Climate Change (IPCC): Summary for Policymakers, Cambridge University Press, 3–32, https://doi.org/10.1017/9781009157896, 2023. a

Jian, Z., Di, S., Liu, J., Zhao, K., Liang, X., Xu, H., Underwood, R., Wu, S., Huang, J., Chen, Z., and Cappello, F.: CliZ: Optimizing Lossy Compression for Climate Datasets with Adaptive Fine-tuned Data Prediction, in: 2024 IEEE International Parallel and Distributed Processing Symposium (IPDPS), 417–429, https://doi.org/10.1109/IPDPS57955.2024.00044, 2024. a

Jiao, P., Di, S., Guo, H., Zhao, K., Tian, J., Tao, D., Liang, X., and Cappello, F.: Toward Quantity-of-Interest Preserving Lossy Compression for Scientific Data, Proc. VLDB Endow., 16, 697–710, https://doi.org/10.14778/3574245.3574255, 2022. a, b

Klocke, D., Frauen, C., Engels, J. F., Alexeev, D., Redler, R., Schnur, R., Haak, H., Kornblueh, L., Brüggemann, N., Chegini, F., Römmer, M., Hoffmann, L., Griessbach, S., Bode, M., Coles, J., Gila, M., Sawyer, W., Calotoiu, A., Budanaz, Y., Mazumder, P., Copik, M., Weber, B., Herten, A., Bockelmann, H., Hoefler, T., Hohenegger, C., and Stevens, B.: Computing the Full Earth System at 1 km Resolution, in: Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, SC '25, Association for Computing Machinery, New York, NY, USA, 125–136, ISBN 9798400714665, https://doi.org/10.1145/3712285.3771789, 2025. a

Klöwer, M., Razinger, M., Dominguez, J. J., Düben, P. D., and Palmer, T. N.: Compressing atmospheric data into its real information content, Nat. Comput. Sci., 1, 713–724, https://doi.org/10.1038/s43588-021-00156-2, 2021. a

Kouznetsov, R.: A note on precision-preserving compression of scientific data, Geosci. Model Dev., 14, 377–389, https://doi.org/10.5194/gmd-14-377-2021, 2021. a

Kunkel, J. M., Kuhn, M., and Ludwig, T.: Exascale storage systems: an analytical study of expenses, Supercomput. Front. Innov., 1, 116–134, https://doi.org/10.14529/jsfi140106, 2014. a

Lawrence Livermore National Laboratory: zfp and Derivatives, https://computing.llnl.gov/projects/zfp/zfp-and-derivatives (last access: 16 June 2026), 2024. a

Li, S.: H5Z-SPERR, GitHub Repository [code], https://github.com/NCAR/H5Z-SPERR, (last access: 16 June 2026), 2026. a

Li, S., Lindstrom, P., and Clyne, J.: Lossy Scientific Data Compression With SPERR, in: 2023 IEEE International Parallel and Distributed Processing Symposium (IPDPS), 1007–1017, https://doi.org/10.1109/IPDPS54959.2023.00104, 2023. a, b, c, d, e, f, g, h

Li, Y., Xia, M., Liang, X., Wang, B., Underwood, R., Di, S., Sharma, H., Beniwal, D., Cappello, F., and Guo, H.: pMSz: A Distributed Parallel Algorithm for Correcting Extrema and Morse Smale Segmentations in Lossy Compression, arXiv [preprint], https://doi.org/10.48550/arXiv.2601.01787, 2026. a, b, c, d

Liang, X., Di, S., Tao, D., Chen, Z., and Cappello, F.: An Efficient Transformation Scheme for Lossy Data Compression with Point-Wise Relative Error Bound, in: 2018 IEEE International Conference on Cluster Computing (CLUSTER), 179–189, https://doi.org/10.1109/CLUSTER.2018.00036, 2018. a

Liang, X., Whitney, B., Chen, J., Wan, L., Liu, Q., Tao, D., Kress, J., Pugmire, D., Wolf, M., Podhorszki, N., and Klasky, S.: MGARD+: Optimizing Multilevel Methods for Error-Bounded Scientific Data Reduction, IEEE T. Comput., 71, 1522–1536, https://doi.org/10.1109/TC.2021.3092201, 2022. a, b, c

Liang, X., Zhao, K., Di, S., Li, S., Underwood, R., Gok, A. M., Tian, J., Deng, J., Calhoun, J. C., Tao, D., Chen, Z., and Cappello, F.: SZ3: A Modular Framework for Composing Prediction-Based Error-Bounded Lossy Compressors, IEEE T. Big Data, 9, 485–498, https://doi.org/10.1109/TBDATA.2022.3201176, 2023. a, b, c, d, e, f, g, h, i, j

Lindstrom, P.: Fixed-Rate Compressed Floating-Point Arrays, IEEE T. Vis. Comput. Gr., 20, 2674–2683, https://doi.org/10.1109/TVCG.2014.2346458, 2014. a, b, c

Lindstrom, P.: Supporting Special Values in ZFP, Tech. rep., Office of Scientific and Technical Information (OSTI), https://doi.org/10.2172/2998448, 2025. a

Lindstrom, P., Hittinger, J., Diffenderfer, J., Fox, A., Osei-Kuffuor, D., and Banks, J.: ZFP: A compressed array representation for numerical computations, Int. J. High Perform. C., 39, 104–122, https://doi.org/10.1177/10943420241284023, 2025. a

Liu, J., Di, S., Zhao, K., Liang, X., Jin, S., Jian, Z., Huang, J., Wu, S., Chen, Z., and Cappello, F.: High-performance Effective Scientific Error-bounded Lossy Compression with Auto-tuned Multi-component Interpolation, Proc. ACM Manag. Data, 2, https://doi.org/10.1145/3639259, 2024. a, b, c

Liu, J., Jiao, P., Zhao, K., Liang, X., Di, S., and Cappello, F.: QPET: A Versatile and Portable Quantity-of-Interest-Preservation Framework for Error-Bounded Lossy Compression, Proc. VLDB Endow., 18, 2440–2453, https://doi.org/10.14778/3742728.3742739, 2025. a, b, c, d, e, f, g, h, i, j

Magri, V. A. P. and Lindstrom, P.: A General Framework for Progressive Data Compression and Retrieval, IEEE T. Vis. Comput. Gr., 30, 1358–1368, https://doi.org/10.1109/TVCG.2023.3327186, 2024. a

Meurer, A., Reines, A., Gommers, R., Fang, Y.-L. L., Kirkham, J., Barber, M., Hoyer, S., Müller, A., Zha, S., Shanabrook, S., Gacha, S. J., Lezcano-Casado, M., Fan, T. J., Reddy, T., Passos, A., Kwon, H., Oliphant, T., and Standards, C. f. P. D. A.: Python Array API Standard: Toward Array Interoperability in the Scientific Python Ecosystem, Scipy 2023, https://doi.org/10.25080/gerudo-f2bc6f59-001, 2023. a

Miles, A., jakirkham, Hamman, J., Orfanos, D. P., Bussonnier, M., Stansby, D., Moore, J., Bennett, D., Augspurger, T., Rzepka, N., Verma, S., Bourbeau, J., Fulton, A., Cherian, D., Abernathey, R., Lee, G., Kristensen, M. R. B., Spitz, H., Patel, Z., Chopra, S., Rocklin, M., Jones, M., AWA, A. B., Nunez-Iglesias, J., Durant, M., de Andrade, E. S., Schut, V., and raphael dussin: zarr-developers/zarr-python: v3.0.0, Zenodo [code], https://doi.org/10.5281/ZENODO.14622720, 2025. a

Mirowski, P., Warde-Farley, D., Rosca, M., Grimes, M. K., Hasson, Y., Kim, H., Rey, M., Osindero, S., Ravuri, S., and Mohamed, S.: Neural Compression of Atmospheric States, arXiv [preprint], https://doi.org/10.48550/arXiv.2407.11666, 2024. a, b

Moran, P. A. P.: Notes on Continuous Stochastic Phenomena, Biometrika, 37, 17, https://doi.org/10.2307/2332142, 1950. a

Okuta, R., Unno, Y., Nishino, D., Hido, S., and Loomis, C.: CuPy: A NumPy-Compatible Library for NVIDIA GPU Calculations, in: Proceedings of Workshop on Machine Learning Systems (LearningSys) in The Thirty-first Annual Conference on Neural Information Processing Systems (NIPS), http://learningsys.org/nips17/assets/papers/paper_16.pdf (last access: 20 November 2026), 2017. a

Peters-von Gehlen, K., Tyree, J., Faghih-Naini, S., Dueben, P., Squar, J., and Fuchs, A.: Lossy Data Compression Exploration in an Online Laboratory and the Link to HPC Design Decisions, Zenodo, https://doi.org/10.5281/ZENODO.15401734, 2025. a

Pinard, A., Baker, A., and Hammerling, D.: Examining Variations in the Optimal Compression Level of Spatiotemporal Datasets Determined Using the Data Structural Similarity Index Measure (DSSIM), Tech. rep., NSF National Center for Atmospheric Research, https://doi.org/10.5065/4Q49-T141, 2021a. a

Pinard, A., Baker, A., and Hammerling, D.: A Statistical Approach to Obtaining a Data Structural Similarity Index Cutoff Threshold, Tech. rep., NSF National Center for Atmospheric Research, https://doi.org/10.5065/JC2R-5289, 2021b. a

Pinard, A., Baker, A., Banihirwe, A., and Levy, M.: NCAR/ldcpy: v0.20, Zenodo [code], https://doi.org/10.5281/zenodo.15133604, 2025. a, b

Poppick, A., Nardi, J., Feldman, N., Baker, A. H., Pinard, A., and Hammerling, D. M.: A statistical analysis of lossily compressed climate model data, Comput. Geosci., 145, 104599, https://doi.org/10.1016/j.cageo.2020.104599, 2020. a

Rackow, T., Pedruzo-Bagazgoitia, X., Becker, T., Milinski, S., Sandu, I., Aguridan, R., Bechtold, P., Beyer, S., Bidlot, J., Boussetta, S., Deconinck, W., Diamantakis, M., Dueben, P., Dutra, E., Forbes, R., Ghosh, R., Goessling, H. F., Hadade, I., Hegewald, J., Jung, T., Keeley, S., Kluft, L., Koldunov, N., Koldunov, A., Kölling, T., Kousal, J., Kühnlein, C., Maciel, P., Mogensen, K., Quintino, T., Polichtchouk, I., Reuter, B., Sármány, D., Scholz, P., Sidorenko, D., Streffing, J., Sützl, B., Takasuka, D., Tietsche, S., Valentini, M., Vannière, B., Wedi, N., Zampieri, L., and Ziemen, F.: Multi-year simulations at kilometre scale with the Integrated Forecasting System coupled to FESOM2.5 and NEMOv3.4, Geosci. Model Dev., 18, 33–69, https://doi.org/10.5194/gmd-18-33-2025, 2025. a

Reich, G. and Heathcote, J.: Analysis of Generation Loss for Wavelet-Based Compression, SMPTE Motion Imaging Journal, 131, 34–42, https://doi.org/10.5594/JMI.2022.3173625, 2022. a

Reichelt, T. and Tyree, J.: ClimateBenchPress compressor, Zenodo [code], https://doi.org/10.5281/zenodo.21393343, 2026. a

Reichelt, T., Tyree, J., Klöwer, M., Dueben, P., Lawrence, B. N., Baker, A. H., Faghih-Naini, S., Hoefler, T., and Stier, P.: ClimateBenchPress (v1.0): a benchmark for lossy compression of climate data, Geosci. Model Dev., 19, 5933–5960, https://doi.org/10.5194/gmd-19-5933-2026, 2026. a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p

Ren, C., Underwood, R., Di, S., Kutay, E., Lukic, Z., Yener, A., Cappello, F., and Guo, H.: FFCz: Fast Fourier Correction for Spectrum-Preserving Lossy Compression of Scientific Data, arXiv [preprint], https://doi.org/10.48550/arXiv.2601.01596, 2026. a, b, c, d, e, f

Santoalla, D. V. and Najm, S.: ecCodes, https://www.ecmwf.int/en/elibrary/80526-eccodes (last access: 20 November 2026), 2017. a

Sather, H., Pinard, A., Baker, A. H., and Hammerling, D. M.: What can real information content tell us about compressing climate model data?, in: 2022 IEEE/ACM 8th International Workshop on Data Analysis and Reduction for Big Scientific Data (DRBSD), 29–36, https://doi.org/10.1109/DRBSD56682.2022.00009, 2022. a

Segura, H., Pedruzo-Bagazgoitia, X., Weiss, P., Müller, S. K., Rackow, T., Lee, J., Dolores-Tesillos, E., Benedict, I., Aengenheyster, M., Aguridan, R., Arduini, G., Baker, A. J., Bao, J., Bastin, S., Baulenas, E., Becker, T., Beyer, S., Bockelmann, H., Brüggemann, N., Brunner, L., Cheedela, S. K., Das, S., Denissen, J., Dragaud, I., Dziekan, P., Ekblom, M., Engels, J. F., Esch, M., Forbes, R., Frauen, C., Freischem, L., García-Maroto, D., Geier, P., Gierz, P., González-Cervera, Á., Grayson, K., Griffith, M., Gutjahr, O., Haak, H., Hadade, I., Haslehner, K., ul Hasson, S., Hegewald, J., Kluft, L., Koldunov, A., Koldunov, N., Kölling, T., Koseki, S., Kosukhin, S., Kousal, J., Kuma, P., Kumar, A. U., Li, R., Maury, N., Meindl, M., Milinski, S., Mogensen, K., Niraula, B., Nowak, J., Praturi, D. S., Proske, U., Putrasahan, D., Redler, R., Santuy, D., Sármány, D., Schnur, R., Scholz, P., Sidorenko, D., Spät, D., Sützl, B., Takasuka, D., Tompkins, A., Uribe, A., Valentini, M., Veerman, M., Voigt, A., Warnau, S., Wachsmann, F., Wacławczyk, M., Wedi, N., Wieners, K.-H., Wille, J., Winkler, M., Wu, Y., Ziemen, F., Zimmermann, J., Bender, F. A.-M., Bojovic, D., Bony, S., Bordoni, S., Brehmer, P., Dengler, M., Dutra, E., Faye, S., Fischer, E., van Heerwaarden, C., Hohenegger, C., Järvinen, H., Jochum, M., Jung, T., Jungclaus, J. H., Keenlyside, N. S., Klocke, D., Konow, H., Klose, M., Malinowski, S., Martius, O., Mauritsen, T., Mellado, J. P., Mieslinger, T., Mohino, E., Pawłowska, H., Peters-von Gehlen, K., Sarré, A., Sobhani, P., Stier, P., Tuppi, L., Vidale, P. L., Sandu, I., and Stevens, B.: nextGEMS: entering the era of kilometer-scale Earth system modeling, Geosci. Model Dev., 18, 7735–7761, https://doi.org/10.5194/gmd-18-7735-2025, 2025. a

Seitola, T., Mikkola, V., Silen, J., and Järvinen, H.: Random projections in reducing the dimensionality of climate simulation data, Tellus A, 66, 25274, https://doi.org/10.3402/tellusa.v66.25274, 2014. a

Soler, M., Plainchault, M., Conche, B., and Tierny, J.: Topologically Controlled Lossy Compression, in: 2018 IEEE Pacific Visualization Symposium (PacificVis), 46–55, https://doi.org/10.1109/PacificVis.2018.00015, 2018. a

Stevens, B., Satoh, M., Auger, L., Biercamp, J., Bretherton, C. S., Chen, X., Düben, P., Judt, F., Khairoutdinov, M., Klocke, D., Kodama, C., Kornblueh, L., Lin, S.-J., Neumann, P., Putman, W. M., Röber, N., Shibuya, R., Vanniere, B., Vidale, P. L., Wedi, N., and Zhou, L.: DYAMOND: the DYnamics of the Atmospheric general circulation Modeled On Non-hydrostatic Domains, Prog. Earth Pl. Sci., 6, https://doi.org/10.1186/s40645-019-0304-z, 2019. a

Tao, D., Di, S., Chen, Z., and Cappello, F.: Significantly Improving Lossy Compression for Scientific Data Sets Based on Multidimensional Prediction and Error-Controlled Quantization, in: 2017 IEEE International Parallel and Distributed Processing Symposium (IPDPS), 1129–1139, https://doi.org/10.1109/IPDPS.2017.115, 2017. a

The HDF Group: Hierarchical Data Format, version 5, Zenodo [code], https://doi.org/10.5281/zenodo.17808614, 2025. a

Tintó Prims, O., Redl, R., Rautenhaus, M., Selz, T., Matsunobu, T., Modali, K. R., and Craig, G.: The effect of lossy compression of numerical weather prediction data on data analysis: a case study using enstools-compression 2023.11, Geosci. Model Dev., 17, 8909–8925, https://doi.org/10.5194/gmd-17-8909-2024, 2024. a, b

Tyree, J.: #91: Fix NaN handling in the linear quantizer, GitHub Pull Request, https://github.com/szcompressor/SZ3/pull/91 (last access: 16 June 2026), 2025. a

Tyree, J.: numcodecs-wasm, GitHub repository [code], https://github.com/juntyr/numcodecs-rs/tree/main/py/numcodecs-wasm (last access: 20 November 2026), 2026. a

Tyree, J., Underwood, R., Bouvier, C., Köhler, D., Reichelt, T., Dueben, P., Faghih-Naini, S., Järvinen, H., and Klöwer, M.: Safe, Trusted, and Fearless lossy compression with Compression Safeguards, ReadTheDocs, https://compression-safeguards.readthedocs.io/ (last access: 16 June 2026), 2026a. a, b, c

Tyree, J., Underwood, R., Bouvier, C., Köhler, D., Reichelt, T., Dueben, P., Faghih-Naini, S., Järvinen, H., and Klöwer, M.: Safe, Trusted, and Fearless lossy compression with Compression Safeguards – How to safeguard ...?, ReadTheDocs, https://compression-safeguards.readthedocs.io/en/1.0.0rc1.post1/#how-to-safeguard (last access: 29 October 2026), 2026b. a

Tyree, J., Underwood, R., Bouvier, C., Köhler, D., Reichelt, T., Dueben, P., Faghih-Naini, S., Järvinen, H., and Klöwer, M.: compression-safeguards, GitHub Repository [code], https://github.com/juntyr/compression-safeguards (last access: 16 June 2026), 2026c. a, b

Tyree, J., Underwood, R., Bouvier, C., Köhler, D., Reichelt, T., Dueben, P., Faghih-Naini, S., Järvinen, H., and Klöwer, M.: compression-safeguards /examples/data, GitHub Repository [code], https://github.com/juntyr/compression-safeguards/tree/1.0.0rc1.post1/examples/data (last access: 29 October 2026), 2026d. a

Tyree, J., Underwood, R., Bouvier, C., Köhler, D., Reichelt, T., Dueben, P., Faghih-Naini, S., Järvinen, H., and Klöwer, M.: compression-safeguards /examples, GitHub Repository [code], https://github.com/juntyr/compression-safeguards/tree/1.0.0rc1.post1/examples (last access: 29 October 2026), 2026e. a

Tyree, J., Underwood, R., Bouvier, C., Köhler, D., Reichelt, T., Dueben, P., Faghih-Naini, S., Järvinen, H., and Klöwer, M.: compression-safeguards, PyPi, https://pypi.org/project/compression-safeguards/ (last access: 16 June 2026), 2026f. a

Tyree, J., Underwood, R., Bouvier, C., Köhler, D., Reichelt, T., Dueben, P., Faghih-Naini, S., Järvinen, H., and Klöwer, M.: compression-safeguards, Zenodo [code], https://doi.org/10.5281/zenodo.23776642, 2026g. a, b

Tyree, J., Underwood, R., Bouvier, C., Köhler, D., Reichelt, T., Dueben, P., Faghih-Naini, S., Järvinen, H., and Klöwer, M.: numcodecs-safeguards, PyPi, https://pypi.org/project/numcodecs-safeguards/ (last access: 16 June 2026), 2026h. a

Tyree, J., Underwood, R., Bouvier, C., Köhler, D., Reichelt, T., Dueben, P., Faghih-Naini, S., Järvinen, H., and Klöwer, M.: xarray-safeguards, PyPi, https://pypi.org/project/xarray-safeguards/(last access: 16 June 2026), 2026i. a

Underwood, R., Di, S., Calhoun, J. C., and Cappello, F.: FRaZ: A Generic High-Fidelity Fixed-Ratio Lossy Compression Framework for Scientific Floating-point Data, in: 2020 IEEE International Parallel and Distributed Processing Symposium (IPDPS), 567–577, https://doi.org/10.1109/IPDPS47924.2020.00065, 2020. a

Underwood, R., Malvoso, V., Calhoun, J. C., Di, S., and Cappello, F.: Productive and Performant Generic Lossy Data Compression with LibPressio, in: 2021 7th International Workshop on Data Analysis and Reduction for Big Scientific Data (DRBSD-7), IEEE, 1–10, https://doi.org/10.1109/DRBSD754563.2021.00005, 2021.  a, b, c, d

Underwood, R., Calhoun, J. C., Di, S., Apon, A., and Cappello, F.: OptZConfig: Efficient Parallel Optimization of Lossy Compression Configuration, IEEE T. Parall. Distr., 33, 3505–3519, https://doi.org/10.1109/TPDS.2022.3154096, 2022. a, b, c, d, e, f, g, h, i

Yan, L., Liang, X., Guo, H., and Wang, B.: TopoSZ: Preserving Topology in Error-Bounded Lossy Compression, IEEE T. Vis. Comput. Gr., 30, 1302–1312, https://doi.org/10.1109/TVCG.2023.3326920, 2024. a

Zarr developers: numcodecs, GitHub repository [code], https://github.com/zarr-developers/numcodecs (last access: 20 November 2026), 2025. a, b, c, d

Zhao, K., Di, S., Lian, X., Li, S., Tao, D., Bessac, J., Chen, Z., and Cappello, F.: SDRBench: Scientific Data Reduction Benchmark for Lossy Compressors, in: 2020 IEEE International Conference on Big Data (Big Data), 2716–2724, https://doi.org/10.1109/BigData50022.2020.9378449, 2020. a

Zhao, K., Di, S., Dmitriev, M., Tonellot, T.-L. D., Chen, Z., and Cappello, F.: Optimizing Error-Bounded Lossy Compression for Scientific Data by Dynamic Spline Interpolation, in: 2021 IEEE 37th International Conference on Data Engineering (ICDE), 1643–1654, https://doi.org/10.1109/ICDE51399.2021.00145, 2021. a, b, c

Download
Short summary
Many scientists use computers to simulate our world. This is producing too much data. Data can be made smaller using lossy compression. But many scientists fear losing important details and avoid it.

We created Compression Safeguards to protect scientists and make lossy compression safe. First, scientists say what’s important in their data. Then the Safeguards correct the compressed data so that nothing important is lost. We test many examples: Safeguards protect but make the data less smaller.

Share
Altmetrics
Final-revised paper
Preprint