mirror of https://github.com/ecmwf/eccodes.git
ECC-1472: remove re-packing form grib-bitmap test
This commit is contained in:
parent
93d7885290
commit
2721644f76
|
@ -126,7 +126,8 @@ grib_check_key_equals $temp2 bitsPerValue 9 # Note: The input file has bpv=9
|
||||||
|
|
||||||
# Simple to grid_complex
|
# Simple to grid_complex
|
||||||
tempComplex=temp.grib_bitmap.complex.grib
|
tempComplex=temp.grib_bitmap.complex.grib
|
||||||
${tools_dir}/grib_set -r -s packingType=grid_complex $tempSimple $tempComplex
|
#${tools_dir}/grib_set -r -s packingType=grid_complex $tempSimple $tempComplex # TODO: fix re-packing
|
||||||
|
${tools_dir}/grib_set -s packingType=grid_complex $tempSimple $tempComplex
|
||||||
grib_check_key_equals $tempComplex packingType,bitmapPresent,numberOfMissing,numberOfValues,numberOfPoints "grid_complex 1 556901 481339 1038240"
|
grib_check_key_equals $tempComplex packingType,bitmapPresent,numberOfMissing,numberOfValues,numberOfPoints "grid_complex 1 556901 481339 1038240"
|
||||||
stats=`${tools_dir}/grib_get -F%.2f -p max,min,avg $tempComplex`
|
stats=`${tools_dir}/grib_get -F%.2f -p max,min,avg $tempComplex`
|
||||||
[ "$stats" = "2.81 0.00 0.30" ]
|
[ "$stats" = "2.81 0.00 0.30" ]
|
||||||
|
@ -134,7 +135,8 @@ rm -f $tempComplex
|
||||||
|
|
||||||
# Simple to grid_complex_spatial_differencing
|
# Simple to grid_complex_spatial_differencing
|
||||||
tempComplexSD=temp.grib_bitmap.complexSD.grib
|
tempComplexSD=temp.grib_bitmap.complexSD.grib
|
||||||
${tools_dir}/grib_set -r -s packingType=grid_complex_spatial_differencing $tempSimple $tempComplexSD
|
#${tools_dir}/grib_set -r -s packingType=grid_complex_spatial_differencing $tempSimple $tempComplexSD # TODO: fix re-packing
|
||||||
|
${tools_dir}/grib_set -s packingType=grid_complex_spatial_differencing $tempSimple $tempComplexSD
|
||||||
grib_check_key_equals $tempComplexSD packingType "grid_complex_spatial_differencing"
|
grib_check_key_equals $tempComplexSD packingType "grid_complex_spatial_differencing"
|
||||||
grib_check_key_equals $tempComplexSD bitmapPresent,numberOfMissing,numberOfValues,numberOfPoints "1 556901 481339 1038240"
|
grib_check_key_equals $tempComplexSD bitmapPresent,numberOfMissing,numberOfValues,numberOfPoints "1 556901 481339 1038240"
|
||||||
stats=`${tools_dir}/grib_get -F%.2f -p max,min,avg $tempComplexSD`
|
stats=`${tools_dir}/grib_get -F%.2f -p max,min,avg $tempComplexSD`
|
||||||
|
|
Loading…
Reference in New Issue