Commit 2d402b0b authored by Uwe Schulzweida's avatar Uwe Schulzweida

test: changed == to =

parent 4feab587
......@@ -2,7 +2,7 @@
#
CDODEBUG=0
#
if [ "$CDODEBUG" == 0 ]; then CDO="$CDO -s"; fi
if [ "$CDODEBUG" = 0 ]; then CDO="$CDO -s"; fi
CDOOUT=cout
CDOERR=cerr
REFVAL="12.5663706"
......@@ -20,7 +20,7 @@ done
rm -f $CDOOUT $CDOERR
unset PLANET_RADIUS
#
if [ "$CDODEBUG" == 1 ]; then
if [ "$CDODEBUG" = 1 ]; then
echo "rstat: $RSTAT"
fi
#
......
......@@ -5,7 +5,7 @@
#
CDODEBUG=0
#
if [ "$CDODEBUG" == 0 ]; then CDO="$CDO -s"; fi
if [ "$CDODEBUG" = 0 ]; then CDO="$CDO -s"; fi
CDOOUT=cout
CDOERR=cerr
FORMAT="-f srv -b 32"
......@@ -18,17 +18,17 @@ for GRIDTYPE in " " "-setgridtype,curvilinear" "-setgridtype,unstructured"; do
for GRID in $GRIDS; do
# remaplaf: sort could give different results"
RMODS="bil bic nn con"
if [ "$GRIDTYPE" == "-setgridtype,unstructured" ]; then RMODS="nn con"; fi
if [ "$GRIDTYPE" = "-setgridtype,unstructured" ]; then RMODS="nn con"; fi
for RMOD in $RMODS; do
OFILE=${GRID}_${RMOD}
RFILE=$DATAPATH/${OFILE}_ref
$CDO $FORMAT remap${RMOD},$GRID $GRIDTYPE $IFILE ${OFILE} > $CDOOUT 2> $CDOERR
if [ $? != 0 ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ "$CDODEBUG" == 1 ]; then cat $CDOOUT $CDOERR; fi
if [ "$CDODEBUG" = 1 ]; then cat $CDOOUT $CDOERR; fi
$CDO diff $OFILE $RFILE > $CDOOUT 2> $CDOERR
if [ $? != 0 ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ -s $CDOOUT ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ "$CDODEBUG" == 1 ]; then cat $CDOOUT $CDOERR; fi
if [ "$CDODEBUG" = 1 ]; then cat $CDOOUT $CDOERR; fi
rm -f $OFILE
done
done
......@@ -36,7 +36,7 @@ done
#
rm -f $CDOOUT $CDOERR
#
if [ "$CDODEBUG" == 1 ]; then
if [ "$CDODEBUG" = 1 ]; then
echo "rstat: $RSTAT"
fi
#
......
......@@ -2,7 +2,7 @@
#
CDODEBUG=0
#
if [ "$CDODEBUG" == 0 ]; then CDO="$CDO -s"; fi
if [ "$CDODEBUG" = 0 ]; then CDO="$CDO -s"; fi
CDOOUT=cout
CDOERR=cerr
FORMAT=""
......@@ -13,11 +13,11 @@ RFILE=$DATAPATH/gp2sp_ref
OFILE=gp2sp_res
$CDO $FORMAT gp2sp $IFILE $OFILE > $CDOOUT 2> $CDOERR
if [ $? != 0 ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ "$CDODEBUG" == 1 ]; then cat $CDOOUT $CDOERR; fi
if [ "$CDODEBUG" = 1 ]; then cat $CDOOUT $CDOERR; fi
$CDO diff $OFILE $RFILE > $CDOOUT 2> $CDOERR
if [ $? != 0 ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ -s $CDOOUT ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ "$CDODEBUG" == 1 ]; then cat $CDOOUT $CDOERR; fi
if [ "$CDODEBUG" = 1 ]; then cat $CDOOUT $CDOERR; fi
rm -f $OFILE
#
IFILE=$DATAPATH/gp2sp_ref
......@@ -25,11 +25,11 @@ RFILE=$DATAPATH/sp2gp_ref
OFILE=sp2gp_res
$CDO $FORMAT sp2gp $IFILE $OFILE > $CDOOUT 2> $CDOERR
if [ $? != 0 ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ "$CDODEBUG" == 1 ]; then cat $CDOOUT $CDOERR; fi
if [ "$CDODEBUG" = 1 ]; then cat $CDOOUT $CDOERR; fi
$CDO diff $OFILE $RFILE > $CDOOUT 2> $CDOERR
if [ $? != 0 ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ -s $CDOOUT ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ "$CDODEBUG" == 1 ]; then cat $CDOOUT $CDOERR; fi
if [ "$CDODEBUG" = 1 ]; then cat $CDOOUT $CDOERR; fi
rm -f $OFILE
#
IFILE=$DATAPATH/t21_geosp_tsurf.grb
......@@ -37,11 +37,11 @@ RFILE=$DATAPATH/gp2spl_ref
OFILE=gp2spl_res
$CDO $FORMAT gp2spl $IFILE $OFILE > $CDOOUT 2> $CDOERR
if [ $? != 0 ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ "$CDODEBUG" == 1 ]; then cat $CDOOUT $CDOERR; fi
if [ "$CDODEBUG" = 1 ]; then cat $CDOOUT $CDOERR; fi
$CDO diff $OFILE $RFILE > $CDOOUT 2> $CDOERR
if [ $? != 0 ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ -s $CDOOUT ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ "$CDODEBUG" == 1 ]; then cat $CDOOUT $CDOERR; fi
if [ "$CDODEBUG" = 1 ]; then cat $CDOOUT $CDOERR; fi
rm -f $OFILE
#
IFILE=$DATAPATH/gp2spl_ref
......@@ -49,16 +49,16 @@ RFILE=$DATAPATH/sp2gpl_ref
OFILE=sp2gpl_res
$CDO $FORMAT sp2gpl $IFILE $OFILE > $CDOOUT 2> $CDOERR
if [ $? != 0 ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ "$CDODEBUG" == 1 ]; then cat $CDOOUT $CDOERR; fi
if [ "$CDODEBUG" = 1 ]; then cat $CDOOUT $CDOERR; fi
$CDO diff $OFILE $RFILE > $CDOOUT 2> $CDOERR
if [ $? != 0 ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ -s $CDOOUT ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ "$CDODEBUG" == 1 ]; then cat $CDOOUT $CDOERR; fi
if [ "$CDODEBUG" = 1 ]; then cat $CDOOUT $CDOERR; fi
rm -f $OFILE
#
rm -f $CDOOUT $CDOERR
#
if [ "$CDODEBUG" == 1 ]; then
if [ "$CDODEBUG" = 1 ]; then
echo "rstat: $RSTAT"
fi
#
......
......@@ -2,7 +2,7 @@
#
CDODEBUG=0
#
if [ "$CDODEBUG" == 0 ]; then CDO="$CDO -s"; fi
if [ "$CDODEBUG" = 0 ]; then CDO="$CDO -s"; fi
CDOOUT=cout
CDOERR=cerr
STATS="min max sum avg mean std std1 var var1"
......@@ -15,17 +15,17 @@ for STAT in $STATS; do
OFILE=tim${STAT}_res
$CDO tim${STAT} $IFILE $OFILE > $CDOOUT 2> $CDOERR
if [ $? != 0 ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ "$CDODEBUG" == 1 ]; then cat $CDOOUT $CDOERR; fi
if [ "$CDODEBUG" = 1 ]; then cat $CDOOUT $CDOERR; fi
$CDO diff $OFILE $RFILE > $CDOOUT 2> $CDOERR
if [ $? != 0 ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ -s $CDOOUT ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ "$CDODEBUG" == 1 ]; then cat $CDOOUT $CDOERR; fi
if [ "$CDODEBUG" = 1 ]; then cat $CDOOUT $CDOERR; fi
rm -f $OFILE
done
#
rm -f $CDOOUT $CDOERR
#
if [ "$CDODEBUG" == 1 ]; then
if [ "$CDODEBUG" = 1 ]; then
echo "rstat: $RSTAT"
fi
#
......
......@@ -2,7 +2,7 @@
#
CDODEBUG=0
#
if [ "$CDODEBUG" == 0 ]; then CDO="$CDO -s"; fi
if [ "$CDODEBUG" = 0 ]; then CDO="$CDO -s"; fi
CDOOUT=cout
CDOERR=cerr
FORMAT="-f srv -b 32"
......@@ -14,16 +14,16 @@ RFILE=$DATAPATH/ml2pl_ref
OFILE=ml2pl_res
$CDO $FORMAT ml2pl,92500,85000,50000,20000 $IFILE $OFILE > $CDOOUT 2> $CDOERR
if [ $? != 0 ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ "$CDODEBUG" == 1 ]; then cat $CDOOUT $CDOERR; fi
if [ "$CDODEBUG" = 1 ]; then cat $CDOOUT $CDOERR; fi
$CDO diff $OFILE $RFILE > $CDOOUT 2> $CDOERR
if [ $? != 0 ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ -s $CDOOUT ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ "$CDODEBUG" == 1 ]; then cat $CDOOUT $CDOERR; fi
if [ "$CDODEBUG" = 1 ]; then cat $CDOOUT $CDOERR; fi
rm -f $OFILE
#
rm -f $CDOOUT $CDOERR
#
if [ "$CDODEBUG" == 1 ]; then
if [ "$CDODEBUG" = 1 ]; then
echo "rstat: $RSTAT"
fi
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment