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.
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.
| Table | Rows | Size | Full scan | Layout |
|---|---|---|---|---|
ghcnd_2024 | 36,894,472 | 4.0 GiB | $0.02 | None |
ghcnd_2025 | 36,359,286 | 3.9 GiB | $0.02 | None |
ghcnd_2026 | 28,136,491 | 3.0 GiB | $0.02 | None |
ghcnd_2015 | 34,301,580 | 1.3 GiB | under $0.01 | None |
ghcnd_2000 | 31,317,770 | 1.2 GiB | under $0.01 | None |
ghcnd_1900 | 4,455,903 | 164 MiB | under $0.01 | None |
ghcnd_inventoryElement coverage per station: first and last year each element was reported. | 791,391 | 93.6 MiB | under $0.01 | None |
ghcnd_stationsOne row per station: id, latitude, longitude, elevation, state, name, WMO id. | 133,041 | 16.3 MiB | under $0.01 | None |
ghcnd_1763 | 729 | 27.1 KiB | under $0.01 | None |
ghcnd_countries | 219 | 19.4 KiB | under $0.01 | None |
ghcnd_states | 74 | 6.2 KiB | under $0.01 | None |
Example queries
Daily max temperature for one station in 2024
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)
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)
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)
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
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
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
idorelementstill 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 matchesghcnd_stations,ghcnd_inventory,ghcnd_countriesandghcnd_states. Always constrain_TABLE_SUFFIXto years, for exampleBETWEEN '1900' AND '2025'. - Tables from 2016 on are about 4.2 GiB each, of which roughly two thirds is
source_urlandetl_timestamp. AvoidSELECT *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
dateand clustered byid.
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.
Related datasets
All public datasets · BigQuery cost queries · Pricing calculator
