The National Oceanic and Atmospheric Administration (NOAA) Integrated Surface Database (ISD) provides one of the richest sources of historical weather data consisting of hourly and synpoptic observation. This blog will introuce the simple way to retrieve and process the raw data into Python dataframe.
Selection of weather station
Based on the location of the city/sampling site, we could seach for the best/most close weather station for getting its ID. Here, Milan, Italy will be treated as the example, and the main procedures are listed as follows. The detailed information of weathe station globally can be downloaded here link.
1 | import pandas as pd |
A more visualized way could be achieved through this link Find a station.
FTP downloading and processing
1 | from ftplib import FTP |
Done!
Reference
How We Process the NOAA Integrated Surface Database Historical Weather Data
Preparing the NOAA ISD, Hourly, Global Dataset for Time-series Databases
Kommentare