wget

easy to get data from ftp server or website directly

 

<Sample>

wget_air.csh  (for downloading data at http://clima-dods.ictp.it/data/d9/ERAIN150/ )

———–inside————-

#!/bin/csh

set var = ‘air’
@ x = 1979

while ($x <= 2010)
echo $x
wget -r http://clima-dods.ictp.it/data/d9/ERAIN150/$x/$var.$x.00.nc
wget -r http://clima-dods.ictp.it/data/d9/ERAIN150/$x/$var.$x.06.nc
wget -r http://clima-dods.ictp.it/data/d9/ERAIN150/$x/$var.$x.12.nc
wget -r http://clima-dods.ictp.it/data/d9/ERAIN150/$x/$var.$x.18.nc
@ x += 1
end

————————————

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s