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

changed Read_netcdf test to sinfon and infon

parent 0ebb3201
......@@ -649,6 +649,7 @@ test/Gridarea.test.in -text
test/Makefile.am -text
test/Makefile.in -text
test/README -text
test/Read_netcdf.test.in -text
test/Remap.test.in -text
test/Select.test.in -text
test/Spectral.test.in -text
......
......@@ -5,7 +5,7 @@ export
TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
$(top_srcdir)/config/tap-driver.sh
TESTS = Cat.test Gridarea.test Detrend.test Genweights.test Remap.test \
TESTS = Read_netcdf.test Cat.test Gridarea.test Detrend.test Genweights.test Remap.test \
Select.test Spectral.test Timstat.test Vertint.test
# $(top_srcdir)/test/test_Remap.sh \
......
......@@ -494,7 +494,7 @@ CLEANFILES = `ls *.pyc`
TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
$(top_srcdir)/config/tap-driver.sh
TESTS = Cat.test Gridarea.test Detrend.test Genweights.test Remap.test \
TESTS = Read_netcdf.test Cat.test Gridarea.test Detrend.test Genweights.test Remap.test \
Select.test Spectral.test Timstat.test Vertint.test
......
#! @SHELL@
echo 1..2 # Number of tests to be executed.
#
test -n "$CDO" || CDO=cdo
test -n "$DATAPATH" || DATAPATH=./data
#
CDOOUT=cout
CDOERR=cerr
#
NTEST=1
#
for OPERATOR in "sinfon" "infon"; do
for FILE in "testfile01"; do
RSTAT=0
IFILE=$DATAPATH/netcdf_${FILE}.nc
OFILE=netcdf_${FILE}_${OPERATOR}
RFILE=$DATAPATH/${OFILE}_ref
CDOTEST="$OPERATOR $FILE"
CDOCOMMAND="$CDO $OPERATOR $IFILE"
if [ "@ENABLE_NETCDF@" = yes ] ; then
echo "Running test: $NTEST"
echo "$CDOCOMMAND"
$CDOCOMMAND > $OFILE
test $? -eq 0 || let RSTAT+=1
diff $OFILE $RFILE > $CDOOUT 2> $CDOERR
test $? -eq 0 || let RSTAT+=1
test -s $CDOERR && let RSTAT+=1
cat $CDOOUT $CDOERR
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST"
test $RSTAT -eq 0 || echo "not ok $NTEST - $CDOTEST"
else
test $RSTAT -eq 0 && echo "ok $NTEST - $CDOTEST # SKIP netCDF not enabled"
fi
let NTEST+=1
rm -f $OFILE
done
done
#
rm -f $CDOOUT $CDOERR
#
exit 0
INPUTDATA = ts_mm_5years hl_l19.grb t21_geosp_tsurf.grb bathy4.grb pl_data.grb detrend_data
INPUTDATA = ts_mm_5years hl_l19.grb t21_geosp_tsurf.grb bathy4.grb pl_data.grb detrend_data \
netcdf_testfile01.nc
NETCDF_REF = netcdf_testfile01_sinfo_ref netcdf_testfile01_info_ref
TIMSTAT_REF = timmin_ref timmax_ref timsum_ref timavg_ref timmean_ref timstd_ref timstd1_ref timvar_ref timvar1_ref
......
......@@ -281,7 +281,9 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
INPUTDATA = ts_mm_5years hl_l19.grb t21_geosp_tsurf.grb bathy4.grb pl_data.grb detrend_data
INPUTDATA = ts_mm_5years hl_l19.grb t21_geosp_tsurf.grb bathy4.grb pl_data.grb detrend_data \
netcdf_testfile01.nc
NETCDF_REF = netcdf_testfile01_sinfo_ref netcdf_testfile01_info_ref
TIMSTAT_REF = timmin_ref timmax_ref timsum_ref timavg_ref timmean_ref timstd_ref timstd1_ref timvar_ref timvar1_ref
SPECTRAL_REF = sp2gp_ref sp2gpl_ref gp2sp_ref gp2spl_ref
......
-1 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter ID
1 : 0000-01-00 00:00:00 0 2592 0 : -48.800 3.1647 32.000 : -1
2 : 0000-02-00 00:00:00 0 2592 0 : -48.700 2.4530 30.800 : -1
3 : 0000-03-00 00:00:00 0 2592 0 : -62.300 2.2681 30.900 : -1
4 : 0000-04-00 00:00:00 0 2592 0 : -68.500 3.5152 32.700 : -1
5 : 0000-05-00 00:00:00 0 2592 0 : -69.200 5.4965 34.100 : -1
6 : 0000-06-00 00:00:00 0 2592 0 : -69.000 6.9265 35.200 : -1
7 : 0000-07-00 00:00:00 0 2592 0 : -70.300 7.2876 35.700 : -1
8 : 0000-08-00 00:00:00 0 2592 0 : -70.200 6.9544 35.000 : -1
9 : 0000-09-00 00:00:00 0 2592 0 : -68.900 5.8637 32.900 : -1
10 : 0000-10-00 00:00:00 0 2592 0 : -60.800 4.6208 30.700 : -1
11 : 0000-11-00 00:00:00 0 2592 0 : -47.000 3.8041 31.000 : -1
12 : 0000-12-00 00:00:00 0 2592 0 : -46.300 3.5452 31.800 : -1
-1 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter name
1 : 0000-01-00 00:00:00 0 2592 0 : -48.800 3.1647 32.000 : tem
2 : 0000-02-00 00:00:00 0 2592 0 : -48.700 2.4530 30.800 : tem
3 : 0000-03-00 00:00:00 0 2592 0 : -62.300 2.2681 30.900 : tem
4 : 0000-04-00 00:00:00 0 2592 0 : -68.500 3.5152 32.700 : tem
5 : 0000-05-00 00:00:00 0 2592 0 : -69.200 5.4965 34.100 : tem
6 : 0000-06-00 00:00:00 0 2592 0 : -69.000 6.9265 35.200 : tem
7 : 0000-07-00 00:00:00 0 2592 0 : -70.300 7.2876 35.700 : tem
8 : 0000-08-00 00:00:00 0 2592 0 : -70.200 6.9544 35.000 : tem
9 : 0000-09-00 00:00:00 0 2592 0 : -68.900 5.8637 32.900 : tem
10 : 0000-10-00 00:00:00 0 2592 0 : -60.800 4.6208 30.700 : tem
11 : 0000-11-00 00:00:00 0 2592 0 : -47.000 3.8041 31.000 : tem
12 : 0000-12-00 00:00:00 0 2592 0 : -46.300 3.5452 31.800 : tem
File format : netCDF
-1 : Institut Source Ttype Levels Num Points Num Dtype : Parameter ID
1 : unknown unknown instant 1 1 2592 1 I16 : -1
-1 : Institut Source Ttype Levels Num Points Num Dtype : Parameter name
1 : unknown unknown instant 1 1 2592 1 I16 : tem
Grid coordinates :
1 : lonlat : points=2592 (72x36)
lon : -177.5 to 177.5 by 5 degrees_east circular
......
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