mirror of https://github.com/ecmwf/eccodes.git
GRIB-262: Fixed test which broke on MacOS
This commit is contained in:
parent
d7129bfb81
commit
0fda97e907
|
@ -1,4 +1,4 @@
|
|||
#! /bin/sh
|
||||
#!/bin/sh
|
||||
# Copyright 2005-2013 ECMWF.
|
||||
#
|
||||
# This software is licensed under the terms of the Apache Licence Version 2.0
|
||||
|
|
|
@ -55,12 +55,14 @@ COUNT=264
|
|||
rm -f $filter || true
|
||||
echo "set NV=$COUNT;" >> $filter
|
||||
echo "set pv={" >> $filter
|
||||
for i in `seq 1 $COUNT`; do
|
||||
i=1
|
||||
while [ $i -le $COUNT ]; do
|
||||
if [ $i = $COUNT ]; then
|
||||
echo " $i" >> $filter
|
||||
else
|
||||
echo " $i ," >> $filter
|
||||
fi
|
||||
i=`expr $i + 1`
|
||||
done
|
||||
echo "};write;" >> $filter
|
||||
# Apply this filter to a grib2 file from samples.
|
||||
|
|
|
@ -70,7 +70,7 @@ do
|
|||
${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.grib2 >> local.log
|
||||
|
||||
|
||||
for localEps in 1 15 26 30
|
||||
do
|
||||
${tools_dir}grib_set -s localDefinitionNumber=$localEps,eps=1,perturbationNumber=2,numberOfForecastsInEnsemble=50 loc1.grib2 eps.grib2
|
||||
|
|
Loading…
Reference in New Issue