---
title: "Exploring massive, real-world data sets: 100+ Years of Weather Records in ClickHouse"
description: "A billion-row NOAA GHCN climate dataset (1900–2022) is downloaded, filtered on quality flags and pivoted from one measurement per row to one row per station and day using clickhouse-local, then enriched with station coordinates parsed via the Regexp format."
url: "https://swe.quest/articles/exploring-massive-real-world-data-sets-100-years-of-weather-records-in-172f4db963c094b1"
canonical: "https://clickhouse.com/blog/real-world-data-noaa-climate-data"
source: "ClickHouse"
published: "2022-09-07"
difficulty: "medium"
kind: "How-to"
reading_minutes: 16
tags: ["analytics","data-pipelines","sql","performance"]
---

# Exploring massive, real-world data sets: 100+ Years of Weather Records in ClickHouse

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2022-09-07, 16 min read, How-to. Original: [https://clickhouse.com/blog/real-world-data-noaa-climate-data](https://clickhouse.com/blog/real-world-data-noaa-climate-data)

## Summary

A billion-row NOAA GHCN climate dataset (1900–2022) is downloaded, filtered on quality flags and pivoted from one measurement per row to one row per station and day using clickhouse-local, then enriched with station coordinates parsed via the Regexp format. The result is loaded into a MergeTree table ordered by station\_id and date. A single INFILE insert of about 1.08 billion rows took roughly 196 seconds; splitting the file into 16 parts and inserting in parallel cut that to 135 seconds, which matched the client's disk read limit. Simple queries then confirm historical records such as Furnace Creek's 56.7°C, scanning about 1 billion rows in about 0.1s.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [SQL](https://swe.quest/tags/sql.md) (Languages)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- SQL aggregation ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- ClickHouse basics ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))

## Keywords

ClickHouse, clickhouse-local, NOAA GHCN, MergeTree, AWS

## Related posts

- [ClickHouse and The One Billion Row Challenge](https://swe.quest/articles/clickhouse-and-the-one-billion-row-challenge-a492ebece6e75794.md): ClickHouse · 2024-01-23 · Medium · 8 min read · Analytics & OLAP, SQL, Performance engineering
  ClickHouse Local solves the One Billion Row Challenge (min/mean/max temperature per station from a 13GB text file) in about 20 seconds on an 8-core Hetzner VM, versus nearly 3 minutes for the Java baseline.
- [ClickHouse and The One Trillion Row Challenge](https://swe.quest/articles/clickhouse-and-the-one-trillion-row-challenge-6f10fe80ade607d9.md): ClickHouse · 2024-03-05 · Medium · 17 min read · Analytics & OLAP, Performance engineering, Cost optimization, Cloud platforms, Query engines
  ClickHouse answers Dask's One Trillion Row Challenge (min/avg/max temperature per station over 2.4TiB of Parquet in S3) in under 3 minutes for $0.56 by querying the data in place with the s3 function on an ephemeral cluster of AWS spot instances provisioned and torn down with Pulumi.
- [Getting Data Into ClickHouse - Part 1](https://swe.quest/articles/getting-data-into-clickhouse-part-1-31fa78b8cfd1bb8c.md): ClickHouse · 2022-08-26 · Medium · 11 min read · Analytics & OLAP, SQL, Databases
  ClickHouse can load a 28.7M-row, 4.6GB gzipped Hacker News CSV with a single command, using schema inference via clickhouse-local's file() and the url() table function.
- [ClickHouse Over the Years with Benchmarks](https://swe.quest/articles/clickhouse-over-the-years-with-benchmarks-4ccceaaaa0dadc4e.md): ClickHouse · 2022-06-14 · Medium · 17 min read · Analytics & OLAP, Performance engineering, Databases
  Every ClickHouse release from 1.1.54378 (April 2018) onward was installed on one AWS m5.8xlarge and run through the Star Schema Benchmark, the Brown University benchmark and ClickHouse's own hits benchmark to see how performance changed over time.
- [How Real Estate Analytics made its data pipeline 50x faster with ClickHouse](https://swe.quest/articles/how-real-estate-analytics-made-its-data-pipeline-50x-faster-with-clickhouse-db89e32ee24fd3bf.md): ClickHouse · 2025-04-24 · Easy · 6 min read · Analytics & OLAP, Data pipelines, Databases, Performance engineering
  Real Estate Analytics replaced a MongoDB-based architecture with ClickHouse to serve user-selectable slicing across 200+ columns on 3-20 million row tables.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
