From c1e85cff6d0e4ecce3fd6a202883fb4bd2ae8ba5 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Wed, 1 Jun 2022 15:18:56 +0100 Subject: [PATCH] Testing: Add tests for large constant fields (GRIB1 and GRIBEX mode) --- tests/grib_change_packing.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/grib_change_packing.sh b/tests/grib_change_packing.sh index 958e66444..6f9ceebc2 100755 --- a/tests/grib_change_packing.sh +++ b/tests/grib_change_packing.sh @@ -142,5 +142,12 @@ grib_check_key_equals $temp const,bitsPerValue,section7Length '1 0 5' ${tools_dir}/grib_set -s produceLargeConstantFields=1 -d1 $input $temp grib_check_key_equals $temp const,bitsPerValue,section7Length '1 16 997' +# GRIB1: when GRIBEX mode is enabled, we also get a large constant field +input=${data_dir}/simple.grib +${tools_dir}/grib_set -d1 $input $temp +grib_check_key_equals $temp const,bitsPerValue,section4Length '1 0 12' +ECCODES_GRIBEX_MODE_ON=1 ${tools_dir}/grib_set -d1 $input $temp +grib_check_key_equals $temp const,bitsPerValue,section4Length '1 12 8966' + rm -f $temp $temp_err