GRIB-358: local definition 14 only allows up to channel number 255

This commit is contained in:
Shahram Najm 2013-05-10 13:21:07 +01:00
parent f8e9cf0032
commit 66ec08b40a
4 changed files with 17 additions and 1 deletions

View File

@ -285,6 +285,7 @@ dist_definitionsgrib2_DATA = \
grib2/local.98.0.def\
grib2/local.98.1.def\
grib2/local.98.11.def\
grib2/local.98.14.def\
grib2/local.98.15.def\
grib2/local.98.16.def\
grib2/local.98.18.def\

View File

@ -3,6 +3,7 @@
7 7 Sensitivity data
9 9 Singular vectors and ensemble perturbations
11 11 Supplementary data used by the analysis
14 14 Brightness temperature
15 15 Seasonal forecast data
16 16 Seasonal forecast monthly mean data
18 18 Multianalysis ensemble data

View File

@ -0,0 +1,13 @@
# Copyright 2005-2013 ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
#
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
#
# Definition 14, Brightness temperature
unsigned[4] channelNumber : dump ;
alias mars.channel = channelNumber;

View File

@ -250,7 +250,7 @@ static int pack_long(grib_accessor* a, const long* val, size_t *len)
break;
case 15: /* Seasonal forecast data */
case 16:
case 16: /* Seasonal forecast monthly mean data */
case 18: /* Multianalysis ensemble data */
case 26: /* MARS labelling or ensemble forecast data */
case 30: /* Forecasting Systems with Variable Resolution */
@ -264,6 +264,7 @@ static int pack_long(grib_accessor* a, const long* val, size_t *len)
case 7: /* Sensitivity data */
case 9: /* Singular vectors and ensemble perturbations */
case 11: /* Supplementary data used by the analysis */
case 14: /* Brightness temperature */
case 20: /* 4D variational increments */
case 21: /* Sensitive area predictions */
case 23: /* Coupled atmospheric, wave and ocean means */