1# Copyright 2005-2018 ECMWF.
2#
3# This software is licensed under the terms of the Apache Licence Version 2.0
4# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
5#
6# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
7# virtue of its status as an intergovernmental organisation nor does it submit to any jurisdiction.
8#
9
10# START 1/local.98.21 ----------------------------------------------------------------------
11# LOCAL 98 21
12#
13# localDefinitionTemplate_027 (replaced by 30)
14# ---------------------------
15#
16# Description                Octet    Code    Ksec1    Count
17# -----------                -----    ----    -----    -----
18#localDefinitionNumber           41      I1      37      -
19#class                           42      I1      38      -
20#type                            43      I1      39      -
21#stream                          44      I2      40      -
22#experimentVersionNumber         46      A4      41      -
23#number                          50      I1      42      -
24#total                           51      I1      43      -
25#oceanAtmosphereCoupling         52      I1      44      -
26#spare                           53      I1      45      -
27#padding                         54      PAD     n/a     2
28#! VAriable Resolution (VAREPS)
29#legBaseDate                     56      I4      46      -     ! yyyymmdd
30#legBaseTime                     60      I2      47      -     ! hhmm
31#legNumber                       62      I1      48      -
32#! For hindcasts
33#referenceDate                   63      I4      49      -     !
34#climateDateFrom                 67      I4      50      -     ! yyyymmdd (ensemble means of hindcasts)
35#climateDateTo                   71      I4      51      -     ! yyyymmdd (ensemble means of hindcasts)
36#spareSetToZero                  75      PAD     n/a    33
37#
38
39constant GRIBEXSection1Problem = 107 - section1Length ;
40
41#1->2
42transient grib2LocalSectionNumber=30;
43
44template mars_labeling "grib1/mars_labeling.def";
45constant wrongPadding=1 : hidden;
46
47
48unsigned[1] perturbationNumber : dump ;
49unsigned[1] numberOfForecastsInEnsemble : dump ;
50alias totalNumber=numberOfForecastsInEnsemble;
51alias number = perturbationNumber;
52
53
54unsigned[1] oceanAtmosphereCoupling : dump   ;
55
56pad padding_loc27_1(3);
57
58unsigned[4] legBaseDate : dump  ;
59unsigned[2] legBaseTime : dump ;
60unsigned[1] legNumber : dump ;
61unsigned[4] referenceDate : dump  ;
62unsigned[4] climateDateFrom : dump  ;
63unsigned[4] climateDateTo : dump ;
64
65alias mars._leg_number = legNumber;
66
67pad padding_loc27_2(33);
68