Economic Impact of Thermal Inversions

EDC Card — Economic Impact of Thermal Inversions
Thermal Inversions Climate Data Analysis Geospatial Data Climate Data Store (CDS) Multiprocessing Polars Haversine Sustainable Computing
Case study

Introduction

Can climate data reveal how weather shifts impact global economies? PhD researchers Vinh Phan and Fiorella Parra Mujica set out to measure the economic toll of “thermal inversions”: a weather phenomenon where a layer of warm air acts like a lid, trapping pollution and smog close to the ground. Because these stagnant conditions cause health hazards and disrupt daily life, they can have massive ripple effects on a country’s economy. To study this, the research team gathered five years of global geographic data from the Climate Data Store. However, they hit a wall: their computers lacked the power to handle such a massive dataset, and their initial code was running too slowly to be practical.

EDC support

EDC’s data lab re-engineered the pipeline. First, they rewrote the researchers’ initial code, from R to Python and using a “multiprocessing” approach: essentially teaching the computers to tackle multiple massive calculation tasks at the exact same time. Second, the EDC team fixed a critical data error: the original code calculated geographic distances as if the Earth were flat. The EDC replaced this with a matrix-based Haversine formula that accounts for Earth’s curvature, preventing data distortion and ensuring highly accurate results. By running these heavy computations on the EDC’s own high-performance (high-RAM), high-memory workstations, the team avoided the need for expensive external supercomputers and reduced costs.

  • Optimised Python rewrite of an R-based workflow
  • Multiprocessing for major runtime reductions
  • Accurate geodesic distances via Haversine matrices
  • Execution on EDC high-RAM machines for cost efficiency
Visual showing the difference between a normal state and thermal inversions.
How thermal inversions happen.

Impact

  • Data processing times reduced by 80%+
  • Lower energy consumption and improved data quality
  • Analysis completed at a fraction of expected cost and time
  • Tailored technical support blending sustainable computing, smart optimisation and domain consulting

Testimonial

Vinh Phan PhD Researcher

The collaboration with the EDC was very helpful for us in optimising our process. EDC scientists quickly understood our problem and what we were trying to achieve, creating a seamless transition to a faster pipeline. We saved significant computing resources due to faster processing time and, equally important, we can learn from and build upon the new code thanks to the detailed documentation provided.

Further reading

  • Climate Data Store (CDS)
  • Haversine distance (geodesic)
  • Polars & multiprocessing patterns
NL