Support for grid_complex encoding

This commit is contained in:
Shahram Najm 2023-03-29 17:06:39 +01:00
parent c586312a39
commit 67be884370
4 changed files with 1407 additions and 423 deletions

View File

@ -17,6 +17,7 @@ meta codedValues data_g22order_packing(
referenceValue,
binaryScaleFactor,
decimalScaleFactor,
optimizeScaleFactor,
typeOfOriginalFieldValues ,
groupSplittingMethodUsed,

View File

@ -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

View File

@ -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