#/usr/bin/ksh
#
# Script to test the ROPP9.0 version of ropp_io_vlist_size.
#

TOOL=ropp_apps_tph_tool

IFILE=data/WOP_Study_Cases_prof3_vlist_size.nc


# Cntl: ROPP8.1

OFILE=`echo $IFILE |sed -es/'.nc'/'_cntl.nc'/`
TFILE=`echo $IFILE |sed -es/'.nc'/'_cntl.out'/`

EXEC=/data/nwp1/idculv/ROPP/ropp_src/branches/dev/Share/ROPP81_prototype/ropp_apps/tools/$TOOL

echo "$EXEC  $IFILE  -n -y -t -b   -o $OFILE  -d > $TFILE 2>&1 "
      $EXEC  $IFILE  -n -y -t -b   -o $OFILE  -d > $TFILE 2>&1 

echo "ncdump -h $OFILE > $(echo $OFILE |sed -es/'.nc'/'.nd'/) "
      ncdump -h $OFILE > $(echo $OFILE |sed -es/'.nc'/'.nd'/)


# Test: ROPP9.0

OFILE=`echo $IFILE |sed -es/'.nc'/'_test.nc'/`
TFILE=`echo $IFILE |sed -es/'.nc'/'_test.out'/`

EXEC=/data/nwp1/idculv/ROPP/ropp_src/branches/dev/Share/ROPP90_prototype/ropp_apps/tools/$TOOL

echo "$EXEC  $IFILE  -n -y -t -b  -o $OFILE  -d  > $TFILE 2>&1 "
      $EXEC  $IFILE  -n -y -t -b  -o $OFILE  -d  > $TFILE 2>&1 

echo "ncdump -h $OFILE > $(echo $OFILE |sed -es/'.nc'/'.nd'/) "
      ncdump -h $OFILE > $(echo $OFILE |sed -es/'.nc'/'.nd'/)
