# Copyright 2005-2018 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.31 ----------------------------------------------------------------------
# LOCAL 98 1
#
# ---------------------------
#
# 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      I1      42      -
#total                           51      I1      43      -
#forecastMonth                   52      I2      44      -
#dateOfForecastRun               54      I4      45      -     ! yyyymmdd
#numberOfModels                  58      I1      46      -
#spareSetToZero                  59      PAD     n/a     42
#originatingCentreIdentifiers    101     LIST    47      numberOfModels
#ccccIdentifiers                 -       I2      -       -
#ENDLIST                         -       ENDLIST -       originatingCentreIdentifiers
#unusedEntriesSetToBlanks        -       SP_TO   -       240
#

constant GRIBEXSection1Problem = 240 - section1Length ;

template mars_labeling "grib1/mars_labeling.def";

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

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

unsigned[2] forecastMonth : dump;




unsigned[4] dateOfForecastRun : dump;
alias referenceDate = dateOfForecastRun;


unsigned[1] numberOfModels :dump;
pad padding_local1_31(42);
listOfModelIdentifiers list (numberOfModels) {
  codetable[2] modelIdentifier 'common/c-1.table' :dump;
}
padto padding_sec1_loc(offsetSection1 + 240 );

alias number = perturbationNumber;

alias total=numberOfForecastsInEnsemble;


# END   1/local.98.1 ----------------------------------------------------------------------

