Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
cdo
Commits
94148dad
Commit
94148dad
authored
Nov 11, 2017
by
Uwe Schulzweida
Browse files
Remap.test: test remapcon2.
parent
b2d9b24e
Changes
10
Hide whitespace changes
Inline
Side-by-side
test/Remap.test.in
View file @
94148dad
#! @BASH@
if [ "$USER" = "m214003" ]; then
echo 1..3
2
# Number of tests to be executed.
echo 1..3
6
# Number of tests to be executed.
else
echo 1..2
0
# Number of tests to be executed.
echo 1..2
4
# Number of tests to be executed.
fi
#
test -n "$CDO" || CDO=cdo
...
...
@@ -24,7 +24,7 @@ for GRIDTYPE in "regular" "curvilinear" "unstructured"; do
if [ "$GRIDTYPE" != "regular" ]; then SETGRID="-setgridtype,$GRIDTYPE"; fi
for GRID in $GRIDS; do
# remaplaf: sort could give different results"
RMODS="bil bic con ycon"
RMODS="bil bic con
con2
ycon"
if [ "$GRIDTYPE" = "unstructured" ]; then RMODS="con ycon"; fi
if [ "$USER" = "m214003" ]; then RMODS="dis nn $RMODS"; fi
for RMOD in $RMODS; do
...
...
test/Remap2.test.in
View file @
94148dad
#! @BASH@
echo 1..
7
# Number of tests to be executed.
echo 1..
8
# Number of tests to be executed.
#
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
...
...
@@ -14,7 +14,7 @@ GRID=$DATAPATH/spain.grid
IFILE=$DATAPATH/tsurf_spain.grb
NTEST=1
#
RMODS="dis nn bil bic con ycon laf"
RMODS="dis nn bil bic con
con2
ycon laf"
for RMOD in $RMODS; do
ABSLIM=$ABSLIMMAX
if [ $RMOD = dis ]; then ABSLIM=$ABSLIMDIS; fi
...
...
test/data/Makefile.am
View file @
94148dad
...
...
@@ -24,13 +24,16 @@ ZONSTAT_REF = zonmin_ref zonmax_ref zonsum_ref zonavg_ref zonmean_ref zonstd_re
ENSPSTAT_REF
=
enspctl1_ref enspctl20_ref enspctl25_ref enspctl33_ref enspctl50_ref enspctl66_ref enspctl75_ref enspctl80_ref enspctl99_ref enspctl100_ref
SPECTRAL_REF
=
sp2gp_ref sp2gpl_ref gp2sp_ref gp2spl_ref
VERTINT_REF
=
ml2pl_ref
REMAP_REF
=
n16_bic_ref n16_bil_ref n16_con_ref n16_ycon_ref n16_laf_ref n16_nn_ref n16_dis_ref
\
n32_bic_ref n32_bil_ref n32_con_ref n32_ycon_ref n32_laf_ref n32_nn_ref n32_dis_ref
REMAP2_REF
=
tsurf_spain_bic_def_ref tsurf_spain_bil_on_ref tsurf_spain_dis_off_ref tsurf_spain_nn_def_ref tsurf_spain_ycon_on_ref
\
tsurf_spain_bic_off_ref tsurf_spain_con_def_ref tsurf_spain_dis_on_ref tsurf_spain_nn_off_ref
\
tsurf_spain_bic_on_ref tsurf_spain_con_off_ref tsurf_spain_laf_def_ref tsurf_spain_nn_on_ref
\
tsurf_spain_bil_def_ref tsurf_spain_con_on_ref tsurf_spain_laf_off_ref tsurf_spain_ycon_def_ref
\
tsurf_spain_bil_off_ref tsurf_spain_dis_def_ref tsurf_spain_laf_on_ref tsurf_spain_ycon_off_ref
REMAP_REF
=
n16_bic_ref n16_bil_ref n16_con_ref n16_con2_ref n16_ycon_ref n16_laf_ref n16_nn_ref n16_dis_ref
\
n32_bic_ref n32_bil_ref n32_con_ref n32_con2_ref n32_ycon_ref n32_laf_ref n32_nn_ref n32_dis_ref
REMAP2_REF
=
tsurf_spain_bic_def_ref tsurf_spain_bic_off_ref tsurf_spain_bic_on_ref
\
tsurf_spain_bil_def_ref tsurf_spain_bil_off_ref tsurf_spain_bil_on_ref
\
tsurf_spain_dis_def_ref tsurf_spain_dis_off_ref tsurf_spain_dis_on_ref
\
tsurf_spain_nn_def_ref tsurf_spain_nn_off_ref tsurf_spain_nn_on_ref
\
tsurf_spain_laf_def_ref tsurf_spain_laf_off_ref tsurf_spain_laf_on_ref
\
tsurf_spain_ycon_def_ref tsurf_spain_ycon_off_ref tsurf_spain_ycon_on_ref
\
tsurf_spain_con_def_ref tsurf_spain_con_off_ref tsurf_spain_con_on_ref
\
tsurf_spain_con2_def_ref tsurf_spain_con2_off_ref tsurf_spain_con2_on_ref
SELECT_REF
=
select1_ref select2_ref select3_ref select4_ref select5_ref
DETREND_REF
=
detrend_ref
EXPR_REF
=
expr1_ref aexpr1_ref expr2_ref aexpr2_ref
...
...
test/data/Makefile.in
View file @
94148dad
# Makefile.in generated by automake 1.1
5.1
from Makefile.am.
# Makefile.in generated by automake 1.1
4
from Makefile.am.
# @configure_input@
# Copyright (C) 1994-201
7
Free Software Foundation, Inc.
# Copyright (C) 1994-201
3
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
\
?
)
;;
\
...
...
@@ -88,6 +78,8 @@ POST_UNINSTALL = :
build_triplet
=
@build@
host_triplet
=
@host@
subdir
=
test
/data
DIST_COMMON
=
$(srcdir)
/Makefile.in
$(srcdir)
/Makefile.am
\
$(top_srcdir)
/config/mkinstalldirs
ACLOCAL_M4
=
$(top_srcdir)
/aclocal.m4
am__aclocal_m4_deps
=
$(top_srcdir)
/m4/acx_cfortran_flags.m4
\
$(top_srcdir)
/m4/acx_check_cfortran.m4
\
...
...
@@ -100,7 +92,6 @@ 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
=
...
...
@@ -125,8 +116,6 @@ am__can_run_installinfo = \
*
)
(
install-info
--version
)
>
/dev/null 2>&1
;;
\
esac
am__tagged_files
=
$(HEADERS)
$(SOURCES)
$(TAGS_FILES)
$(LISP)
am__DIST_COMMON
=
$(srcdir)
/Makefile.in
\
$(top_srcdir)
/config/mkinstalldirs
DISTFILES
=
$(DIST_COMMON)
$(DIST_SOURCES)
$(TEXINFOS)
$(EXTRA_DIST)
ACLOCAL
=
@ACLOCAL@
AMTAR
=
@AMTAR@
...
...
@@ -334,14 +323,17 @@ ZONSTAT_REF = zonmin_ref zonmax_ref zonsum_ref zonavg_ref zonmean_ref zonstd_ref
ENSPSTAT_REF
=
enspctl1_ref enspctl20_ref enspctl25_ref enspctl33_ref enspctl50_ref enspctl66_ref enspctl75_ref enspctl80_ref enspctl99_ref enspctl100_ref
SPECTRAL_REF
=
sp2gp_ref sp2gpl_ref gp2sp_ref gp2spl_ref
VERTINT_REF
=
ml2pl_ref
REMAP_REF
=
n16_bic_ref n16_bil_ref n16_con_ref n16_ycon_ref n16_laf_ref n16_nn_ref n16_dis_ref
\
n32_bic_ref n32_bil_ref n32_con_ref n32_ycon_ref n32_laf_ref n32_nn_ref n32_dis_ref
REMAP2_REF
=
tsurf_spain_bic_def_ref tsurf_spain_bil_on_ref tsurf_spain_dis_off_ref tsurf_spain_nn_def_ref tsurf_spain_ycon_on_ref
\
tsurf_spain_bic_off_ref tsurf_spain_con_def_ref tsurf_spain_dis_on_ref tsurf_spain_nn_off_ref
\
tsurf_spain_bic_on_ref tsurf_spain_con_off_ref tsurf_spain_laf_def_ref tsurf_spain_nn_on_ref
\
tsurf_spain_bil_def_ref tsurf_spain_con_on_ref tsurf_spain_laf_off_ref tsurf_spain_ycon_def_ref
\
tsurf_spain_bil_off_ref tsurf_spain_dis_def_ref tsurf_spain_laf_on_ref tsurf_spain_ycon_off_ref
REMAP_REF
=
n16_bic_ref n16_bil_ref n16_con_ref n16_con2_ref n16_ycon_ref n16_laf_ref n16_nn_ref n16_dis_ref
\
n32_bic_ref n32_bil_ref n32_con_ref n32_con2_ref n32_ycon_ref n32_laf_ref n32_nn_ref n32_dis_ref
REMAP2_REF
=
tsurf_spain_bic_def_ref tsurf_spain_bic_off_ref tsurf_spain_bic_on_ref
\
tsurf_spain_bil_def_ref tsurf_spain_bil_off_ref tsurf_spain_bil_on_ref
\
tsurf_spain_dis_def_ref tsurf_spain_dis_off_ref tsurf_spain_dis_on_ref
\
tsurf_spain_nn_def_ref tsurf_spain_nn_off_ref tsurf_spain_nn_on_ref
\
tsurf_spain_laf_def_ref tsurf_spain_laf_off_ref tsurf_spain_laf_on_ref
\
tsurf_spain_ycon_def_ref tsurf_spain_ycon_off_ref tsurf_spain_ycon_on_ref
\
tsurf_spain_con_def_ref tsurf_spain_con_off_ref tsurf_spain_con_on_ref
\
tsurf_spain_con2_def_ref tsurf_spain_con2_off_ref tsurf_spain_con2_on_ref
SELECT_REF
=
select1_ref select2_ref select3_ref select4_ref select5_ref
DETREND_REF
=
detrend_ref
...
...
@@ -372,6 +364,7 @@ $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__confi
echo
' cd
$(top_srcdir)
&&
$(AUTOMAKE)
--foreign test/data/Makefile'
;
\
$(am__cd)
$(top_srcdir)
&&
\
$(AUTOMAKE)
--foreign
test
/data/Makefile
.PRECIOUS
:
Makefile
Makefile
:
$(srcdir)/Makefile.in $(top_builddir)/config.status
@
case
'$?'
in
\
*
config.status
*
)
\
...
...
@@ -546,8 +539,6 @@ uninstall-am:
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am
\
tags-am uninstall uninstall-am
.PRECIOUS
:
Makefile
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
...
...
test/data/gen_refdata.sh
View file @
94148dad
...
...
@@ -5,6 +5,48 @@ CDO=cdo
FORMAT
=
"-f srv -b F32"
########################################################################
#
# Remap
#
cdo
-f
grb setrtomiss,0,10000
-gridboxmean
,8,8
-topo
bathy4.grb
#
GRIDS
=
"n16 n32"
RMODS
=
"bil bic dis nn con con2 laf"
RMODS
=
"con2"
IFILE
=
bathy4.grb
for
GRID
in
$GRIDS
;
do
for
RMOD
in
$RMODS
;
do
OFILE
=
${
GRID
}
_
${
RMOD
}
$CDO
$FORMAT
remap
${
RMOD
}
,
$GRID
$IFILE
${
OFILE
}
_ref
done
done
exit
########################################################################
#
# Remap regional grid
#
GRID
=
spain.grid
cat
>
$GRID
<<
EOF
gridtype=lonlat
xsize=20
ysize=18
xfirst=-13
yfirst=33
xinc=.8
yinc=.8
EOF
RMODS
=
"bil bic dis nn con con2 ycon laf"
IFILE
=
tsurf_spain.grb
for
RMOD
in
$RMODS
;
do
OFILE
=
tsurf_spain_
${
RMOD
}
for
extra
in
def off on
;
do
EXTRA
=
"
$extra
"
if
[
"
$EXTRA
"
=
"def"
]
;
then
EXTRA
=
""
;
fi
REMAP_EXTRAPOLATE
=
$EXTRA
$CDO
$FORMAT
remap
${
RMOD
}
,
${
GRID
}
$IFILE
${
OFILE
}
_
${
extra
}
_ref
done
done
exit
########################################################################
#
# Test GRIB files
#
IFILES
=
"testfile01 testfile02 testfile03"
...
...
@@ -91,31 +133,6 @@ done
exit
########################################################################
#
# Remap regional grid
#
GRID
=
spain.grid
cat
>
$GRID
<<
EOF
gridtype=lonlat
xsize=20
ysize=18
xfirst=-13
yfirst=33
xinc=.8
yinc=.8
EOF
RMODS
=
"bil bic dis nn con ycon laf"
IFILE
=
tsurf_spain.grb
for
RMOD
in
$RMODS
;
do
OFILE
=
tsurf_spain_
${
RMOD
}
for
extra
in
def off on
;
do
EXTRA
=
"
$extra
"
if
[
"
$EXTRA
"
=
"def"
]
;
then
EXTRA
=
""
;
fi
REMAP_EXTRAPOLATE
=
$EXTRA
$CDO
$FORMAT
remap
${
RMOD
}
,
${
GRID
}
$IFILE
${
OFILE
}
_
${
extra
}
_ref
done
done
exit
########################################################################
#
# EOF
#
export
CDO_FILE_SUFFIX
=
NULL
...
...
@@ -289,21 +306,6 @@ OFILE=sp2gpl_ref
$CDO
sp2gpl
$IFILE
$OFILE
########################################################################
#
# Remap
#
cdo
-f
grb setrtomiss,0,10000
-gridboxmean
,8,8
-topo
bathy4.grb
#
GRIDS
=
"n16 n32"
RMODS
=
"bil bic dis nn con laf"
IFILE
=
bathy4.grb
for
GRID
in
$GRIDS
;
do
for
RMOD
in
$RMODS
;
do
OFILE
=
${
GRID
}
_
${
RMOD
}
$CDO
$FORMAT
remap
${
RMOD
}
,
$GRID
$IFILE
${
OFILE
}
_ref
done
done
########################################################################
#
# Select
#
IFILE
=
ECHAM5_T21L19.grb
...
...
test/data/n16_con2_ref
0 → 100644
View file @
94148dad
File added
test/data/n32_con2_ref
0 → 100644
View file @
94148dad
File added
test/data/tsurf_spain_con2_def_ref
0 → 100644
View file @
94148dad
File added
test/data/tsurf_spain_con2_off_ref
0 → 100644
View file @
94148dad
File added
test/data/tsurf_spain_con2_on_ref
0 → 100644
View file @
94148dad
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment