mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-09 08:11:38 +08:00
25 lines
600 B
Bash
Executable File
25 lines
600 B
Bash
Executable File
#!/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
|
|
curl -O "ftp://ftp.unidata.ucar.edu/pub/netcdf/sample_data/hdf4/$f1.gz"
|
|
gunzip $f1.gz
|
|
fi
|
|
done
|
|
|
|
echo "SUCCESS!!!"
|
|
|
|
exit 0
|