chi777 / noaa_historical_weather_data_csv_converter

NOAA Historical weather data CSV converter

NOAA publishes an amazing trove of historical weather data from stations all over the world – – but in a rather awkward format: each year is a separate folder, in which each station is one file, identified by two arbitrary ref numbers. Each file is gzipped text in a rather non-standard format with some inconvenient features like NULL tokens varying per field, and numbers being concatenated together with flags that give interpretation information:

This script lets the user specify a station and a number of years to download. It then iterates through, downloading enough years, parsing them into a much more standard CSV format read for use in (e.g.) Excel or Tableau, and concatenating them into one continuous file per station.

Here’s an example of what you can make with the output:

Forked from ScraperWiki

This scraper has not yet been run


Total run time: less than 5 seconds

Total cpu time used: less than 5 seconds

Total disk space used: 36.4 KB