Urgent.News

What's breaking now, across thousands of outlets.

Tech

ERA5 is already gzipped. I still made it 47% smaller — losslessly.

ERA5 is already gzipped. I still made it 47% smaller — losslessly. First, the two baselines The easiest mistake to make when you write a compressor is to quote a flattering baseline while talking about a different one. So both go on the table first: Baseline Result vs the .nc on disk (ERA5 ships gzip-compressed) 1.86–1.88× , 46–47% smaller vs uncompressed float32 bytes median 10.27× Same files,…

ERA5 data files are already compressed using gzip, but a researcher managed to compress the already-compressed files even further—by 47%—without losing any information. The study focuses on ERA5's quantized float values, which are scaled by a power of two (2^E). By detecting the optimal quantization level, the algorithm can rewrite the data as integers without any rounding errors.

The compression pipeline consists of several steps: transforming the float array into lattice representation, performing first-order differencing along time, latitude, and longitude, applying zigzag encoding to signed differences, and shuffling bytes. These steps are designed to exploit the inherent structure in ERA5 data, where most of the information is packed into the low-order bytes of the integer representation.

The algorithm detects the appropriate quantization level (E) for each value by comparing the trailing zero bits of the significand and the exponent. This detection is purely algebraic and guarantees lossless compression. After encoding, the decoded data is byte-for-byte identical to the original, including special cases like -0.0, NaN, and Inf.

In practice, the new compressor achieved a 1.87× reduction in file size on a benchmark of 834 ERA5 files, saving an average of 46.8% of storage space. This approach demonstrates that it is possible to compress already-compressed ERA5 data losslessly, achieving significant gains in storage efficiency.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

My Free n8n Workflow Stops at the Hook. My $29 One Starts There: An Honest Diff

My Free n8n Workflow Stops at the Hook. My $29 One Starts There: An Honest Diff Part of my build-in-public series on running LLM workflows in n8n in production.

  • Free n8n workflow generates five hooks from a single topic using LLM branches
  • Paid Repurposing Engine workflow creates seven-day staggered content calendar
  • Paid workflow includes platform-specific nodes for character limits and content structure

Add a skip link (Web HIG tip #11)

Load your site, click the address bar, and press Tab. Count how many presses it takes to reach the first thing in the main content.

  • Add "Skip to main content" link as first tabbable element
  • Point link to id of main content, visible on focus
  • Landmarks, headings, IDs needed for link functionality

Multi-Tenant SaaS: Shared Database or One Per Tenant?

If you are building a SaaS product for more than one customer, you will have to answer one early question: how do you separate each customer's data?

  • Shared database with tenantid column offers low cost and simplicity.
  • Separate database per tenant provides strongest data isolation for compliance.
  • Starting with shared model minimizes upfront costs while establishing data separation safeguards.

More from Saturday 17 October →