ECC-1585: Merge branch feature/grib2-climate-template to develop

This commit is contained in:
Shahram Najm 2023-05-11 12:06:27 +01:00
parent 61f5db1462
commit a07644009d
5 changed files with 92 additions and 0 deletions

View File

@ -0,0 +1,10 @@
# (C) Copyright 2005- ECMWF.
# TEMPLATE 4.105, Analysis or forecast in relation to a reference period at a horizontal level or in a horizontal layer in a continuous or non-continuous time interval
include "grib2/template.4.parameter.def"
include "grib2/template.4.generating_process.def"
include "grib2/template.4.forecast_time.def"
include "grib2/template.4.horizontal.def"
include "grib2/template.4.statistical.def"
include "grib2/template.4.referenceperiod.def"

View File

@ -0,0 +1,11 @@
# (C) Copyright 2005- ECMWF.
# TEMPLATE 4.106, Individual ensemble forecast, control and perturbed in relation to a reference period at a horizontal level or in a horizontal layer in a continuous or non-continuous time interval
include "grib2/template.4.parameter.def"
include "grib2/template.4.generating_process.def"
include "grib2/template.4.forecast_time.def"
include "grib2/template.4.horizontal.def"
include "grib2/template.4.statistical.def"
include "grib2/template.4.eps.def"
include "grib2/template.4.referenceperiod.def"

View File

@ -0,0 +1,11 @@
# (C) Copyright 2005- ECMWF.
# TEMPLATE 4.107, Derived forecasts based on all ensemble members in relation to a reference period at a horizontal level or in a horizontal layer in a continuous or non-continuous time interval
include "grib2/template.4.parameter.def"
include "grib2/template.4.generating_process.def"
include "grib2/template.4.forecast_time.def"
include "grib2/template.4.horizontal.def"
include "grib2/template.4.statistical.def"
include "grib2/template.4.derived.def"
include "grib2/template.4.referenceperiod.def"

View File

@ -0,0 +1,11 @@
# (C) Copyright 2005- ECMWF.
# TEMPLATE 4.112, Probability forecasts in relation to a reference period at a horizontal level or in a horizontal layer in a continuous or non-continuous time interval
include "grib2/template.4.parameter.def"
include "grib2/template.4.generating_process.def"
include "grib2/template.4.forecast_time.def"
include "grib2/template.4.horizontal.def"
include "grib2/template.4.statistical.def"
include "grib2/template.4.probability.def"
include "grib2/template.4.referenceperiod.def"

View File

@ -0,0 +1,49 @@
# Type of reference dataset
codetable[1] typeOfReferenceDataset ('4.100.table',masterDir,localDir) = 255 : dump,edition_specific;
# Type of relation to reference dataset
codetable[1] typeOfRelationToReferenceDataset ('4.101.table',masterDir,localDir) = 255 : dump,edition_specific;
# number of additional parameters
unsigned[1] numberOfAdditionalParametersForReferencePeriod=0 ;
additionalParameter list(numberOfAdditionalParametersForReferencePeriod)
{
signed[1] scaleFactorOfAdditionalParameterForReferencePeriod;
signed[4] scaledValueOfAdditionalParameterForReferencePeriod;
}
## Start of reference period
unsigned[2] yearOfStartOfReferencePeriod = missing() : edition_specific,can_be_missing;
unsigned[1] monthOfStartOfReferencePeriod = missing() : edition_specific,can_be_missing;
unsigned[1] dayOfStartOfReferencePeriod = missing() : edition_specific,can_be_missing;
unsigned[1] hourOfStartOfReferencePeriod = missing() : edition_specific,can_be_missing;
unsigned[1] minuteOfStartOfReferencePeriod = missing() : edition_specific,can_be_missing;
unsigned[1] secondOfStartOfReferencePeriod = missing() : edition_specific,can_be_missing;
meta startDateOfReferencePeriod g2date(yearOfStartOfReferencePeriod,monthOfStartOfReferencePeriod,dayOfStartOfReferencePeriod);
## End of reference period (defined as startDateOfReferencePeriod + referencePeriodTimeIncrement * referencePeriodIndicatorOfUnitForTimeIncrement)
unsigned[4] sampleSizeOfReferencePeriod = 0;
# n - number of time range specifications describing the time intervals used to calculate the statistically-processed field
unsigned[1] numberOfReferencePeriodTimeRanges = 1 : edition_specific;
alias nref = numberOfReferencePeriodTimeRanges;
referencePeriodList list(numberOfReferencePeriodTimeRanges)
{
# Type of statistical processing of reference period
codetable[1] typeOfStatisticalProcessingForTimeRangeForReferencePeriod ('4.102.table',masterDir,localDir) = 255 : dump,edition_specific;
# Indicator of unit of time for the increment between the successive fields used
codetable[1] indicatorOfUnitForTimeRangeForReferencePeriod ('4.4.table',masterDir,localDir)=255 ;
# Length of reference period, in units defined by the previous octet [referencePeriodIndicatorOfUnitForTimeIncrement]
unsigned[4] lengthOfTimeRangeForReferencePeriod=0 ;
}