File: run_nc4_comps.sh

package info (click to toggle)
netcdf-fortran 4.4.4%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,420 kB
  • ctags: 8,797
  • sloc: fortran: 51,087; f90: 20,357; sh: 11,601; ansic: 7,034; makefile: 548; pascal: 313; xml: 173
file content (23 lines) | stat: -rwxr-xr-x 887 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

# This shell script runs some test for netCDF-4. It checks that the
# HDF5 versions of the example data files match (according to ncdump)
# the netCDF-3 classic versions.

# $Id: run_nc4_comps.sh,v 1.1 2006/11/01 13:17:48 ed Exp $

set -e
echo ""
echo "*** Comparing HDF5 example data files with netCDF classic format versions."
echo "*** checking simple_xy..."
../../ncdump/ncdump -n simple_xy nc4_simple_xy.nc > simple_xy.cdl
diff -w simple_xy.cdl $srcdir/../CDL/simple_xy.cdl
echo "*** checking sfc_pres_temp..."
../../ncdump/ncdump -n sfc_pres_temp nc4_sfc_pres_temp.nc > sfc_pres_temp.cdl
diff -w sfc_pres_temp.cdl $srcdir/../CDL/sfc_pres_temp.cdl
echo "*** checking pres_temp_4D..."
../../ncdump/ncdump -n pres_temp_4D nc4_pres_temp_4D.nc > pres_temp_4D.cdl
diff -w pres_temp_4D.cdl $srcdir/../CDL/pres_temp_4D.cdl

echo "*** All HDF5 example data files passed!"
exit 0