Commit 8a4be48a authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Added Wind.test.in.

parent 8b14778f
...@@ -331,6 +331,7 @@ AC_CONFIG_FILES([ ...@@ -331,6 +331,7 @@ AC_CONFIG_FILES([
test/Varsstat.test test/Varsstat.test
test/Vertint.test test/Vertint.test
test/Vertstat.test test/Vertstat.test
test/Wind.test
test/Ydrunstat.test test/Ydrunstat.test
test/Yearmonstat.test test/Yearmonstat.test
test/Ymonarith.test test/Ymonarith.test
......
...@@ -65,6 +65,7 @@ TESTS =\ ...@@ -65,6 +65,7 @@ TESTS =\
Varsstat.test \ Varsstat.test \
Vertint.test \ Vertint.test \
Vertstat.test \ Vertstat.test \
Wind.test \
Ydrunstat.test \ Ydrunstat.test \
Yearmonstat.test \ Yearmonstat.test \
Ymonarith.test \ Ymonarith.test \
......
...@@ -22,8 +22,6 @@ test $? -eq 0 || let RSTAT+=1 ...@@ -22,8 +22,6 @@ test $? -eq 0 || let RSTAT+=1
# result of cgribex and GRIBAPI differ for complexed packed spectral data # result of cgribex and GRIBAPI differ for complexed packed spectral data
$CDO diff,abslim=.008 $OFILE $RFILE $CDO diff,abslim=.008 $OFILE $RFILE
test $? -eq 0 || let RSTAT+=1 test $? -eq 0 || let RSTAT+=1
# #
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST" test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST"
test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST" test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST"
...@@ -46,8 +44,6 @@ test $? -eq 0 || let RSTAT+=1 ...@@ -46,8 +44,6 @@ test $? -eq 0 || let RSTAT+=1
# #
$CDO diff $OFILE $RFILE $CDO diff $OFILE $RFILE
test $? -eq 0 || let RSTAT+=1 test $? -eq 0 || let RSTAT+=1
# #
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST" test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST"
test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST" test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST"
......
#! @BASH@
echo 1..5 # Number of tests to be executed.
#
test -n "$CDO" || CDO="@abs_top_builddir@/src/cdo $CDO_DEBUG"
test -n "$DATAPATH" || DATAPATH="@abs_top_srcdir@/test/data/"
#
FORMAT=""
NTEST=1
#####################################################
IFILE=$DATAPATH/t21_dv.grb
RFILE=$DATAPATH/dv2ps_ref
OFILE=dv2ps_res
#
RSTAT=0
STATS="dv2ps"
CDOTEST="$STATS"
CDOCOMMAND="$CDO $FORMAT $STATS $IFILE $OFILE"
echo "$CDOCOMMAND"
$CDOCOMMAND
test $? -eq 0 || let RSTAT+=1
#
# result of cgribex and GRIBAPI differ for complexed packed spectral data
$CDO diff,abslim=.008 $OFILE $RFILE
test $? -eq 0 || let RSTAT+=1
#
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST"
test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST"
#
let NTEST+=1
rm -f $OFILE
#####################################################
IFILE=$DATAPATH/t21_dv.grb
RFILE=$DATAPATH/dv2uv_ref
OFILE=dv2uv_res
#
RSTAT=0
STATS="dv2uv"
CDOTEST="$STATS"
CDOCOMMAND="$CDO $FORMAT $STATS $IFILE $OFILE"
echo "$CDOCOMMAND"
$CDOCOMMAND
test $? -eq 0 || let RSTAT+=1
#
# result of cgribex and GRIBAPI differ for complexed packed spectral data
$CDO diff,abslim=.008 $OFILE $RFILE
test $? -eq 0 || let RSTAT+=1
#
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST"
test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST"
#
let NTEST+=1
rm -f $OFILE
######################################################
IFILE=$DATAPATH/dv2uv_ref
RFILE=$DATAPATH/uv2dv_ref
OFILE=uv2dv_res
#
RSTAT=0
STATS="uv2dv"
CDOTEST="$STATS"
CDOCOMMAND="$CDO $FORMAT $STATS $IFILE $OFILE"
echo "$CDOCOMMAND"
$CDOCOMMAND
test $? -eq 0 || let RSTAT+=1
#
$CDO diff $OFILE $RFILE
test $? -eq 0 || let RSTAT+=1
#
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST"
test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST"
#
let NTEST+=1
rm -f $OFILE
######################################################
IFILE=$DATAPATH/t21_dv.grb
RFILE=$DATAPATH/dv2uvl_ref
OFILE=dv2uvl_res
RSTAT=0
STATS="dv2uvl"
CDOTEST="$STATS"
CDOCOMMAND="$CDO $FORMAT $STATS $IFILE $OFILE"
echo "$CDOCOMMAND"
$CDOCOMMAND
test $? -eq 0 || let RSTAT+=1
#
$CDO diff,abslim=.008 $OFILE $RFILE
test $? -eq 0 || let RSTAT+=1
#
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST"
test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST"
#
let NTEST+=1
rm -f $OFILE
######################################################
IFILE=$DATAPATH/dv2uvl_ref
RFILE=$DATAPATH/uv2dvl_ref
OFILE=uv2dvl_res
RSTAT=0
STATS="uv2dvl"
CDOTEST="$STATS"
CDOCOMMAND="$CDO $FORMAT $STATS $IFILE $OFILE"
echo "$CDOCOMMAND"
$CDOCOMMAND
test $? -eq 0 || let RSTAT+=1
#
$CDO diff $OFILE $RFILE
test $? -eq 0 || let RSTAT+=1
#
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST"
test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST"
#
let NTEST+=1
rm -f $OFILE
#
exit 0
INPUTDATA = ts_mm_5years ts_mm_1year ts_mm_1991 ts_6h_1mon ts_1d_1year ts_mm_5years_m ts_mm_1year_m ts_mm_1991_m ts_6h_1mon_m ts_1d_1year_m \ INPUTDATA = ts_mm_5years ts_mm_1year ts_mm_1991 ts_6h_1mon ts_1d_1year ts_mm_5years_m ts_mm_1year_m ts_mm_1991_m ts_6h_1mon_m ts_1d_1year_m \
hl_l19.grb ap_l47.nc t21_geosp_tsurf.grb t21_geosp_tsurf_sea.grb bathy4.grb pl_data pl_data.grb detrend_data \ hl_l19.grb ap_l47.nc t21_dv.grb t21_geosp_tsurf.grb t21_geosp_tsurf_sea.grb bathy4.grb pl_data pl_data.grb detrend_data \
grib_testfile01.grb grib_testfile02.grb grib_testfile03.grb netcdf_testfile01.nc netcdf_testfile02.nc netcdf_testfile03.nc testfile01c.nc \ grib_testfile01.grb grib_testfile02.grb grib_testfile03.grb netcdf_testfile01.nc netcdf_testfile02.nc netcdf_testfile03.nc testfile01c.nc \
datar.nc datac.nc datau.nc datag.nc arith1.srv expr1.srv arithmask.srv psl_DJF_anom.grb tsurf_spain.grb spain.grid \ datar.nc datac.nc datau.nc datag.nc arith1.srv expr1.srv arithmask.srv psl_DJF_anom.grb tsurf_spain.grb spain.grid \
topo_eu5.grb vars_data.grb topo_eu5.grb vars_data.grb
...@@ -41,6 +41,7 @@ ENSSTAT = ensmin_ref ensmax_ref enssum_ref ensavg_ref ensmean_ref ensstd_re ...@@ -41,6 +41,7 @@ ENSSTAT = ensmin_ref ensmax_ref enssum_ref ensavg_ref ensmean_ref ensstd_re
ENSMSTAT = ensmmin_ref ensmmax_ref ensmsum_ref ensmavg_ref ensmmean_ref ensmstd_ref ensmstd1_ref ensmvar_ref ensmvar1_ref ensmrange_ref ensmkurt_ref ensmskew_ref ENSMSTAT = ensmmin_ref ensmmax_ref ensmsum_ref ensmavg_ref ensmmean_ref ensmstd_ref ensmstd1_ref ensmvar_ref ensmvar1_ref ensmrange_ref ensmkurt_ref ensmskew_ref
ENSPCTL = enspctl1_ref enspctl20_ref enspctl25_ref enspctl33_ref enspctl50_ref enspctl66_ref enspctl75_ref enspctl80_ref enspctl99_ref enspctl100_ref ENSPCTL = enspctl1_ref enspctl20_ref enspctl25_ref enspctl33_ref enspctl50_ref enspctl66_ref enspctl75_ref enspctl80_ref enspctl99_ref enspctl100_ref
SPECTRAL = sp2gp_ref sp2gpl_ref gp2sp_ref gp2spl_ref SPECTRAL = sp2gp_ref sp2gpl_ref gp2sp_ref gp2spl_ref
WIND = dv2pd_ref dv2uv_ref dv2uvl_ref uv2dv_ref uv2dvl_ref
INTTIME = inttime_ref INTTIME = inttime_ref
VERTINT = intlevel_ref ml2pl_ref ap2pl_ref VERTINT = intlevel_ref ml2pl_ref ap2pl_ref
REMAPGRID = temp_bic_global_2_to_global_5_ref temp_con2_global_2_to_global_5_ref temp_dis_global_2_to_global_5_ref temp_nn_global_2_to_global_5_ref \ REMAPGRID = temp_bic_global_2_to_global_5_ref temp_con2_global_2_to_global_5_ref temp_dis_global_2_to_global_5_ref temp_nn_global_2_to_global_5_ref \
...@@ -85,5 +86,5 @@ FILTER = lowpass_ref highpass_ref bandpass_ref ...@@ -85,5 +86,5 @@ FILTER = lowpass_ref highpass_ref bandpass_ref
EXTRA_DIST = $(INPUTDATA) $(FILE) $(GRIB) $(NETCDF) $(EOF) $(COMP) $(YDRUNSTAT) $(YDAYSTAT) $(YMONSTAT) $(YMONMSTAT) $(YSEASSTAT) $(SEASSTAT) $(SEASMSTAT) $(TIMPCTL) $(TIMSELPCTL) \ EXTRA_DIST = $(INPUTDATA) $(FILE) $(GRIB) $(NETCDF) $(EOF) $(COMP) $(YDRUNSTAT) $(YDAYSTAT) $(YMONSTAT) $(YMONMSTAT) $(YSEASSTAT) $(SEASSTAT) $(SEASMSTAT) $(TIMPCTL) $(TIMSELPCTL) \
$(RUNSTAT) $(RUNMSTAT) $(RUNPCTL) $(TIMSTAT2) $(YEARMONSTAT) $(VERTSTAT) $(VARSSTAT) $(FLDSTAT) $(FLDPSTAT) \ $(RUNSTAT) $(RUNMSTAT) $(RUNPCTL) $(TIMSTAT2) $(YEARMONSTAT) $(VERTSTAT) $(VARSSTAT) $(FLDSTAT) $(FLDPSTAT) \
$(TIMSTAT) $(YEARSTAT) $(MONSTAT) $(DAYSTAT) $(TIMMSTAT) $(YEARMSTAT) $(MONMSTAT) $(DAYMSTAT) \ $(TIMSTAT) $(YEARSTAT) $(MONSTAT) $(DAYSTAT) $(TIMMSTAT) $(YEARMSTAT) $(MONMSTAT) $(DAYMSTAT) \
$(MERSTAT) $(ZONSTAT) $(ENSSTAT) $(ENSMSTAT) $(ENSPCTL) $(SPECTRAL) $(INTTIME) $(VERTINT) $(REMAPGRID) $(REMAP) $(REMAP2) $(REMAP3) $(SELECT) $(DETREND) \ $(MERSTAT) $(ZONSTAT) $(ENSSTAT) $(ENSMSTAT) $(ENSPCTL) $(SPECTRAL) $(WIND) $(INTTIME) $(VERTINT) $(REMAPGRID) $(REMAP) $(REMAP2) $(REMAP3) $(SELECT) $(DETREND) \
$(THREAD) $(EXPR) $(GRADSDES) $(ARITH) $(MONARITH) $(YMONARITH) $(MAPREDUCE) $(MERGETIME) $(REMAPETA) $(SMOOTH) $(SETMISS) $(FILTER) $(THREAD) $(EXPR) $(GRADSDES) $(ARITH) $(MONARITH) $(YMONARITH) $(MAPREDUCE) $(MERGETIME) $(REMAPETA) $(SMOOTH) $(SETMISS) $(FILTER)
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