# Copyright 2005-2015 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.6 ----------------------------------------------------------------------
# LOCAL 98 6
#
# localDefinitionTemplate_006
# ---------------------------
#
# 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  -
#zeroes                      50  PAD 42  2
#dateOfSSTFieldUsed          52  D3  44  -
#typeOfSSTFieldUsed          55  I1  45  -
#countOfICEFieldsUsed        56  I1  46  -
#iceFieldDate+Satellite      57  LIST    47  countOfICEFieldsUsed
#dateOfIceFieldUsed          -   D3  -   -
#satelliteNumber             -   I1  -   -
#ENDLIST                     -   ENDLIST -   iceFieldDate+Satellite
#


template mars_labeling "grib1/mars_labeling.def";

# zeroes

pad padding_loc6_1(2);

unsigned[3] dateSSTFieldUsed  : dump;

unsigned[1] typeOfSSTFieldUsed  : dump;

unsigned[1] countOfICEFieldsUsed  : dump;


ICEFieldsUsed list(countOfICEFieldsUsed)
{
  unsigned[3] dateOfIceFieldUsed : dump ;
  unsigned[1] satelliteNumber : dump ;
}

constant GRIBEXSection1Problem = 56 + countOfICEFieldsUsed * 3 - section1Length ;

# END   1/local.98.6 ----------------------------------------------------------------------
