TerraCodec: Compressing Optical Earth Observation Data

Julen Costa-Watanabe, Isabelle Wittmann, Benedikt Blumenstiel, Konrad Schindler
10/14/2025
cs.CV

Official code: IBM/TerraCodec (24 stars, Apache-2.0, last commit 2026-03-12).

Abstract

Earth observation (EO) satellites produce massive streams of multispectral image time series, posing pressing challenges for storage and transmission. Yet, learned EO compression remains fragmented and lacks publicly available, large-scale pretrained codecs. Moreover, prior work has largely focused on image compression, leaving temporal redundancy and EO video codecs underexplored. To address these gaps, we introduce TerraCodec (TEC), a family of learned codecs pretrained on Sentinel-2 EO data. TEC includes efficient multispectral image variants and a Temporal Transformer model (TEC-TT) that leverages dependencies across time. To overcome the fixed-rate setting of today's neural codecs, we present Latent Repacking, a novel method for training flexible-rate transformer models that operate on varying rate-distortion settings. TerraCodec outperforms classical codecs, achieving 3-10x higher compression at equivalent image quality. Beyond compression, TEC-TT enables zero-shot cloud inpainting, surpassing state-of-the-art methods on the AllClear benchmark. Our results establish neural codecs as a promising direction for Earth observation. Our code and models are publically available at https://github.com/IBM/TerraCodec.

View on arXivView PDF

Code Implementations(1)

IBM/TerraCodecOfficial100%
Apache-2.0

Compressing Optical Earth Observation Data

240Python, Jupyter NotebookNov 25, 20257 months agoApache-2.0

Similar Papers

Cite this paper

@article{costawatanabe2025terracodec,
  title  = {TerraCodec: Compressing Optical Earth Observation Data},
  author = {Julen Costa-Watanabe and Isabelle Wittmann and Benedikt Blumenstiel and Konrad Schindler},
  year   = {2025},
  eprint = {2510.12670},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.12670v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.12670.svg)](https://codeofpaper.com/paper/2510.12670)

Discussion