mirror of https://github.com/ecmwf/eccodes.git
Appveyor: Fix Windows
This commit is contained in:
parent
f7d1505c9c
commit
6fb24961ea
|
@ -76,23 +76,24 @@ rm -f $temp
|
||||||
|
|
||||||
# IEEE to Simple Packing
|
# IEEE to Simple Packing
|
||||||
# -----------------------
|
# -----------------------
|
||||||
input=${data_dir}/grid_ieee.grib
|
if [ $ECCODES_ON_WINDOWS -eq 0 ]; then
|
||||||
${tools_dir}/grib_set -r -s packingType=grid_simple $input $temp
|
input=${data_dir}/grid_ieee.grib
|
||||||
grib_check_key_equals $input accuracy 32
|
${tools_dir}/grib_set -r -s packingType=grid_simple $input $temp
|
||||||
grib_check_key_equals $temp packingType 'grid_simple'
|
grib_check_key_equals $input accuracy 32
|
||||||
grib_check_key_equals $temp accuracy,bitsPerValue '32 32'
|
grib_check_key_equals $temp packingType 'grid_simple'
|
||||||
stats1=`${tools_dir}/grib_get -F%.2f -p skew,kurt $input`
|
grib_check_key_equals $temp accuracy,bitsPerValue '32 32'
|
||||||
stats2=`${tools_dir}/grib_get -F%.2f -p skew,kurt $temp`
|
stats1=`${tools_dir}/grib_get -F%.2f -p skew,kurt $input`
|
||||||
[ "$stats1" = "$stats2" ]
|
stats2=`${tools_dir}/grib_get -F%.2f -p skew,kurt $temp`
|
||||||
|
[ "$stats1" = "$stats2" ]
|
||||||
# 64bit IEEE - We can only do max. 32 with CCSDS
|
|
||||||
input=${data_dir}/reduced_gaussian_model_level.grib2
|
|
||||||
${tools_dir}/grib_set -r -s packingType=grid_ieee,precision=2 $input $temp
|
|
||||||
grib_check_key_equals $temp packingType,accuracy 'grid_ieee 64'
|
|
||||||
${tools_dir}/grib_set -r -s packingType=grid_simple $temp $temp.simple
|
|
||||||
grib_check_key_equals $temp.simple packingType,accuracy 'grid_simple 32'
|
|
||||||
rm -f $temp.simple
|
|
||||||
|
|
||||||
|
# 64bit IEEE - We can only do max. 32 with CCSDS
|
||||||
|
input=${data_dir}/reduced_gaussian_model_level.grib2
|
||||||
|
${tools_dir}/grib_set -r -s packingType=grid_ieee,precision=2 $input $temp
|
||||||
|
grib_check_key_equals $temp packingType,accuracy 'grid_ieee 64'
|
||||||
|
${tools_dir}/grib_set -r -s packingType=grid_simple $temp $temp.simple
|
||||||
|
grib_check_key_equals $temp.simple packingType,accuracy 'grid_simple 32'
|
||||||
|
rm -f $temp.simple
|
||||||
|
fi
|
||||||
|
|
||||||
# Test 'accuracy' key
|
# Test 'accuracy' key
|
||||||
# -----------------------
|
# -----------------------
|
||||||
|
|
Loading…
Reference in New Issue