Skip to content

njason/noaa-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOAA Tools for NCDC GHCN (Global Historical Climatology Network)

Collection of scripts for aggregating data from GHCNd.

Get Data files

Web Tool

For small amounts of data, use the NOAA Climate Data Online Search utility. It has a limit of 10,000 station days per order.

Set Dataset to Daily Summaries, select desired date range and location. Next click the SEARCH button. Select the desired location details on the left in the next screen and add to cart. Next checkout but clicking on the cart in the top right corner and clicking VIEW ALL ITEMS (1). In this screen, set the Output Format to Custom GHCN-Daily CSV, then click CONTINUE. On the next screen enter your email address and click SUBMIT ORDER. Then you will have to wait for the system to email you the CSV report. The time you have to wait depends on the size of the report. Small reports take minutes, big reports can take hours.

NOTE the input report csv file must be ascending order by date, but this is how it is given from the NOAA online search. Incomplete years are discarded from the output file.

$ python <python script> <path to CSV report file>

A new CSV file will be created in the same location as the input file with grow-seasons at the end of the file name.

FTP

For bigger datasets, use the FTP server. With an FTP client, open ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/. Find the station's ID in /pub/data/ghcn/daily/ghcnd-stations.txt, then download the file with the station ID name in the by_station directory on the FTP server.

The FTP data file is in a different format than the web tool, use the -f flag to indicate the FTP format.

$ python -f <python script> <path to CSV report file>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published