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.30 ----------------------------------------------------------------------
11# LOCAL 98 30
12#
13#!       localDefinitionTemplate_030
14#!       ---------------------------
15#!
16#! # Forecasting Systems with Variable Resolution
17#!
18#!Description                    Octet   Code    Ksec1   Count
19#!-----------                    -----   ----    -----   -----
20#!
21#localDefinitionNumber           41      I1      37      -
22#class                           42      I1      38      -
23#type                            43      I1      39      -
24#stream                          44      I2      40      -
25#experimentVersionNumber         46      A4      41      -
26
27#number                          50      I1      42      -
28#total                           51      I1      43      -
29
30#oceanAtmosphereCoupling         52      I1      44      -
31#spare                           53      I1      45      -
32#padding                         54      PAD     n/a     2
33#! VAriable Resolution (VAREPS)
34#legBaseDate                     56      I4      46      -     ! yyyymmdd
35#legBaseTime                     60      I2      47      -     ! hhmm
36#legNumber                       62      I1      48      -
37#! For hindcasts
38#dateOfForecastRun               63      I4      49      -     !
39#climateDateFrom                 67      I4      50      -     ! yyyymmdd (ensemble means of hindcasts)
40#climateDateTo                   71      I4      51      -     ! yyyymmdd (ensemble means of hindcasts)
41#spareSetToZero                  75      PAD     n/a    32
42#
43
44constant GRIBEXSection1Problem = 106 - section1Length ;
45
46# used in local definition 13
47transient localFlag=3 : hidden;
48
49# 1-> 2
50alias grib2LocalSectionPresent=present;
51constant grib2LocalSectionNumber=30;
52
53template mars_labeling "grib1/mars_labeling.def";
54
55#1->2
56if (stepType is "instant" ) {
57	if (type is "em" || type is "es" ) {
58	  alias productDefinitionTemplateNumber=epsStatisticsPoint;
59	} else {
60	  alias productDefinitionTemplateNumber=epsPoint;
61	}
62} else {
63	if (type is "em" || type is "es" ) {
64	  alias productDefinitionTemplateNumber=epsStatisticsContinous;
65	} else {
66	  alias productDefinitionTemplateNumber=epsContinous;
67	}
68}
69
70
71unsigned[1] perturbationNumber  : dump;
72alias number=perturbationNumber;
73unsigned[1] numberOfForecastsInEnsemble  : dump;
74alias totalNumber=numberOfForecastsInEnsemble;
75
76
77unsigned[1] oceanAtmosphereCoupling : dump;
78
79pad padding_loc30_1(3);
80
81unsigned[4] legBaseDate  : dump ;
82unsigned[2] legBaseTime : dump ;
83unsigned[1] legNumber : dump ;
84unsigned[4] referenceDate  : dump ;
85unsigned[4] climateDateFrom  : dump ;
86unsigned[4] climateDateTo  : dump;
87
88
89alias local.oceanAtmosphereCoupling=oceanAtmosphereCoupling;
90alias local.legBaseDate=legBaseDate ;
91alias local.legBaseTime=legBaseTime ;
92alias local.legNumber=legNumber ;
93alias local.referenceDate=referenceDate ;
94alias local.climateDateFrom=climateDateFrom ;
95alias local.climateDateTo=climateDateTo;
96
97alias mars._leg_number = legNumber;
98
99pad padding_loc30_2(32);
100
101# END   1/local.98.30 ----------------------------------------------------------------------
102