Commit 15c29f17 authored by Uwe Schulzweida's avatar Uwe Schulzweida

Added test/Fldstat2.test.in

parent c8014108
Pipeline #5692 passed with stages
in 15 minutes
......@@ -215,6 +215,7 @@ AC_CONFIG_FILES([
test/Filter.test
test/Fldpctl.test
test/Fldstat.test
test/Fldstat2.test
test/Genweights.test
test/Gradsdes.test
test/Gridarea.test
......
#! @BASH@
#
echo 1..2 # Number of tests to be executed.
#
. ./cdoTestFunctions.test
#
test -n "$CDO" || CDO="@abs_top_builddir@/src/cdo $CDO_DEBUG"
test -n "$DATAPATH" || DATAPATH="@abs_top_srcdir@/test/data/"
#
OPERATORS="fldcor fldcovar"
#
IFILE=$DATAPATH/t21_geosp_tsurf.grb
IFILE1=var1
$CDO selcode,129 $IFILE $IFILE1
IFILE2=var2
$CDO selcode,169 $IFILE $IFILE2
#
FORMAT="-f srv -b 32"
NTEST=1
#
for OPERATOR in $OPERATORS; do
if [ -z "$1" ] || [ $NTEST == $1 ]; then
OFILE=${OPERATOR}_res
RFILE=$DATAPATH/${OPERATOR}_ref
CDOTEST="$OPERATOR"
CDOCOMMAND="$CDO $FORMAT ${OPERATOR} $IFILE1 $IFILE2 $OFILE"
TESTCOMMAND="$CDO diff $OFILE $RFILE"
runTest
rm -f $OFILE
fi
let NTEST+=1
done
#
rm -f
#
exit 0
......@@ -35,6 +35,7 @@ TESTS =\
Filter.test \
Fldpctl.test \
Fldstat.test \
Fldstat2.test \
Genweights.test \
Gradsdes.test \
Gridarea.test \
......
......@@ -33,6 +33,7 @@ MONMSTAT = monmmin_ref monmmax_ref monmsum_ref monmavg_ref monmmean_ref monm
DAYMSTAT = daymmin_ref daymmax_ref daymsum_ref daymavg_ref daymmean_ref daymstd_ref daymstd1_ref daymvar_ref daymvar1_ref daymrange_ref
VERTSTAT = vertmin_ref vertmax_ref vertsum_ref vertavg_ref vertmean_ref vertstd_ref vertstd1_ref vertvar_ref vertvar1_ref vertint_ref vertrange_ref vertcum_ref
VARSSTAT = varsmin_ref varsmax_ref varssum_ref varsavg_ref varsmean_ref varsstd_ref varsstd1_ref varsvar_ref varsvar1_ref varsrange_ref
FLDSTAT2 = fldcor_ref fldovar_ref
FLDSTAT = fldmin_ref fldmax_ref fldsum_ref fldavg_ref fldmean_ref fldstd_ref fldstd1_ref fldvar_ref fldvar1_ref fldrange_ref fldkurt_ref fldskew_ref
FLDPSTAT = fldpctl1_ref fldpctl20_ref fldpctl25_ref fldpctl33_ref fldpctl50_ref fldpctl66_ref fldpctl75_ref fldpctl80_ref fldpctl99_ref fldpctl100_ref
MERSTAT = mermin_ref mermax_ref mersum_ref meravg_ref mermean_ref merstd_ref merstd1_ref mervar_ref mervar1_ref merrange_ref
......
......@@ -6,6 +6,24 @@ FORMAT="-f srv -b F32"
#
########################################################################
#
# Fldstat2
#
IFILE=t21_geosp_tsurf.grb
IFILE1=var1
$CDO selcode,129 $IFILE $IFILE1
IFILE2=var2
$CDO selcode,169 $IFILE $IFILE2
#
OFILE=fldcor_ref
$CDO $FORMAT fldcor $IFILE1 $IFILE2 $OFILE
OFILE=fldcovar_ref
$CDO $FORMAT fldcovar $IFILE1 $IFILE2 $OFILE
#
rm $IFILE1 $IFILE2
#
exit
########################################################################
#
# Vertint
#
#cdo monmean ECHAM5_T42L19.grb ECHAM5_T42L19monavg.grb
......
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