GRIB2, verification score template 4.137-142 added

This commit is contained in:
Robert Osinski 2024-07-01 12:37:09 +00:00
parent f0a46c9c3c
commit d9dc920b4a
15 changed files with 147 additions and 71 deletions

View File

@ -1,11 +0,0 @@
# (C) Copyright 2005- ECMWF.
# TEMPLATE 4.121, Probability forecasts with spatiotemporal processing based on focal (moving window) statistics at a horizontal level or in a horizontal layer at a point in time
include "grib2/template.4.parameter.def"
include "grib2/template.4.generating_process.def"
include "grib2/template.4.forecast_time.def"
include "grib2/template.4.point_in_time.def"
include "grib2/template.4.horizontal.def"
include "grib2/template.4.probabilityLargeEnsemble.def"
include "grib2/template.4.focalStatistics.def"

View File

@ -1,11 +0,0 @@
# (C) Copyright 2005- ECMWF.
# TEMPLATE 4.122, Probability forecasts with spatiotemporal processing based on focal (moving window) statistics 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.probabilityLargeEnsemble.def"
include "grib2/template.4.statistical.def"
include "grib2/template.4.focalStatistics.def"

View File

@ -1,12 +0,0 @@
# (C) Copyright 2005- ECMWF.
# TEMPLATE 4.123, Probability forecasts from large ensembles with spatiotemporal processing based on focal (moving window) statistics 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.probabilityLargeEnsemble.def"
include "grib2/template.4.referenceperiod.def"
include "grib2/template.4.focalStatistics.def"

View File

@ -1,12 +0,0 @@
# (C) Copyright 2005- ECMWF.
# TEMPLATE 4.124, Analysis or forecast at a horizontal level or in a horizontal layer at a point in time for radionuclides
include "grib2/template.4.parameter.def"
include "grib2/template.4.chemical.def"
include "grib2/template.4.source.def"
include "grib2/template.4.radionuclides.def"
include "grib2/template.4.generating_process.def"
include "grib2/template.4.forecast_time.def"
include "grib2/template.4.point_in_time.def"
include "grib2/template.4.horizontal.def"

View File

@ -1,13 +0,0 @@
# (C) Copyright 2005- ECMWF.
# TEMPLATE 4.125, Individual ensemble forecast, control and perturbed, at a horizontal level or in a horizontal layer at a point in time for radionuclides
include "grib2/template.4.parameter.def"
include "grib2/template.4.chemical.def"
include "grib2/template.4.source.def"
include "grib2/template.4.radionuclides.def"
include "grib2/template.4.generating_process.def"
include "grib2/template.4.forecast_time.def"
include "grib2/template.4.point_in_time.def"
include "grib2/template.4.horizontal.def"
include "grib2/template.4.eps.def"

View File

@ -1,12 +0,0 @@
# (C) Copyright 2005- ECMWF.
# TEMPLATE 4.126, Average, accumulation, and/or extreme values or other statistically processed values at a horizontal level or in a horizontal layer in a continuous or non-continuous time interval for radionuclides
include "grib2/template.4.parameter.def"
include "grib2/template.4.chemical.def"
include "grib2/template.4.source.def"
include "grib2/template.4.radionuclides.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"

View File

@ -0,0 +1,10 @@
# (C) Copyright 2005- ECMWF.
# TEMPLATE 4.121, Verification scores for analyis or forecast at a horizontal level or in a horizontal layer at a point in time
include "grib2/template.4.parameterv.def"
include "grib2/template.4.generating_process.def"
include "grib2/template.4.forecast_time.def"
include "grib2/template.4.point_in_time.def"
include "grib2/template.4.horizontal.def"
include "grib2/template.4.verification_scores.def"

View File

@ -0,0 +1,10 @@
# (C) Copyright 2005- ECMWF.
# TEMPLATE 4.122, Verification scores for average, accumulation, and/or extreme values or other statistically processed values at a horizontal level or in a horizontal layer in a continuous or non-continuous time interval
include "grib2/template.4.parameterv.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.verification_scores.def"

View File

@ -0,0 +1,11 @@
# (C) Copyright 2005- ECMWF.
# TEMPLATE 4.123, Verification scores for individual ensemble forecast, control and perturbed, at a horizontal level or in a horizontal layer at a point in time
include "grib2/template.4.parameterv.def"
include "grib2/template.4.generating_process.def"
include "grib2/template.4.forecast_time.def"
include "grib2/template.4.point_in_time.def"
include "grib2/template.4.horizontal.def"
include "grib2/template.4.leps.def"
include "grib2/template.4.verification_scores.def"

View File

@ -0,0 +1,11 @@
# (C) Copyright 2005- ECMWF.
# TEMPLATE 4.124, Verification scores for individual ensemble forecast, control and perturbed, at a horizontal level or in a horizontal layer in a continuous or non-continuous time interval
include "grib2/template.4.parameterv.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.leps.def"
include "grib2/template.4.statistical.def"
include "grib2/template.4.verification_scores.def"

View File

@ -0,0 +1,11 @@
# (C) Copyright 2005- ECMWF.
# TEMPLATE 4.125, Verification scores for derived forecast based on all ensemble members at a horizontal level or in a horizontal layer at a point in time
include "grib2/template.4.parameterv.def"
include "grib2/template.4.generating_process.def"
include "grib2/template.4.forecast_time.def"
include "grib2/template.4.point_in_time.def"
include "grib2/template.4.horizontal.def"
include "grib2/template.4.lderived.def"
include "grib2/template.4.verification_scores.def"

View File

@ -0,0 +1,11 @@
# (C) Copyright 2005- ECMWF.
# TEMPLATE 4.126, Verification scores for derived forecasts based on all ensemble members at a horizontal level or in a horizontal layer in a continuous or non-continuous time interval
include "grib2/template.4.parameterv.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.lderived.def"
include "grib2/template.4.statistical.def"
include "grib2/template.4.verification_scores.def"

View File

@ -0,0 +1,8 @@
# (C) Copyright 2005- ECMWF.
# Derived forecast
codetable[1] derivedForecast ('4.7.table',masterDir,localDir) : dump;
# Number of forecasts in ensemble
unsigned[4] numberOfForecastsInEnsemble : dump;
alias totalNumber=numberOfForecastsInEnsemble;

View File

@ -0,0 +1,11 @@
# (C) Copyright 2005- ECMWF.
# Parameter category
codetable[1] parameterCategory ('4.1.[discipline:l].table',masterDir,localDir) : dump;
# Parameter number
codetable[1] parameterNumber ('4.2.[discipline:l].[parameterCategory:l].table',masterDir,localDir) : dump;
meta parameterUnits codetable_units(parameterNumber) : dump;
meta parameterName codetable_title(parameterNumber) : dump;
codetable[1] AdditionalSpecificationOfVerifiedParameter ('4.119.table',masterDir,localDir) : dump;

View File

@ -0,0 +1,64 @@
### Specifies the verification score
codetable[2] verificationScore ('4.120.table',masterDir,localDir)=65535 ;
codetable[1] typeOfReferenceDataSetForVerification ('4.121.table',masterDir,localDir)=0 ;
# 0 Analysis interpolated on forecast grid
# 1 Analysis with forecast interpolated on analysis grid
# 2 Analysis interpolated on a common grid with the forecast but different to original grid
# 3 Gridded observation on forecast grid
# 4 Gridded observation with forecast interpolated on observation grid
### Vertical Processing, verification against mean or accumulation over a vertical level ?
codetable[1] typeOfStatisticalProcessingOverVerticalForVerification ('4.10.table',masterDir,localDir)=255 : edition_specific;
# type of operator used for threshold
codetable[1] typeOfThresholdOperatorForVerificationScore ('4.91.table',masterDir,localDir)=255 ;
# kind of additional arguments for verification score (1 Fixed threshold value, 2 Threshold specified by a quantile of the climatology, 3 Threshold specified as standard deviation of the climatology)
codetable[1] kindOfAdditionalArgumentsForVerificationScore ('4.122.table',masterDir,localDir)=255 ;
unsigned[1] numberOfAdditionalArgumentsForVerification=0;
## list with the limits for previous octet
# 1 - n=1 with scaleFactor/scaledValue of fixed value if typeOfLimitForVerificationScore includes only one value otherwise 2 for lower / upper limit
# 2 - n=2 1st tuple totalNumberOfQuantiles / 2nd tuple quantileValue if typeOfLimitForVerificationScore includes only one value otherwise 4 for lower quantile / upper quantile
# 3 - n=1 with scaleFactor/scaledValue specifying the factor of std of climatology if typeOfLimitForVerificationScore includes only one value otherwise 2 for lower / upper limit
verificationLimitList list(numberOfAdditionalArgumentsForVerification)
{
signed[1] scaleFactorOfAdditionalArgumentForVerification;
signed[4] scaledValueOfAdditionalArgumentForVerification;
}
## Start of verification period
unsigned[2] yearOfStartOfVerificationPeriod = missing() : edition_specific,can_be_missing;
unsigned[1] monthOfStartOfVerificationPeriod = missing() : edition_specific,can_be_missing;
unsigned[1] dayOfStartOfVerificationPeriod = missing() : edition_specific,can_be_missing;
unsigned[1] hourOfStartOfVerificationPeriod = missing() : edition_specific,can_be_missing;
unsigned[1] minuteOfStartOfVerificationPeriod = missing() : edition_specific,can_be_missing;
unsigned[1] secondOfStartOfVerificationPeriod = missing() : edition_specific,can_be_missing;
meta startDateOfVerificationPeriod g2date(yearOfStartOfVerificationPeriod,monthOfStartOfVerificationPeriod,dayOfStartOfVerificationPeriod);
# n - number of time range specifications describing the time intervals used to calculate the statistically-processed field
##### SET n to zero for instantaneous score fields #####
unsigned[1] numberOfVerificationPeriodTimeRanges = 1 : edition_specific;
### This says if you have yearly, monthly, weekly data
### Specify in inner loops statistical processing of data like daily means or accumulations
verificationPeriodList list(numberOfVerificationPeriodTimeRanges)
{
# Type of statistical processing of verification period
codetable[1] typeOfStatisticalProcessingForTimeRangeForVerificationPeriod ('4.102.table',masterDir,localDir) = 255 : dump,edition_specific;
# Indicator of unit of time for the increment between the successive fields used
codetable[1] indicatorOfUnitForTimeRangeForVerificationPeriod ('4.4.table',masterDir,localDir)=255 ;
# Length of verification period, in units defined by the previous octet [verificationPeriodIndicatorOfUnitForTimeIncrement]
unsigned[4] lengthOfTimeRangeForVerificationPeriod=0 ;
# Indicator of unit of time for the increment between the successive fields used
codetable[1] indicatorOfUnitForTimeIncrementForVerificationPeriod ('4.4.table',masterDir,localDir)=255 ;
# Time increment between successive fields, in units defined by the previous octet
unsigned[4] timeIncrementForVerificationPeriod=0 ;
alias timeIncrementBetweenSuccessiveFields=timeIncrement;
}
unsigned[2] numberOfForecastsInVerification=1;