# (C) Copyright 2005- ECMWF.
# Cluster Scenarios

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;

ascii[1] clusteringDomain : dump;

unsigned[1] operationalForecastCluster  : dump;

unsigned[1] controlForecastCluster  : dump;
unsigned[1] representativeMember : dump;
codetable[1] climatologicalRegime "grib1/regime.table" : dump;

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

alias mars.number = clusterNumber;
alias mars.domain=clusteringDomain;
