ECC-679: Add numberOfForecastsInEnsemble to the Local definition number 16

This commit is contained in:
Shahram Najm 2018-04-23 12:22:27 +01:00
parent eebe44331a
commit f64b596ffa
2 changed files with 9 additions and 31 deletions

View File

@ -7,31 +7,8 @@
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
#
# START 1/local.98.16 ---------------------------------------------------------------------
# LOCAL 98 16
#
# localDefinitionTemplate_016
# ---------------------------
#
# Description Octet Code Ksec1 Count
# ----------- ----- ---- ----- -----
#localDefinitionNumber 41 I1 37 -
#class 42 I1 38 -
#type 43 I1 39 -
#stream 44 I2 40 -
#experimentVersionNumber 46 A4 41 -
#number 50 I2 42 -
#zero n/a PAD 43 1
#systemNumber 52 I2 44 -
#methodNumber 54 I2 45 -
#verifyingMonth 56 I4 46 -
#averagingPeriod 60 I1 47 -
#forecastMonth 61 I2 48 -
#spareSetToZero 63 PAD n/a 18
#
# ------------------- From section 1
# ------------------- End of section 1
# Seasonal forecast monthly mean data
constant GRIBEXSection1Problem = 80 - section1Length ;
@ -42,8 +19,6 @@ template mars_labeling "grib1/mars_labeling.def";
unsigned[2] perturbationNumber : dump ;
# zero
unsigned[2] systemNumber : dump ;
unsigned[2] methodNumber : dump ;
@ -85,10 +60,9 @@ alias number = perturbationNumber;
alias system = systemNumber;
alias method = methodNumber;
# ECC-679
unsigned[2] numberOfForecastsInEnsemble : dump ;
alias totalNumber=numberOfForecastsInEnsemble;
# spareSetToZero
pad padding_loc16_1(18);
# END 1/local.98.16 ----------------------------------------------------------------------
pad padding_loc16_1(16);

View File

@ -111,4 +111,8 @@ grib_check_key_equals $temp.3 probabilityType,scaledValueOfLowerLimit,scaledValu
${tools_dir}/grib_set -s setLocalDefinition=1,localDefinitionNumber=42,lcwfvSuiteName=9 $sample_g2 $temp
grib_check_key_equals $temp 'mars.origin:s' 'lops'
# Extra key in Local Definition 16 for GRIB1. ECC-679
${tools_dir}/grib_set -s setLocalDefinition=1,localDefinitionNumber=16,numberOfForecastsInEnsemble=51 $sample_g1 $temp
grib_check_key_equals $temp 'totalNumber' '51'
rm -f $temp $temp.1 $temp.2 $temp.3