# Copyright 2005-2017 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.
#

# START 1/local.98.15 ----------------------------------------------------------------------
# LOCAL 98 15
#
# localDefinitionTemplate_015
# ---------------------------
#
# 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      -
#total                           56      I2      43      -
#systemNumber                    52      I2      44      -
#methodNumber                    54      I2      45      -
#spareSetToZero                  58      PAD     n/a     3
#

# used in local definition 13

constant GRIBEXSection1Problem = 60 - section1Length ;

transient localFlag=1 : hidden ;

template mars_labeling "grib1/mars_labeling.def";
#1->2
alias grib2LocalSectionPresent=present;
constant grib2LocalSectionNumber=15;
if (stepType is "instant") {
            alias productDefinitionTemplateNumber=one;
} else {
            alias productDefinitionTemplateNumber=eleven;
}

unsigned[2] perturbationNumber : dump ;
alias number=perturbationNumber;

unsigned[2] systemNumber : dump ;

unsigned[2] methodNumber : dump ;

unsigned[2] numberOfForecastsInEnsemble : dump ;
alias totalNumber=numberOfForecastsInEnsemble;

# spareSetToZero
pad padding_loc15_1(3);

alias origin = centre;
alias number = perturbationNumber;
alias total=numberOfForecastsInEnsemble;
alias system = systemNumber;
alias method = methodNumber;

alias local.perturbationNumber=perturbationNumber;
alias local.systemNumber=systemNumber;
alias local.methodNumber=methodNumber;




