List of different climate data sources and their uses
Instead of clicking every single year file to download, python script can be used as:
import urllib.request
for i in range(1979,2018,1):
print('donwloading year',i)
file='ftp://ftp.cdc.noaa.gov/Datasets/ncep.reanalysis.dailyavgs/surface/slp.'+str(i)+'.nc'
data='slp.'+str(i)+'.nc'
urllib.request.urlretrieve(file, data)
This script downloads SLP daily data from 1979 to 2017 without clicking all files one by one.
Example python script for downloading from ECMWF:
from ecmwfapi import ECMWFDataServer
from numpy import*
server = ECMWFDataServer()
for i in range(1979,2018,1):
dat=str(i)+"-04-01/to/"+str(i)+"-09-30"
tar="slp_era"+str(i)+".nc"
server.retrieve({
"class": "ei",
"dataset": "interim",
"date": dat,
"expver": "1",
"grid": "1/1",
"levtype": "sfc",
"param": "151.128",
"step": "0",
"stream": "oper",
"time": "00:00:00/06:00:00/12:00:00/18:00:00",
"type": "an",
"area": "0/-180/-90/180",
"format" : "netcdf",
"target" :tar,
})
For details how to download using webAPI
The IRI Data Library is a powerful and freely accessible online data repository and analysis tool that allows a user to view, analyze, and download hundreds of terabytes of climate-related data through a standard web browser.