# (C) Copyright 2005- ECMWF.

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

# Perturbation number
# (If the perturbation number is set to "MISSING", the product is based on all ensemble members.
# If the perturbation number is set to a value in [1, numberOfForecastsInEnsemble],
# the product is assigned to or associated with a single ensemble member of index perturbationNumber.)
unsigned[4] perturbationNumber = missing() : can_be_missing,dump;
alias number=perturbationNumber;

# Number of forecasts in ensemble
unsigned[4] numberOfForecastsInEnsemble = missing() : can_be_missing,dump;
alias totalNumber=numberOfForecastsInEnsemble;

unsigned[1] forecastProbabilityNumber : dump;

unsigned[1] totalNumberOfForecastProbabilities : dump;

codetable[1] probabilityType ('4.9.table',masterDir,localDir) : dump;
meta probabilityTypeName codetable_title(probabilityType): read_only;

signed[1] scaleFactorOfLowerLimit : can_be_missing,dump ;
signed[4] scaledValueOfLowerLimit : can_be_missing,dump ;

meta lowerLimit from_scale_factor_scaled_value(
     scaleFactorOfLowerLimit, scaledValueOfLowerLimit): can_be_missing;

signed[1] scaleFactorOfUpperLimit : can_be_missing,dump;
signed[4] scaledValueOfUpperLimit : can_be_missing,dump;

meta upperLimit from_scale_factor_scaled_value(
     scaleFactorOfUpperLimit, scaledValueOfUpperLimit): can_be_missing;
