2010-06-03 21:24:43 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# This shell gets files from the netCDF ftp site for testing.
|
|
|
|
|
|
|
|
# $Id: run_get_hdf4_files.sh,v 1.4 2009/07/15 15:16:05 ed Exp $
|
|
|
|
|
|
|
|
set -e
|
|
|
|
echo ""
|
|
|
|
file_list="AMSR_E_L2_Rain_V10_200905312326_A.hdf AMSR_E_L3_DailyLand_V06_20020619.hdf \
|
|
|
|
MYD29.A2009152.0000.005.2009153124331.hdf MYD29.A2002185.0000.005.2007160150627.hdf \
|
|
|
|
MOD29.A2000055.0005.005.2006267200024.hdf"
|
|
|
|
echo "Getting HDF4 test files $file_list"
|
|
|
|
|
|
|
|
for f1 in $file_list
|
|
|
|
do
|
|
|
|
if ! test -f $f1; then
|
2014-07-21 07:14:17 +08:00
|
|
|
curl -O "ftp://ftp.unidata.ucar.edu/pub/netcdf/sample_data/hdf4/$f1.gz"
|
2010-06-03 21:24:43 +08:00
|
|
|
gunzip $f1.gz
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "SUCCESS!!!"
|
|
|
|
|
|
|
|
exit 0
|