netcdf-c/examples/CDL/create_sample_files.sh

19 lines
575 B
Bash
Raw Normal View History

2010-06-03 21:23:50 +08:00
#!/bin/sh
# This shell script creates the netCDF example files from CDL scipts.
# $Id: create_sample_files.sh,v 1.2 2006/07/14 18:39:45 ed Exp $
set -e
echo ""
echo "*** Creating example data files from CDL scripts."
echo "*** creating simple_xy.nc..."
2011-07-28 04:48:58 +08:00
../../ncgen/ncgen -b -o simple_xy.nc $srcdir/simple_xy.cdl
2010-06-03 21:23:50 +08:00
echo "*** checking sfc_pres_temp.nc..."
2011-07-28 04:48:58 +08:00
../../ncgen/ncgen -b -o sfc_pres_temp.nc $srcdir/sfc_pres_temp.cdl
2010-06-03 21:23:50 +08:00
echo "*** checking pres_temp_4D.nc..."
2011-07-28 04:48:58 +08:00
../../ncgen/ncgen -b -o pres_temp_4D.nc $srcdir/pres_temp_4D.cdl
2010-06-03 21:23:50 +08:00
echo "*** All example creations worked!"
exit 0