Skip to content
Snippets Groups Projects
Commit 7ddb4821 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Add test for remapmedian.

parent 5bf0baf9
No related branches found
No related tags found
No related merge requests found
Pipeline #8647 passed
......@@ -5,13 +5,7 @@ test -n "$DATAPATH" || DATAPATH="@abs_top_srcdir@/test/data/"
#
HAS_NETCDF=`${CDO} --config has-nc`
#
REMAPSTATDIR=xxxremapstat
#
if [ -d "$CDOTESTDATA/$REMAPSTATDIR" ]; then
echo 1..94 # Number of tests to be executed.
else
echo 1..36 # Number of tests to be executed.
fi
echo 1..39 # Number of tests to be executed.
#
REFDATAPATH=$DATAPATH
#
......@@ -38,7 +32,6 @@ function remapfunc()
CDOTEST="remap${2} ${SRCGRIDNAME} to ${TGTGRIDNAME}"
ABSLIM=$ABSLIMMAX
RELLIM=$RELLIMMAX
if [ $REMAP = skew ]; then RELLIM=$RELLIMSKEW; fi
......@@ -81,7 +74,7 @@ function remapfunc()
# small remap tests
#
OPERTYPES="remap"
STATS="min max range sum avg mean std std1 var var1 skew kurt"
STATS="min max range sum avg mean std std1 var var1 skew kurt median"
#
for STAT in $STATS; do
remapfunc $OPERTYPES $STAT global_2 global_5
......@@ -95,58 +88,4 @@ for STAT in $STATS; do
remapfunc $OPERTYPES $STAT global_5 global_5
done
#
#################################################
#
REFDATAPATH=$CDOTESTDATA/$REMAPGRIDDIR
#
#################################################
#
if [ -d "$CDOTESTDATA/$REMAPSTATDIR" ]; then
#
for REMAP in dis nn con scon laf; do
remapfunc $OPERTYPES $REMAP file:R2B4.nc global_2
done
#
for REMAP in $STATS; do
remapfunc $OPERTYPES $REMAP global_0.5 global_2
done
#
for REMAP in $STATS; do
remapfunc $OPERTYPES $REMAP global_2 global_2
done
#
for REMAP in $STATS; do
remapfunc $OPERTYPES $REMAP global_2 global_0.5
done
#
for REMAP in $STATS; do
remapfunc $OPERTYPES $REMAP global_2 file:R2B6.nc
done
#
for REMAP in $STATS; do
remapfunc $OPERTYPES $REMAP global_1 file:R2B6.nc
done
#
for REMAP in dis nn con scon laf; do
remapfunc $OPERTYPES $REMAP file:R2B6.nc global_1
done
#
for REMAP in dis nn con laf; do
remapfunc $OPERTYPES $REMAP file:R2B6.nc file:R2B6.nc
done
#
for REMAP in dis nn con laf; do
remapfunc $OPERTYPES $REMAP file:R2B4.nc file:R2B6.nc
done
#
for REMAP in dis nn con laf; do
remapfunc $OPERTYPES $REMAP file:R2B6.nc file:R2B4.nc
done
#
for REMAP in $STATS; do
remapfunc $OPERTYPES $REMAP file:TP10s.nc global_2
done
#
fi
#
exit 0
......@@ -51,18 +51,18 @@ REMAPGRID = temp_bic_global_2_to_global_5_ref temp_con2_global_2_to_global_5
temp_bil_global_5_to_global_2_ref temp_scon_global_5_to_global_2_ref temp_laf_global_5_to_global_2_ref temp_con_global_5_to_global_2_ref \
temp_bic_global_5_to_global_5_ref temp_con2_global_5_to_global_5_ref temp_dis_global_5_to_global_5_ref temp_nn_global_5_to_global_5_ref \
temp_bil_global_5_to_global_5_ref temp_con_global_5_to_global_5_ref temp_laf_global_5_to_global_5_ref temp_scon_global_5_to_global_5_ref
REMAPSTAT = temp_remapavg_global_2_to_global_5_ref temp_remapmin_global_2_to_global_5_ref temp_remapstd_global_2_to_global_5_ref \
temp_remapavg_global_5_to_global_2_ref temp_remapmin_global_5_to_global_2_ref temp_remapstd_global_5_to_global_2_ref \
temp_remapavg_global_5_to_global_5_ref temp_remapmin_global_5_to_global_5_ref temp_remapstd_global_5_to_global_5_ref \
temp_remapkurt_global_2_to_global_5_ref temp_remaprange_global_2_to_global_5_ref temp_remapsum_global_2_to_global_5_ref \
temp_remapkurt_global_5_to_global_2_ref temp_remaprange_global_5_to_global_2_ref temp_remapsum_global_5_to_global_2_ref \
temp_remapkurt_global_5_to_global_5_ref temp_remaprange_global_5_to_global_5_ref temp_remapsum_global_5_to_global_5_ref \
temp_remapmax_global_2_to_global_5_ref temp_remapskew_global_2_to_global_5_ref temp_remapvar1_global_2_to_global_5_ref \
temp_remapmax_global_5_to_global_2_ref temp_remapskew_global_5_to_global_2_ref temp_remapvar1_global_5_to_global_2_ref \
temp_remapmax_global_5_to_global_5_ref temp_remapskew_global_5_to_global_5_ref temp_remapvar1_global_5_to_global_5_ref \
temp_remapmean_global_2_to_global_5_ref temp_remapstd1_global_2_to_global_5_ref temp_remapvar_global_2_to_global_5_ref \
temp_remapmean_global_5_to_global_2_ref temp_remapstd1_global_5_to_global_2_ref temp_remapvar_global_5_to_global_2_ref \
temp_remapmean_global_5_to_global_5_ref temp_remapstd1_global_5_to_global_5_ref temp_remapvar_global_5_to_global_5_ref
REMAPSTAT = temp_remapmin_global_2_to_global_5_ref temp_remapmax_global_2_to_global_5_ref temp_remapsum_global_2_to_global_5_ref temp_remapavg_global_2_to_global_5_ref \
temp_remapmean_global_2_to_global_5_ref temp_remapstd_global_2_to_global_5_ref temp_remapstd1_global_2_to_global_5_ref temp_remapvar_global_2_to_global_5_ref \
temp_remapvar1_global_2_to_global_5_ref temp_remaprange_global_2_to_global_5_ref temp_remapskew_global_2_to_global_5_ref temp_remapkurt_global_2_to_global_5_ref \
temp_remapmedian_global_2_to_global_5_ref \
temp_remapmin_global_5_to_global_5_ref temp_remapmax_global_5_to_global_5_ref temp_remapsum_global_5_to_global_5_ref temp_remapavg_global_5_to_global_5_ref \
temp_remapmean_global_5_to_global_5_ref temp_remapstd_global_5_to_global_5_ref temp_remapstd1_global_5_to_global_5_ref temp_remapvar_global_5_to_global_5_ref \
temp_remapvar1_global_5_to_global_5_ref temp_remaprange_global_5_to_global_5_ref temp_remapskew_global_5_to_global_5_ref temp_remapkurt_global_5_to_global_5_ref \
temp_remapmedian_global_5_to_global_5_ref \
temp_remapmin_global_5_to_global_2_ref temp_remapmax_global_2_to_global_5_ref temp_remapsum_global_2_to_global_5_ref temp_remapavg_global_2_to_global_5_ref \
temp_remapmean_global_5_to_global_2_ref temp_remapstd_global_2_to_global_5_ref temp_remapstd1_global_2_to_global_5_ref temp_remapvar_global_2_to_global_5_ref \
temp_remapvar1_global_5_to_global_2_ref temp_remaprange_global_2_to_global_5_ref temp_remapskew_global_2_to_global_5_ref temp_remapkurt_global_2_to_global_5_ref \
temp_remapmedian_global_5_to_global_2_ref
REMAP = n16_bic_ref n16_bil_ref n16_scon_ref n16_con2_ref n16_con_ref n16_laf_ref n16_nn_ref n16_dis_ref \
n32_bic_ref n32_bil_ref n32_scon_ref n32_con2_ref n32_con_ref n32_laf_ref n32_nn_ref n32_dis_ref
REMAP2 = tsurf_spain_bic_def_ref tsurf_spain_bic_off_ref tsurf_spain_bic_on_ref \
......
File added
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment