Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions bin/get_ecmwf
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,17 @@ do
year=`echo $f | gawk 'BEGIN {FS="/"} {print substr($(NF),5,4)}'`

ftp_link=ftp://ftp.ceda.ac.uk/badc/ecmwf-era-interim/data/gg/ap/$year/$month/$day/$f

echo $day
file=${f}
mkdir $date
cd $date

# make the director for specifc date if it didn't exist!
if [ ! -d "$date" ] ; then
mkdir $date
fi

cd $date
echo $file
ncftpget -u $username -p $password $ftp_link
cd ..

done