# Copyright 2005-2017 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.
#

#  Type of ensemble forecast
codetable[1] typeOfEnsembleForecast ('4.6.table',masterDir,localDir) = 255 : dump;

#  Perturbation number
unsigned[1] perturbationNumber  : dump;
alias number=perturbationNumber;

#  Number of forecasts in ensemble
unsigned[1] numberOfForecastsInEnsemble  : dump;
alias totalNumber=numberOfForecastsInEnsemble;

#  Rules for TIGGE, S2S and UERRA
if (productionStatusOfProcessedData == 4 ||
    productionStatusOfProcessedData == 5 ||
    productionStatusOfProcessedData == 6 ||
    productionStatusOfProcessedData == 7 ||
    productionStatusOfProcessedData == 8 ||
    productionStatusOfProcessedData == 9)
{
    alias mars.number=perturbationNumber;
}
