Commit e4b9f205 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Added Runpctl.test.in.

parent 35461161
......@@ -25832,7 +25832,7 @@ ac_config_files="$ac_config_files test/Cat.test test/Gridarea.test test/Genweigh
 
ac_config_files="$ac_config_files test/EOF.test test/Select.test test/Spectral.test test/Vertint.test"
 
ac_config_files="$ac_config_files test/Timstat.test test/Timselstat.test test/Seasstat.test test/Runstat.test test/Multiyearstat.test test/Ydrunstat.test"
ac_config_files="$ac_config_files test/Timstat.test test/Timselstat.test test/Seasstat.test test/Runstat.test test/Runpctl.test test/Multiyearstat.test test/Ydrunstat.test"
 
ac_config_files="$ac_config_files test/Gridboxstat.test test/Vertstat.test test/Fldstat.test test/Fldpctl.test test/Ensstat.test test/Enspctl.test"
 
......@@ -27107,6 +27107,7 @@ do
"test/Timselstat.test") CONFIG_FILES="$CONFIG_FILES test/Timselstat.test" ;;
"test/Seasstat.test") CONFIG_FILES="$CONFIG_FILES test/Seasstat.test" ;;
"test/Runstat.test") CONFIG_FILES="$CONFIG_FILES test/Runstat.test" ;;
"test/Runpctl.test") CONFIG_FILES="$CONFIG_FILES test/Runpctl.test" ;;
"test/Multiyearstat.test") CONFIG_FILES="$CONFIG_FILES test/Multiyearstat.test" ;;
"test/Ydrunstat.test") CONFIG_FILES="$CONFIG_FILES test/Ydrunstat.test" ;;
"test/Gridboxstat.test") CONFIG_FILES="$CONFIG_FILES test/Gridboxstat.test" ;;
......@@ -28799,6 +28800,7 @@ _LT_EOF
"test/Timselstat.test":F) chmod a+x "$ac_file" ;;
"test/Seasstat.test":F) chmod a+x "$ac_file" ;;
"test/Runstat.test":F) chmod a+x "$ac_file" ;;
"test/Runpctl.test":F) chmod a+x "$ac_file" ;;
"test/Multiyearstat.test":F) chmod a+x "$ac_file" ;;
"test/Ydrunstat.test":F) chmod a+x "$ac_file" ;;
"test/Gridboxstat.test":F) chmod a+x "$ac_file" ;;
......
......@@ -295,7 +295,7 @@ AC_CONFIG_FILES([test/File.test test/Read_grib.test test/Read_netcdf.test test/C
AC_CONFIG_FILES([test/Comp.test test/Compc.test],[chmod a+x "$ac_file"])
AC_CONFIG_FILES([test/Cat.test test/Gridarea.test test/Genweights.test test/Remap.test test/Remap2.test test/Remapeta.test],[chmod a+x "$ac_file"])
AC_CONFIG_FILES([test/EOF.test test/Select.test test/Spectral.test test/Vertint.test],[chmod a+x "$ac_file"])
AC_CONFIG_FILES([test/Timstat.test test/Timselstat.test test/Seasstat.test test/Runstat.test test/Multiyearstat.test test/Ydrunstat.test],[chmod a+x "$ac_file"])
AC_CONFIG_FILES([test/Timstat.test test/Timselstat.test test/Seasstat.test test/Runstat.test test/Runpctl.test test/Multiyearstat.test test/Ydrunstat.test],[chmod a+x "$ac_file"])
AC_CONFIG_FILES([test/Gridboxstat.test test/Vertstat.test test/Fldstat.test test/Fldpctl.test test/Ensstat.test test/Enspctl.test],[chmod a+x "$ac_file"])
AC_CONFIG_FILES([test/Merstat.test test/Zonstat.test test/Mergetime.test],[chmod a+x "$ac_file"])
AC_CONFIG_FILES([test/Afterburner.test test/Detrend.test test/Arithc.test test/Arith.test test/Expr.test],[chmod a+x "$ac_file"])
......
......@@ -19,7 +19,7 @@ TESTS = threads.test tsformat.test wildcard.test File.test Comp.test Compc.test
Ensstat.test Enspctl.test Gridboxstat.test \
Vertstat.test Fldstat.test Fldpctl.test Merstat.test Zonstat.test \
Timstat.test Timselstat.test Seasstat.test \
Runstat.test Multiyearstat.test Ydrunstat.test \
Runstat.test Runpctl.test Multiyearstat.test Ydrunstat.test \
Mergetime.test EOF.test \
Vertint.test Afterburner.test Arithc.test Arith.test Expr.test \
Gradsdes.test Collgrid.test Setmiss.test Smooth.test MapReduce.test Ninfo.test
......
# Makefile.in generated by automake 1.15.1 from Makefile.am.
# Makefile.in generated by automake 1.14 from Makefile.am.
# @configure_input@
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
# Copyright (C) 1994-2013 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
......@@ -14,17 +14,7 @@
@SET_MAKE@
VPATH = @srcdir@
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
false; \
elif test -n '$(MAKE_HOST)'; then \
true; \
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
true; \
else \
false; \
fi; \
}
am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)'
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
......@@ -89,6 +79,31 @@ build_triplet = @build@
host_triplet = @host@
XFAIL_TESTS =
subdir = test
DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
$(top_srcdir)/config/mkinstalldirs $(srcdir)/File.test.in \
$(srcdir)/Read_grib.test.in $(srcdir)/Read_netcdf.test.in \
$(srcdir)/Copy_netcdf.test.in $(srcdir)/Comp.test.in \
$(srcdir)/Compc.test.in $(srcdir)/Cat.test.in \
$(srcdir)/Gridarea.test.in $(srcdir)/Genweights.test.in \
$(srcdir)/Remap.test.in $(srcdir)/Remap2.test.in \
$(srcdir)/Remapeta.test.in $(srcdir)/EOF.test.in \
$(srcdir)/Select.test.in $(srcdir)/Spectral.test.in \
$(srcdir)/Vertint.test.in $(srcdir)/Timstat.test.in \
$(srcdir)/Timselstat.test.in $(srcdir)/Seasstat.test.in \
$(srcdir)/Runstat.test.in $(srcdir)/Runpctl.test.in \
$(srcdir)/Multiyearstat.test.in $(srcdir)/Ydrunstat.test.in \
$(srcdir)/Gridboxstat.test.in $(srcdir)/Vertstat.test.in \
$(srcdir)/Fldstat.test.in $(srcdir)/Fldpctl.test.in \
$(srcdir)/Ensstat.test.in $(srcdir)/Enspctl.test.in \
$(srcdir)/Merstat.test.in $(srcdir)/Zonstat.test.in \
$(srcdir)/Mergetime.test.in $(srcdir)/Afterburner.test.in \
$(srcdir)/Detrend.test.in $(srcdir)/Arithc.test.in \
$(srcdir)/Arith.test.in $(srcdir)/Expr.test.in \
$(srcdir)/Gradsdes.test.in $(srcdir)/Collgrid.test.in \
$(srcdir)/threads.test.in $(srcdir)/tsformat.test.in \
$(srcdir)/wildcard.test.in $(srcdir)/Setmiss.test.in \
$(srcdir)/Smooth.test.in $(srcdir)/MapReduce.test.in \
$(srcdir)/Ninfo.test.in README
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/acx_cfortran_flags.m4 \
$(top_srcdir)/m4/acx_check_cfortran.m4 \
......@@ -101,20 +116,20 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/acx_cfortran_flags.m4 \
$(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs
CONFIG_HEADER = $(top_builddir)/src/config.h
CONFIG_CLEAN_FILES = File.test Read_grib.test Read_netcdf.test \
Copy_netcdf.test Comp.test Compc.test Cat.test Gridarea.test \
Genweights.test Remap.test Remap2.test Remapeta.test EOF.test \
Select.test Spectral.test Vertint.test Timstat.test \
Timselstat.test Seasstat.test Runstat.test Multiyearstat.test \
Ydrunstat.test Gridboxstat.test Vertstat.test Fldstat.test \
Fldpctl.test Ensstat.test Enspctl.test Merstat.test \
Zonstat.test Mergetime.test Afterburner.test Detrend.test \
Arithc.test Arith.test Expr.test Gradsdes.test Collgrid.test \
threads.test tsformat.test wildcard.test Setmiss.test \
Smooth.test MapReduce.test Ninfo.test
Timselstat.test Seasstat.test Runstat.test Runpctl.test \
Multiyearstat.test Ydrunstat.test Gridboxstat.test \
Vertstat.test Fldstat.test Fldpctl.test Ensstat.test \
Enspctl.test Merstat.test Zonstat.test Mergetime.test \
Afterburner.test Detrend.test Arithc.test Arith.test Expr.test \
Gradsdes.test Collgrid.test threads.test tsformat.test \
wildcard.test Setmiss.test Smooth.test MapReduce.test \
Ninfo.test
CONFIG_CLEAN_VPATH_FILES =
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
......@@ -337,31 +352,6 @@ am__set_b = \
*) \
b='$*';; \
esac
am__DIST_COMMON = $(srcdir)/Afterburner.test.in \
$(srcdir)/Arith.test.in $(srcdir)/Arithc.test.in \
$(srcdir)/Cat.test.in $(srcdir)/Collgrid.test.in \
$(srcdir)/Comp.test.in $(srcdir)/Compc.test.in \
$(srcdir)/Copy_netcdf.test.in $(srcdir)/Detrend.test.in \
$(srcdir)/EOF.test.in $(srcdir)/Enspctl.test.in \
$(srcdir)/Ensstat.test.in $(srcdir)/Expr.test.in \
$(srcdir)/File.test.in $(srcdir)/Fldpctl.test.in \
$(srcdir)/Fldstat.test.in $(srcdir)/Genweights.test.in \
$(srcdir)/Gradsdes.test.in $(srcdir)/Gridarea.test.in \
$(srcdir)/Gridboxstat.test.in $(srcdir)/Makefile.in \
$(srcdir)/MapReduce.test.in $(srcdir)/Mergetime.test.in \
$(srcdir)/Merstat.test.in $(srcdir)/Multiyearstat.test.in \
$(srcdir)/Ninfo.test.in $(srcdir)/Read_grib.test.in \
$(srcdir)/Read_netcdf.test.in $(srcdir)/Remap.test.in \
$(srcdir)/Remap2.test.in $(srcdir)/Remapeta.test.in \
$(srcdir)/Runstat.test.in $(srcdir)/Seasstat.test.in \
$(srcdir)/Select.test.in $(srcdir)/Setmiss.test.in \
$(srcdir)/Smooth.test.in $(srcdir)/Spectral.test.in \
$(srcdir)/Timselstat.test.in $(srcdir)/Timstat.test.in \
$(srcdir)/Vertint.test.in $(srcdir)/Vertstat.test.in \
$(srcdir)/Ydrunstat.test.in $(srcdir)/Zonstat.test.in \
$(srcdir)/threads.test.in $(srcdir)/tsformat.test.in \
$(srcdir)/wildcard.test.in $(top_srcdir)/config/mkinstalldirs \
README
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
......@@ -562,7 +552,7 @@ TESTS = threads.test tsformat.test wildcard.test File.test Comp.test Compc.test
Ensstat.test Enspctl.test Gridboxstat.test \
Vertstat.test Fldstat.test Fldpctl.test Merstat.test Zonstat.test \
Timstat.test Timselstat.test Seasstat.test \
Runstat.test Multiyearstat.test Ydrunstat.test \
Runstat.test Runpctl.test Multiyearstat.test Ydrunstat.test \
Mergetime.test EOF.test \
Vertint.test Afterburner.test Arithc.test Arith.test Expr.test \
Gradsdes.test Collgrid.test Setmiss.test Smooth.test MapReduce.test Ninfo.test
......@@ -596,6 +586,7 @@ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__confi
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign test/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --foreign test/Makefile
.PRECIOUS: Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
......@@ -653,6 +644,8 @@ Seasstat.test: $(top_builddir)/config.status $(srcdir)/Seasstat.test.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
Runstat.test: $(top_builddir)/config.status $(srcdir)/Runstat.test.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
Runpctl.test: $(top_builddir)/config.status $(srcdir)/Runpctl.test.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
Multiyearstat.test: $(top_builddir)/config.status $(srcdir)/Multiyearstat.test.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
Ydrunstat.test: $(top_builddir)/config.status $(srcdir)/Ydrunstat.test.in
......@@ -746,7 +739,7 @@ $(TEST_SUITE_LOG): $(TEST_LOGS)
if test -n "$$am__remaking_logs"; then \
echo "fatal: making $(TEST_SUITE_LOG): possible infinite" \
"recursion detected" >&2; \
elif test -n "$$redo_logs"; then \
else \
am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \
fi; \
if $(am__make_dryrun); then :; else \
......@@ -1022,8 +1015,6 @@ uninstall-am:
mostlyclean-libtool pdf pdf-am ps ps-am recheck tags-am \
uninstall uninstall-am
.PRECIOUS: Makefile
export
......
#! @BASH@
echo 1..1 # Number of tests to be executed.
#
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
CDOOUT=cout$$
CDOERR=cerr$$
FORMAT="-f srv -b 32"
#
PCTLS="1 20 25 33 50 66 75 80 99 100"
#
IFILE=$DATAPATH/ts_mm_5years
#
NTEST=1
RSTAT=0
#
for PCTL in $PCTLS; do
rm -f Runpctl_${PCTL}.debug
DEBUG_OUT="--seperateDebugFromLog Runpctl_${PCTL}.debug"
RFILE=$DATAPATH/runpctl${PCTL}_ref
OFILE=runpctl${STAT}_res
CDOTEST="runpctl$STAT"
CDOCOMMAND="$CDO $DEBUG_OUT $FORMAT runpctl,${PCTL},12 $IFILE $OFILE"
echo "$CDOCOMMAND"
$CDOCOMMAND
test $? -eq 0 || let RSTAT+=1
$CDO $DEBUG_OUT diff,0.004 $OFILE $RFILE > $CDOOUT 2> $CDOERR
test $? -eq 0 || let RSTAT+=1
test -s $CDOOUT && let RSTAT+=1
cat $CDOOUT $CDOERR
rm -f $OFILE
done
#
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST"
test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST"
#
rm -f $CDOOUT $CDOERR
#
exit 0
......@@ -12,6 +12,7 @@ YMONSTAT = ymonmin_ref ymonmax_ref ymonsum_ref ymonavg_ref ymonmean_ref ymon
YSEASSTAT = yseasmin_ref yseasmax_ref yseassum_ref yseasavg_ref yseasmean_ref yseasstd_ref yseasstd1_ref yseasvar_ref yseasvar1_ref yseasrange_ref
SEASSTAT = seasmin_ref seasmax_ref seassum_ref seasavg_ref seasmean_ref seasstd_ref seasstd1_ref seasvar_ref seasvar1_ref seasrange_ref
RUNSTAT = runmin_ref runmax_ref runsum_ref runavg_ref runmean_ref runstd_ref runstd1_ref runvar_ref runvar1_ref runrange_ref
RUNPSTAT = runpctl1_ref runpctl20_ref runpctl25_ref runpctl33_ref runpctl50_ref runpctl66_ref runpctl75_ref runpctl80_ref runpctl99_ref runpctl100_ref
TIMSTAT = timmin_ref timmax_ref timsum_ref timavg_ref timmean_ref timstd_ref timstd1_ref timvar_ref timvar1_ref timrange_ref
YEARSTAT = yearmin_ref yearmax_ref yearsum_ref yearavg_ref yearmean_ref yearstd_ref yearstd1_ref yearvar_ref yearvar1_ref yearrange_ref
MONSTAT = monmin_ref monmax_ref monsum_ref monavg_ref monmean_ref monstd_ref monstd1_ref monvar_ref monvar1_ref monrange_ref
......@@ -47,6 +48,6 @@ SMOOTH = smooth1_ref smooth2_ref smooth3_ref
SETMISS = setmisstoc_ref setmisstonn_ref setmisstodis_ref
EXTRA_DIST = $(INPUTDATA) $(FILE) $(GRIB) $(NETCDF) $(EOF) $(COMP) $(YDRUNSTAT) $(YMONSTAT) $(YSEASSTAT) $(SEASSTAT) \
$(RUNSTAT) $(TIMSTAT) $(YEARSTAT) $(MONSTAT) $(DAYSTAT) $(VERTSTAT) $(FLDSTAT) $(FLDPSTAT) \
$(RUNSTAT) $(RUNPSTAT) $(TIMSTAT) $(YEARSTAT) $(MONSTAT) $(DAYSTAT) $(VERTSTAT) $(FLDSTAT) $(FLDPSTAT) \
$(MERSTAT) $(ZONSTAT) $(ENSPSTAT) $(SPECTRAL) $(VERTINT) $(REMAP) $(REMAP2) $(SELECT) $(DETREND) \
$(THREAD) $(EXPR) $(GRADSDES) $(ARITH) $(MAPREDUCE) $(MERGETIME) $(REMAPETA) $(SMOOTH) $(SETMISS)
......@@ -310,6 +310,7 @@ YMONSTAT = ymonmin_ref ymonmax_ref ymonsum_ref ymonavg_ref ymonmean_ref ymonstd_
YSEASSTAT = yseasmin_ref yseasmax_ref yseassum_ref yseasavg_ref yseasmean_ref yseasstd_ref yseasstd1_ref yseasvar_ref yseasvar1_ref yseasrange_ref
SEASSTAT = seasmin_ref seasmax_ref seassum_ref seasavg_ref seasmean_ref seasstd_ref seasstd1_ref seasvar_ref seasvar1_ref seasrange_ref
RUNSTAT = runmin_ref runmax_ref runsum_ref runavg_ref runmean_ref runstd_ref runstd1_ref runvar_ref runvar1_ref runrange_ref
RUNPSTAT = runpctl1_ref runpctl20_ref runpctl25_ref runpctl33_ref runpctl50_ref runpctl66_ref runpctl75_ref runpctl80_ref runpctl99_ref runpctl100_ref
TIMSTAT = timmin_ref timmax_ref timsum_ref timavg_ref timmean_ref timstd_ref timstd1_ref timvar_ref timvar1_ref timrange_ref
YEARSTAT = yearmin_ref yearmax_ref yearsum_ref yearavg_ref yearmean_ref yearstd_ref yearstd1_ref yearvar_ref yearvar1_ref yearrange_ref
MONSTAT = monmin_ref monmax_ref monsum_ref monavg_ref monmean_ref monstd_ref monstd1_ref monvar_ref monvar1_ref monrange_ref
......@@ -346,7 +347,7 @@ REMAPETA = remapeta1.nc remapeta2.nc remapeta_ref VCT.L62
SMOOTH = smooth1_ref smooth2_ref smooth3_ref
SETMISS = setmisstoc_ref setmisstonn_ref setmisstodis_ref
EXTRA_DIST = $(INPUTDATA) $(FILE) $(GRIB) $(NETCDF) $(EOF) $(COMP) $(YDRUNSTAT) $(YMONSTAT) $(YSEASSTAT) $(SEASSTAT) \
$(RUNSTAT) $(TIMSTAT) $(YEARSTAT) $(MONSTAT) $(DAYSTAT) $(VERTSTAT) $(FLDSTAT) $(FLDPSTAT) \
$(RUNSTAT) $(RUNPSTAT) $(TIMSTAT) $(YEARSTAT) $(MONSTAT) $(DAYSTAT) $(VERTSTAT) $(FLDSTAT) $(FLDPSTAT) \
$(MERSTAT) $(ZONSTAT) $(ENSPSTAT) $(SPECTRAL) $(VERTINT) $(REMAP) $(REMAP2) $(SELECT) $(DETREND) \
$(THREAD) $(EXPR) $(GRADSDES) $(ARITH) $(MAPREDUCE) $(MERGETIME) $(REMAPETA) $(SMOOTH) $(SETMISS)
......
......@@ -5,6 +5,17 @@ CDO=cdo
FORMAT="-f srv -b F32"
########################################################################
#
# runpctl
#
IFILE=ts_mm_5years
PCTLS="1 20 25 33 50 66 75 80 99 100"
for PCTL in $PCTLS; do
$CDO $FORMAT runpctl,$PCTL,12 $IFILE runpctl${PCTL}_ref
done
exit
#
########################################################################
#
# setmiss
#
IFILE=t21_geosp_tsurf_sea.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