mirror of https://github.com/ecmwf/eccodes.git
Support for grid_complex encoding
This commit is contained in:
parent
c586312a39
commit
67be884370
|
@ -17,6 +17,7 @@ meta codedValues data_g22order_packing(
|
|||
referenceValue,
|
||||
binaryScaleFactor,
|
||||
decimalScaleFactor,
|
||||
optimizeScaleFactor,
|
||||
|
||||
typeOfOriginalFieldValues ,
|
||||
groupSplittingMethodUsed,
|
||||
|
|
|
@ -14,6 +14,7 @@ meta codedValues data_g22order_packing(
|
|||
referenceValue,
|
||||
binaryScaleFactor,
|
||||
decimalScaleFactor,
|
||||
optimizeScaleFactor,
|
||||
|
||||
typeOfOriginalFieldValues ,
|
||||
groupSplittingMethodUsed,
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -118,6 +118,12 @@ grib_check_key_equals $tempSimple bitmapPresent,numberOfMissing,numberOfValues,n
|
|||
stats=`${tools_dir}/grib_get -F%.2f -p max,min,avg $tempSimple`
|
||||
[ "$stats" = "2.81 0.00 0.30" ]
|
||||
|
||||
# Repack
|
||||
${tools_dir}/grib_copy -r $infile $temp2
|
||||
${tools_dir}/grib_compare -c data:n $infile $temp2
|
||||
grib_check_key_equals $temp2 bitsPerValue 8 # Note: The input file has bpv=9
|
||||
|
||||
|
||||
# Simple to grid_complex
|
||||
tempComplex=temp.grib_bitmap.complex.grib
|
||||
${tools_dir}/grib_set -r -s packingType=grid_complex $tempSimple $tempComplex
|
||||
|
|
Loading…
Reference in New Issue