From 467a2c0ea679c9b1af9b71349d28131b6cd0a458 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Thu, 20 Jun 2013 16:49:28 +0100 Subject: [PATCH] GRIB-262: Fix the issue with wave spectra. The key octetAtWichPackedDataBegins was overflowing! --- definitions/grib1/data.grid_simple_matrix.def | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/definitions/grib1/data.grid_simple_matrix.def b/definitions/grib1/data.grid_simple_matrix.def index 6a0aa1a40..f94222252 100644 --- a/definitions/grib1/data.grid_simple_matrix.def +++ b/definitions/grib1/data.grid_simple_matrix.def @@ -87,7 +87,9 @@ if(matrixOfValues == 0) ) : read_only; alias data.packedValues = codedValues; meta values data_apply_bitmap(codedValues,bitmap,missingValue,binaryScaleFactor) : dump; - when(changed(values)) {set octetAtWichPackedDataBegins=numberOfCodedValues;} + # See GRIB-262: The octetAtWichPackedDataBegins cannot be set to a value bigger than 65535! + # This is historic stuff which no longer applies + # when(changed(values)) {set octetAtWichPackedDataBegins=numberOfCodedValues;} } else { # For grib1 -> grib2 constant bitMapIndicator = 255;