From d6a2d7df0d4ab5503fd6378c06feda607e30feab Mon Sep 17 00:00:00 2001 From: Robert Osinski Date: Fri, 11 Oct 2024 13:16:23 +0000 Subject: [PATCH] initial commit --- definitions/grib2/local/ecmf/template.4.32768.def | 11 +++++++++++ .../grib2/local/ecmf/template.4.randomPatterns.def | 8 ++++++++ definitions/grib2/localConcepts/ecmf/name.def | 7 +++++++ definitions/grib2/localConcepts/ecmf/paramId.def | 7 +++++++ definitions/grib2/localConcepts/ecmf/shortName.def | 7 +++++++ definitions/grib2/localConcepts/ecmf/units.def | 7 +++++++ definitions/grib2/marsLevtypeConcept.def | 2 ++ definitions/grib2/section.4.def | 2 +- .../grib2/tables/local/ecmf/1/4.2.254.254.table | 3 +++ 9 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 definitions/grib2/local/ecmf/template.4.32768.def create mode 100644 definitions/grib2/local/ecmf/template.4.randomPatterns.def diff --git a/definitions/grib2/local/ecmf/template.4.32768.def b/definitions/grib2/local/ecmf/template.4.32768.def new file mode 100644 index 000000000..f1763705a --- /dev/null +++ b/definitions/grib2/local/ecmf/template.4.32768.def @@ -0,0 +1,11 @@ +# (C) Copyright 2005- ECMWF. + +# TEMPLATE 4.32768, Random pattern + +include "grib2/templates/template.4.parameter.def" +include "grib2/templates/template.4.generating_process.def" +include "grib2/templates/template.4.forecast_time.def" +include "grib2/templates/template.4.point_in_time.def" +include "grib2/local/ecmf/template.4.randomPatterns.def" +include "grib2/templates/template.4.horizontal.def" +include "grib2/templates/template.4.eps.def" diff --git a/definitions/grib2/local/ecmf/template.4.randomPatterns.def b/definitions/grib2/local/ecmf/template.4.randomPatterns.def new file mode 100644 index 000000000..bbe94c8bd --- /dev/null +++ b/definitions/grib2/local/ecmf/template.4.randomPatterns.def @@ -0,0 +1,8 @@ +# Random patterns - SKEB / SPPT / SPP + +unsigned[2] randomPatternNumber : dump; +unsigned[2] totalNumberOfRandomPattern : dump; +unsigned[4] scaledValueOfSpatialScale : dump; +unsigned[1] scaleFactorOfSpatialScale : dump; +unsigned[4] scaledValueOfTemporalScale : dump; +unsigned[1] scaleFactorOfTemporalScale : dump; diff --git a/definitions/grib2/localConcepts/ecmf/name.def b/definitions/grib2/localConcepts/ecmf/name.def index 6683b9399..fc5186633 100644 --- a/definitions/grib2/localConcepts/ecmf/name.def +++ b/definitions/grib2/localConcepts/ecmf/name.def @@ -14015,6 +14015,13 @@ parameterNumber = 212 ; typeOfFirstFixedSurface = 254 ; } +#Stochastic Parameter Perturbation (SPP) +'Stochastic Parameter Perturbation (SPP)' = { + localTablesVersion = 1 ; + discipline = 254 ; + parameterCategory = 254 ; + parameterNumber = 215 ; + } #Surface roughness length for heat 'Surface roughness length for heat' = { localTablesVersion = 1 ; diff --git a/definitions/grib2/localConcepts/ecmf/paramId.def b/definitions/grib2/localConcepts/ecmf/paramId.def index b4d5e1eab..f1996da47 100644 --- a/definitions/grib2/localConcepts/ecmf/paramId.def +++ b/definitions/grib2/localConcepts/ecmf/paramId.def @@ -14015,6 +14015,13 @@ parameterNumber = 212 ; typeOfFirstFixedSurface = 254 ; } +#Stochastic Parameter Perturbation (SPP) +'213000' = { + localTablesVersion = 1 ; + discipline = 254 ; + parameterCategory = 254 ; + parameterNumber = 215 ; + } #Surface roughness length for heat '260651' = { localTablesVersion = 1 ; diff --git a/definitions/grib2/localConcepts/ecmf/shortName.def b/definitions/grib2/localConcepts/ecmf/shortName.def index 92cd6d219..54f77131e 100644 --- a/definitions/grib2/localConcepts/ecmf/shortName.def +++ b/definitions/grib2/localConcepts/ecmf/shortName.def @@ -14015,6 +14015,13 @@ parameterNumber = 212 ; typeOfFirstFixedSurface = 254 ; } +#Stochastic Parameter Perturbation (SPP) +'spp' = { + localTablesVersion = 1 ; + discipline = 254 ; + parameterCategory = 254 ; + parameterNumber = 215 ; + } #Surface roughness length for heat 'srlh' = { localTablesVersion = 1 ; diff --git a/definitions/grib2/localConcepts/ecmf/units.def b/definitions/grib2/localConcepts/ecmf/units.def index b699cdebf..45ddaf42c 100644 --- a/definitions/grib2/localConcepts/ecmf/units.def +++ b/definitions/grib2/localConcepts/ecmf/units.def @@ -14015,6 +14015,13 @@ parameterNumber = 212 ; typeOfFirstFixedSurface = 254 ; } +#Stochastic Parameter Perturbation (SPP) +'dimensionless' = { + localTablesVersion = 1 ; + discipline = 254 ; + parameterCategory = 254 ; + parameterNumber = 215 ; + } #Surface roughness length for heat 'm' = { localTablesVersion = 1 ; diff --git a/definitions/grib2/marsLevtypeConcept.def b/definitions/grib2/marsLevtypeConcept.def index 5d1d69d85..bd0a0102f 100644 --- a/definitions/grib2/marsLevtypeConcept.def +++ b/definitions/grib2/marsLevtypeConcept.def @@ -78,3 +78,5 @@ 'sol' = {typeOfFirstFixedSurface=187; typeOfSecondFixedSurface=255;} 'sol' = {typeOfFirstFixedSurface=187; typeOfSecondFixedSurface=187;} 'sfc' = {typeOfFirstFixedSurface=187; typeOfSecondFixedSurface=185;} +# Do we want this also for the covariances ? Probably ! +'al' = {typeOfFirstFixedSurface=254;} diff --git a/definitions/grib2/section.4.def b/definitions/grib2/section.4.def index 3ccdde8c2..94af29ef7 100644 --- a/definitions/grib2/section.4.def +++ b/definitions/grib2/section.4.def @@ -61,7 +61,7 @@ codetable[2] productDefinitionTemplateNumber('4.0.table',masterDir,localDir) : d if (section2Used == 1) { when (new()) { set_nofail productDefinitionTemplateNumber=productDefinitionTemplateNumberInternal; - } + } } transient genVertHeightCoords = 0; diff --git a/definitions/grib2/tables/local/ecmf/1/4.2.254.254.table b/definitions/grib2/tables/local/ecmf/1/4.2.254.254.table index 170a12cab..0f7add645 100644 --- a/definitions/grib2/tables/local/ecmf/1/4.2.254.254.table +++ b/definitions/grib2/tables/local/ecmf/1/4.2.254.254.table @@ -20,3 +20,6 @@ 210 210 Covariance between 2-metre relative humidity and temperature of snow layer 2 [% K] 211 211 Covariance between 2-metre temperature and temperature of snow layer 3 [K K] 212 212 Covariance between 2-metre relative humidity and temperature of snow layer 3 [% K] +213 213 Stochastic kinetic energy backscatter (SKEB) +214 214 Stochastically Perturbed Parametrization Tendencies (SPPT) +215 215 Stochastic Parameter Perturbation (SPP)