GRIB-262: Fixed test which broke on MacOS

This commit is contained in:
Shahram Najm 2013-06-12 18:56:41 +01:00
parent d7129bfb81
commit 0fda97e907
3 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#! /bin/sh #!/bin/sh
# Copyright 2005-2013 ECMWF. # Copyright 2005-2013 ECMWF.
# #
# This software is licensed under the terms of the Apache Licence Version 2.0 # This software is licensed under the terms of the Apache Licence Version 2.0

View File

@ -55,12 +55,14 @@ COUNT=264
rm -f $filter || true rm -f $filter || true
echo "set NV=$COUNT;" >> $filter echo "set NV=$COUNT;" >> $filter
echo "set pv={" >> $filter echo "set pv={" >> $filter
for i in `seq 1 $COUNT`; do i=1
while [ $i -le $COUNT ]; do
if [ $i = $COUNT ]; then if [ $i = $COUNT ]; then
echo " $i" >> $filter echo " $i" >> $filter
else else
echo " $i ," >> $filter echo " $i ," >> $filter
fi fi
i=`expr $i + 1`
done done
echo "};write;" >> $filter echo "};write;" >> $filter
# Apply this filter to a grib2 file from samples. # Apply this filter to a grib2 file from samples.

View File

@ -70,7 +70,7 @@ do
${tools_dir}grib_set -s edition=2 loc1.grib1 loc1.grib2 ${tools_dir}grib_set -s edition=2 loc1.grib1 loc1.grib2
${tools_dir}grib_get -p localDefinitionNumber loc1.grib1 >> local.log ${tools_dir}grib_get -p localDefinitionNumber loc1.grib1 >> local.log
${tools_dir}grib_get -p localDefinitionNumber loc1.grib2 >> local.log ${tools_dir}grib_get -p localDefinitionNumber loc1.grib2 >> local.log
for localEps in 1 15 26 30 for localEps in 1 15 26 30
do do
${tools_dir}grib_set -s localDefinitionNumber=$localEps,eps=1,perturbationNumber=2,numberOfForecastsInEnsemble=50 loc1.grib2 eps.grib2 ${tools_dir}grib_set -s localDefinitionNumber=$localEps,eps=1,perturbationNumber=2,numberOfForecastsInEnsemble=50 loc1.grib2 eps.grib2