"Fossies" - the Fresh Open Source Software Archive

Member "netcdf-fortran-4.4.5/examples/F90/run_nc4_comps.sh" (31 Jan 2019, 887 Bytes) of package /linux/misc/netcdf-fortran-4.4.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 
    3 # This shell script runs some test for netCDF-4. It checks that the
    4 # HDF5 versions of the example data files match (according to ncdump)
    5 # the netCDF-3 classic versions.
    6 
    7 # $Id: run_nc4_comps.sh,v 1.1 2006/11/01 13:17:48 ed Exp $
    8 
    9 set -e
   10 echo ""
   11 echo "*** Comparing HDF5 example data files with netCDF classic format versions."
   12 echo "*** checking simple_xy..."
   13 ../../ncdump/ncdump -n simple_xy nc4_simple_xy.nc > simple_xy.cdl
   14 diff -w simple_xy.cdl $srcdir/../CDL/simple_xy.cdl
   15 echo "*** checking sfc_pres_temp..."
   16 ../../ncdump/ncdump -n sfc_pres_temp nc4_sfc_pres_temp.nc > sfc_pres_temp.cdl
   17 diff -w sfc_pres_temp.cdl $srcdir/../CDL/sfc_pres_temp.cdl
   18 echo "*** checking pres_temp_4D..."
   19 ../../ncdump/ncdump -n pres_temp_4D nc4_pres_temp_4D.nc > pres_temp_4D.cdl
   20 diff -w pres_temp_4D.cdl $srcdir/../CDL/pres_temp_4D.cdl
   21 
   22 echo "*** All HDF5 example data files passed!"
   23 exit 0