From 6e4fedf006d755c30efb5a0f011933830a2f3e54 Mon Sep 17 00:00:00 2001 From: shahramn Date: Tue, 20 Feb 2024 19:18:08 +0000 Subject: [PATCH] Definitions: countOfGroupLengths not used --- definitions/grib2/template.7.50001.def | 6 ++---- definitions/grib2/template.7.50002.def | 9 +++------ 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/definitions/grib2/template.7.50001.def b/definitions/grib2/template.7.50001.def index 18bc0ca32..882379f36 100644 --- a/definitions/grib2/template.7.50001.def +++ b/definitions/grib2/template.7.50001.def @@ -6,13 +6,13 @@ if (bitsPerValue) { meta groupWidths unsigned_bits(widthOfWidths,numberOfGroups) : read_only; meta groupLengths unsigned_bits(widthOfLengths,numberOfGroups) : read_only; meta firstOrderValues unsigned_bits(widthOfFirstOrderValues,numberOfGroups) : read_only; - meta countOfGroupLengths sum(groupLengths); + # meta countOfGroupLengths sum(groupLengths); } transient halfByte=0; position offsetBeforeData; -if(bitmapPresent) { +if(bitmapPresent) { meta codedValues data_g1second_order_general_extended_packing( #simple_packing args section7Length, @@ -49,7 +49,6 @@ if(bitmapPresent) { widthOfSPD, orderOfSPD, numberOfPoints - ): read_only; alias data.packedValues = codedValues; @@ -91,7 +90,6 @@ if(bitmapPresent) { widthOfSPD, orderOfSPD, numberOfPoints - ) : dump; alias codedValues=values; alias data.packedValues = values; diff --git a/definitions/grib2/template.7.50002.def b/definitions/grib2/template.7.50002.def index be47b0604..7ca21e92a 100644 --- a/definitions/grib2/template.7.50002.def +++ b/definitions/grib2/template.7.50002.def @@ -5,12 +5,12 @@ meta groupWidths unsigned_bits(widthOfWidths,numberOfGroups) : read_only; meta groupLengths unsigned_bits(widthOfLengths,numberOfGroups) : read_only; meta firstOrderValues unsigned_bits(widthOfFirstOrderValues,numberOfGroups) : read_only; -meta countOfGroupLengths sum(groupLengths); +# meta countOfGroupLengths sum(groupLengths); transient halfByte=0; position offsetBeforeData; -if(bitmapPresent) { +if(bitmapPresent) { meta codedValues data_g1second_order_general_extended_packing( #simple_packing args section7Length, @@ -47,7 +47,6 @@ if(bitmapPresent) { widthOfSPD, orderOfSPD, numberOfPoints - ): read_only; alias data.packedValues = codedValues; @@ -96,8 +95,7 @@ if(bitmapPresent) { widthOfSPD, orderOfSPD, numberOfPoints - - ) : dump; + ) : dump; meta values data_apply_boustrophedonic(codedValues,numberOfRows,numberOfColumns,numberOfPoints,pl) : dump; @@ -138,7 +136,6 @@ if(bitmapPresent) { widthOfSPD, orderOfSPD, numberOfPoints - ) : dump; alias codedValues=values; }