Automated download of NetCDF file

netcdf, python

Solution

I would use `urllib` to retrieve the file

like this:

urllib.urlretrieve(url, filename)

where `url` is the url of the download and `filename` is the what you want to name the file

Problem

Just wondered if anyone could help I'm trying to download a NetCDF file from the internet within my code. The website is wish to download from is: http://www.esrl.noaa.gov/psd/cgi-bin/db_search/DBListFiles.pl?did=3&tid=38354&vid=20 the file name which I would like to download is air.sig995.2013.nc and if its downloaded manually the link is: ftp://ftp.cdc.noaa.gov/Datasets/ncep.reanalysis.dailyavgs/surface/air.sig995.2013.nc Thanks

Original source