Commit 7f17a216 authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

fixed Timpctl tests

parent 55d1f467
......@@ -6,12 +6,14 @@ test -n "$DATAPATH" || DATAPATH="@abs_top_srcdir@/test/data/"
#
FORMAT="-f srv -b 32"
#
STATS="seaspctl timpctl yearpctl monpctl daypctl yseaspctl ymonpctl ydaypctl"
STATS="pctl"
OPERTYPES="seas tim year mon day yseas ymon yday"
PCTL=50
#
NTEST=1
#
for OPERATOR in $STATS; do
for STAT in $OPERTYPES; do
OPERATOR="$STAT$STATS"
if [ -z "$1" ] || [ $NTEST == $1 ]; then
if [ $OPERATOR = daypctl ] ; then
IFILE=$DATAPATH/ts_6h_1mon
......@@ -27,7 +29,7 @@ for OPERATOR in $STATS; do
CDOTEST="${OPERATOR}"
CDOCOMMAND="$CDO $FORMAT ${OPERATOR},${PCTL} $IFILE $DATAPATH/${OPERATOR::-4}min_ref $DATAPATH/${OPERATOR::-4}max_ref $OFILE"
CDOCOMMAND="$CDO $FORMAT ${OPERATOR},${PCTL} $IFILE $DATAPATH/${STAT}min_ref $DATAPATH/${STAT}max_ref $OFILE"
echo "Running test: $NTEST"
echo "$CDOCOMMAND"
......
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