How do I use wget to download data?

Wget is a free network utility you can use to download files referenced by URLs, such as THREDDS and OPeNDAP files. Wget is available in all Linux distributions, UNIX versions, and as a GNU package for many Windows versions. Wget can be used with a single URL or with a text file containing multiple URLs and has a number of useful options, consult your man pages or documentation for availability.

Wget is used on the terminal/command line, followed by the URL:

wget https://ds.nccs.nasa.gov/thredds/ncss/NEX-GDDP/IND/BCSD/historical/day/atmos/tasmin/r1i1p1/v1.0/tasmin_day_BCSD_historical_r1i1p1_inmcm4_2005.nc?disableLLSubset=on&disableProjSubset=on&horizStride=1&time_start=2005-01-01T12%3A00%3A00Z&time_end=2005-12-31T12%3A00%3A00Z&timeStride=1

For instructions on how to generate the above URL, see the section titled “Where do I find the dataset and variable URLs to use with my application, e.g. wget, GrADS?”


Category:

Tags: