Request a demo

Public dataset · Geography, weather and climate

NOAA Global Historical Climatology Network Daily (GHCN-D) in BigQuery

Daily climate records (max and min temperature, precipitation, snowfall, snow depth and more) from over 100,000 land stations in 180 countries, from 1763 to today, one table per year. All 268 tables hold 137 GiB; a recent year is about 4 GiB.

bigquery-public-data.ghcn_d · NOAA · US · Sizes measured November 23, 2026

268tables
13.6 GiBin the tables below
172,390,956rows
$0.08to scan every column once, on-demand

GHCN-Daily is NOAA's integrated database of daily climate summaries from land surface stations, built from more than 20 sources and run through a common set of quality assurance checks. The dataset description says it holds records from over 100,000 stations in 180 countries and territories, with some data from every year since 1763, and that it is updated daily.

The data is in long format: one row per station, date and element. element is the measurement code (TMAX, TMIN, PRCP, SNOW, SNWD and others) and value is in the units of NOAA's GHCN-D readme, which the year tables link to: temperatures in tenths of a degree Celsius and precipitation in tenths of a millimetre. Divide by 10 for normal units. qflag is empty when the value passed every quality check.

Year tables are named ghcnd_1763 to ghcnd_2026. Four lookup tables sit next to them: ghcnd_stations (coordinates, name, state), ghcnd_inventory (which element each station reports and for which years), ghcnd_countries and ghcnd_states. Tables from 2016 on have two extra columns, source_url and etl_timestamp, which is why they are about three times larger than earlier years.

Tables and sizes

The dataset has 268 tables; the main ones are listed.

TableRowsSizeFull scanLayout
ghcnd_202436,894,4724.0 GiB$0.02None
ghcnd_202536,359,2863.9 GiB$0.02None
ghcnd_202628,136,4913.0 GiB$0.02None
ghcnd_201534,301,5801.3 GiBunder $0.01None
ghcnd_200031,317,7701.2 GiBunder $0.01None
ghcnd_19004,455,903164 MiBunder $0.01None
ghcnd_inventory
Element coverage per station: first and last year each element was reported.
791,39193.6 MiBunder $0.01None
ghcnd_stations
One row per station: id, latitude, longitude, elevation, state, name, WMO id.
133,04116.3 MiBunder $0.01None
ghcnd_176372927.1 KiBunder $0.01None
ghcnd_countries21919.4 KiBunder $0.01None
ghcnd_states746.2 KiBunder $0.01None

Full scan = every column of the table at the on-demand list price of $6.25 per TiB, before your free TiB each month. Selecting fewer columns costs proportionally less. See BigQuery pricing.

Example queries

Daily max temperature for one station in 2024

Scans 1.2 GiB · under $0.01 on-demand

USW00094728 is New York Central Park. Reading five columns of ghcnd_2024 costs 1.20 GiB, because the table is not clustered by station.

SELECT
  date,
  value / 10 AS tmax_celsius
FROM `bigquery-public-data.ghcn_d.ghcnd_2024`
WHERE id = 'USW00094728'
  AND element = 'TMAX'
  AND qflag IS NULL
ORDER BY date;

The same station with SELECT * (expensive)

Scans 4.0 GiB · $0.02 on-demand

Same filter, all columns. The source_url and etl_timestamp columns push the scan to 3.96 GiB, the full table.

SELECT *
FROM `bigquery-public-data.ghcn_d.ghcnd_2024`
WHERE id = 'USW00094728';

Yearly average max temperature since 1900 (expensive)

Scans 94.5 GiB · $0.58 on-demand

126 year tables through the wildcard: 94.45 GiB, which is about 9% of the monthly free tier in one query.

SELECT
  EXTRACT(YEAR FROM date) AS year,
  ROUND(AVG(value) / 10, 2) AS avg_tmax_celsius
FROM `bigquery-public-data.ghcn_d.ghcnd_*`
WHERE _TABLE_SUFFIX BETWEEN '1900' AND '2025'
  AND id = 'USW00094728'
  AND element = 'TMAX'
  AND qflag IS NULL
GROUP BY year
ORDER BY year;

Same trend, one sample year every 25 years (cheap)

Scans 4.4 GiB · $0.03 on-demand

Listing seven suffixes with IN reads only those tables: 4.41 GiB. Often enough to see a long-term trend before paying for every year.

SELECT
  EXTRACT(YEAR FROM date) AS year,
  ROUND(AVG(value) / 10, 2) AS avg_tmax_celsius
FROM `bigquery-public-data.ghcn_d.ghcnd_*`
WHERE _TABLE_SUFFIX IN ('1875', '1900', '1925', '1950', '1975', '2000', '2025')
  AND id = 'USW00094728'
  AND element = 'TMAX'
  AND qflag IS NULL
GROUP BY year
ORDER BY year;

Stations within 50 km of a point

Scans 5.7 MiB · under $0.01 on-demand

Builds a GEOGRAPHY from longitude and latitude on the 16 MiB stations table.

SELECT
  id,
  name,
  ROUND(ST_DISTANCE(ST_GEOGPOINT(longitude, latitude), ST_GEOGPOINT(13.405, 52.52)) / 1000, 1) AS km
FROM `bigquery-public-data.ghcn_d.ghcnd_stations`
WHERE ST_DWITHIN(ST_GEOGPOINT(longitude, latitude), ST_GEOGPOINT(13.405, 52.52), 50000)
ORDER BY km
LIMIT 10;

Stations with temperature records from before 1850 that still report

Scans 30.1 MiB · under $0.01 on-demand

Uses ghcnd_inventory to find long records without touching the year tables.

SELECT
  i.id,
  s.name,
  i.firstyear,
  i.lastyear
FROM `bigquery-public-data.ghcn_d.ghcnd_inventory` AS i
JOIN `bigquery-public-data.ghcn_d.ghcnd_stations` AS s USING (id)
WHERE i.element = 'TMAX'
  AND i.firstyear < 1850
  AND i.lastyear >= 2025
ORDER BY i.firstyear;

Querying it cheaply

  • The year tables are neither partitioned nor clustered. Filtering on id or element still reads the whole column for the year, so a single-station query on a recent year costs about 1.2 GiB.
  • The wildcard ghcnd_* also matches ghcnd_stations, ghcnd_inventory, ghcnd_countries and ghcnd_states. Always constrain _TABLE_SUFFIX to years, for example BETWEEN '1900' AND '2025'.
  • Tables from 2016 on are about 4.2 GiB each, of which roughly two thirds is source_url and etl_timestamp. Avoid SELECT * there.
  • Use ghcnd_inventory (94 MiB) to find which stations report the element and years you need before scanning year tables.
  • If you query the same station or region repeatedly, copy the rows once into your own table partitioned by date and clustered by id.

FAQ

How much does it cost to query GHCN-D in BigQuery?

One recent year costs 1 to 4 GiB depending on the columns you select. A query over every year since 1900 is close to 100 GiB. On-demand you pay per TiB scanned after the first free TiB each month.

Is the GHCN-D dataset free?

Google pays for storing public datasets, so you never pay storage for them. You pay only for the bytes your queries scan, billed to your own project at the on-demand rate, and the first 1 TiB scanned each month is free. See BigQuery pricing.

Why is TMAX 256 instead of 25.6?

GHCN-D stores temperatures in tenths of a degree Celsius and precipitation in tenths of a millimetre, as defined in NOAA's GHCN-D readme. Divide value by 10.

What is the difference between GHCN-D and GSOD?

Both are NOAA daily station data. GHCN-D is long format (one row per element), metric, quality-flagged and still updated daily. GSOD is wide format (one row per station-day), in Fahrenheit and inches, and its feed was discontinued in 2025.

All public datasets · BigQuery cost queries · Pricing calculator

Cut BigQuery spend without guessing

Masthead attributes compute and storage cost to every project, user, pipeline and table, finds unused and dead-end tables, and shows where editions or on-demand pricing is cheaper. Mnemonic cut its BigQuery compute cost by 20% within 24 hours of onboarding.