Commit 65b30b49 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

added/test_Vertint.sh

parent cf0f8b88
......@@ -594,6 +594,8 @@ test/Makefile.in -text
test/README -text
test/data/Makefile.am -text
test/data/gen_refdata.sh -text
test/data/hl_l19.grb -text
test/data/ml2pl_ref -text
test/data/timavg_ref -text
test/data/timmax_ref -text
test/data/timmean_ref -text
......@@ -609,6 +611,7 @@ test/test_Arith.py -text
test/test_Arithc.py -text
test/test_Selvar.py -text
test/test_Timstat.sh -text
test/test_Vertint.sh -text
test/test_area.c -text
test/test_diff.py -text
test/test_info.py -text
......
......@@ -57,14 +57,12 @@ If set to 1 extrapolate missing values.
@BeginNote
The netCDF CF convention for vertical hybrid coordinates is
not supported, yet!
The netCDF CF convention for vertical hybrid coordinates is not supported, yet!
@EndNote
@BeginExample
To interpolate hybrid model level data to pressure levels of
925, 850, 500 and 200 hPa use:
To interpolate hybrid model level data to pressure levels of 925, 850, 500 and 200 hPa use:
@BeginVerbatim
cdo ml2pl,92500,85000,50000,20000 ifile ofile
@EndVerbatim
......
......@@ -3,7 +3,8 @@ CLEANFILES =
export
TESTS = $(top_srcdir)/test/test_info.py \
$(top_srcdir)/test/test_Timstat.sh
$(top_srcdir)/test/test_Timstat.sh \
$(top_srcdir)/test/test_Vertint.sh
# $(top_srcdir)/test/test_diff.py
# $(top_srcdir)/test/test_Arith.py
......
......@@ -252,7 +252,8 @@ top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
CLEANFILES = `ls *.pyc`
TESTS = $(top_srcdir)/test/test_info.py \
$(top_srcdir)/test/test_Timstat.sh
$(top_srcdir)/test/test_Timstat.sh \
$(top_srcdir)/test/test_Vertint.sh
# $(top_srcdir)/test/test_diff.py
......
......@@ -21,3 +21,10 @@ IFILE=$OFILE
for STAT in $STATS; do
$CDO $FORMAT tim$STAT $IFILE tim${STAT}_ref
done
#
IFILE=ECHAM5_T21L19monavg.grb
OFILE=hl_l19.grb
$CDO fldmean -sp2gp -selcode,129,130,152 $IFILE $OFILE
IFILE=$OFILE
OFILE=ml2pl_ref
$CDO $FORMAT ml2pl,92500,85000,50000,20000 $IFILE $OFILE
#!/bin/sh
#
CDODEBUG=0
#
if [ "$CDODEBUG" == 0 ]; then CDO="$CDO -s"; fi
CDOOUT=cout
CDOERR=cerr
FORMAT="-f srv -b 32"
RSTAT=0;
#
IFILE=$DATAPATH/hl_l19.grb
#
RFILE=$DATAPATH/ml2pl_ref
OFILE=ml2pl_res
$CDO $FORMAT ml2pl,92500,85000,50000,20000 $IFILE $OFILE > $CDOOUT 2> $CDOERR
if [ $? != 0 ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ "$CDODEBUG" == 1 ]; then cat $CDOOUT $CDOERR; fi
$CDO diff $OFILE $RFILE > $CDOOUT 2> $CDOERR
if [ $? != 0 ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ -s $CDOOUT ] ; then RSTAT=`expr $RSTAT + 1`; fi
if [ "$CDODEBUG" == 1 ]; then cat $CDOOUT $CDOERR; fi
rm -f $OFILE
#
rm -f $CDOOUT $CDOERR
#
if [ "$CDODEBUG" == 1 ]; then
echo "rstat: $RSTAT"
fi
#
exit $RSTAT
Supports Markdown
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