# 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.
#

constant GRIBEXSection1Problem = 328 - section1Length ;

template mars_labeling "grib1/mars_labeling.def";

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

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

# spareSetToZero
pad padding_loc2_1(1);

unsigned[1] clusteringMethod  : dump;

unsigned[2] startTimeStep  : dump;

unsigned[2] endTimeStep  : dump;

signed[3] northernLatitudeOfDomain  : dump;

signed[3] westernLongitudeOfDomain  : dump;

signed[3] southernLatitudeOfDomain  : dump;

signed[3] easternLongitudeOfDomain  : dump;

unsigned[1] operationalForecastCluster  : dump;

unsigned[1] controlForecastCluster  : dump;

unsigned[1] numberOfForecastsInCluster  : dump;
if (numberOfForecastsInCluster > 0) {
unsigned[1] ensembleForecastNumbers[numberOfForecastsInCluster] : dump;
}
# spareToEnsureFixedLength
padto padding_loc2_2(offsetSection1 + 328);


constant unknown="-";
concept_nofail clusteringDomain(unknown,"cluster_domain.def",conceptsMasterDir,conceptsLocalDirAll);
alias number = clusterNumber;
alias domain = clusteringDomain;
