wmo-im / GRIB2

GRIB2
MIT License
22 stars 9 forks source link

Additional Anomalies Templates #246

Open sebvi opened 2 months ago

sebvi commented 2 months ago

Initial request

The GRIB2 templates 4.105-107 and 4.112 (proposed in issue #169 ) are designed to encode parameters which are statistically processed over a time interval and depend on a reference period like for example the monthly mean temperature anomaly. We proposed 4 new templates that are the instantaneous versions of the mentioned existing templates (template 4.128 to 4.131).

The GRIB2 templates 4.86, 4.87, 4.89 and 4.90 (proposed in #53 and #201 ) which are for quantile and post-processed quantile products are extended with additional keys for the reference period to be able to use these templates for anomalies and other products which depend on a reference period (4.132 to 4.135).

Finally the existing template 4.123 (proposed in #226 ) is designed to encode "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 " . We propose an additional template that is the instantaneous version of the mentioned template (template 4.136)

To reference these templates, we need to update Code table 4.0 as well.

Amendment details

ADD to code table 4.0 Product definition template number

Code Description
128 Anomalies significance and other derived products from an analysis or forecast in relation to a reference period at a horizontal level or in a horizontal layer at a point in time
129 Anomalies significance and other derived products from an individual ensemble forecast, control and perturbed in relation to a reference period at a horizontal level or in a horizontal layer at a point in time
130 Anomalies significance and other derived products from derived forecasts based on all ensemble members in relation to a reference period at a horizontal level or in a horizontal layer at a point in time
131 Anomalies significance and other derived products as probability forecasts in relation to a reference period at a horizontal level or in a horizontal layer at a point in time
132 Quantile forecasts of anomalies, significance and other derived products in relation to a reference period at a horizontal level or in a horizontal layer at a point in time
133 Post-processed quantile forecasts of anomalies, significance and other derived products in relation to a reference period at a horizontal level or in a horizontal layer at a point in time
134 Quantile forecasts of anomalies, significance and other derived products in relation to a reference period at a horizontal level or in a horizontal layer in a continuous or non-continuous time interval
135 Post-processed quantile forecasts of anomalies, significance and other derived products in relation to a reference period at a horizontal level or in a horizontal layer in a continuous or non-continuous time interval
136 Probability forecasts of anomalies, significance and other derived products in relation to a reference period with spatiotemporal processing based on focal (moving window) statistics in relation to a reference period at a horizontal level or in at a point in time

TEMPLATE 4.128, Anomalies significance and other derived products from an analysis or forecast in relation to a reference period at a horizontal level or in a horizontal layer at a point in time

Octet Number of octets Description
10 1 Parameter Category (see code table 4.1)
11 1 Parameter Number (see code table 4.2)
12 1 Type of Generating Process (see code table 4.3)
13 1 Background Process
14 1 Generating Process Identifier
15 to 16 2 Hours After Data Cut-off
17 1 Minutes After Data Cut-off
18 1 Indicator of Unit of Time Range (see code table 4.4)
19 to 22 4 Forecast Time
23 1 Type of First Fixed Surface (see code table 4.5)
24 1 Scale Factor of First Fixed Surface
25 to 28 4 Scaled Value of First Fixed Surface
29 1 Type of Second Fixed Surface (see code table 4.5)
30 1 Scale Factor of Second Fixed Surface
31 to 34 4 Scaled Value of Second Fixed Surface
35 1 Type of Reference Dataset (see code table 4.100)
36 1 Type of Relation to Reference Dataset (see code table 4.101)
37 1 Number of Additional Parameter for Reference Period – NA (see note 1)
    The next two entries are repeated NA times na=0:NA – can be 0 times if no parameters are necessary
38 + (na-1)*5 1 Scale Factor of Additional Parameter for Reference Period
39 + (na-1)5  to  42 + (na-1)5 4 Scaled Value of Additional Parameter for Reference Period
    end of repeated NA sequence
38 + NA5  to 39 + NA5 2 Year of Start of Reference Period
40 + NA*5 1 Month of Start of Reference Period
41 + NA*5 1 Day of Start of Reference Period
42 + NA*5 1 Hour of Start of Reference Period
43 + NA*5 1 Minute of Start of Reference Period
44 + NA*5 1 Second of Start of Reference Period
45 + NA5  to 48 + NA5 4 Sample Size of Reference Period
49 + NA*5 1 Number of Reference Period Time Range – NR (see note 2)
    The next three entries are repeated NR times nr=1:NR
50 + NA5 + (nr-1)6 1 Type of Statistical Processing for Time Range for Reference Period (see code table 4.102)
51 + NA5 + (nr-1)6 1 Indicator of Unit of Time Range for Reference Period (see code table 4.4)
52 + NA5 + (nr-1)6  to  55 + NA5 + (nr-1)6 4 Length of Time Range for Reference Period
    end of repeated NR sequence
TEMPLATE 4.129, Anomalies significance and other derived products from an individual ensemble forecast, control and perturbed in relation to a reference period at a horizontal level or in a horizontal layer at a point in time Octet Number of octets Description
10 1 Parameter Category (see code table 4.1)
11 1 Parameter Number (see code table 4.2)
12 1 Type of Generating Process (see code table 4.3)
13 1 Background Process
14 1 Generating Process Identifier
15 to 16 2 Hours After Data Cut-off
17 1 Minutes After Data Cut-off
18 1 Indicator of Unit of Time Range (see code table 4.4)
19 to 22 4 Forecast Time
23 1 Type of First Fixed Surface (see code table 4.5)
24 1 Scale Factor of First Fixed Surface
25 to 28 4 Scaled Value of First Fixed Surface
29 1 Type of Second Fixed Surface (see code table 4.5)
30 1 Scale Factor of Second Fixed Surface
31 to 34 4 Scaled Value of Second Fixed Surface
35 1 Type of Ensemble Forecast (see code table 4.6)
36 1 Perturbation Number
37 1 Number of Forecasts in Ensemble
38 1 Type of Reference Dataset (see code table 4.100)
39 1 Type of Relation to Reference Dataset (see code table 4.101)
40 1 Number of Additional Parameter for Reference Period – NA (see note 1)
    The next two entries are repeated NA times na=1:NA– can be 0 times if no parameters are necessary
41 + (na-1)*5 1 Scale Factor of Additional Parameter for Reference Period
42 + (na-1)5  to 45 + (na-1)5 4 Scaled Value of Additional Parameter for Reference Period
    end of repeated NA sequence
41 + NA5  to 42 + NA5 2 Year of Start of Reference Period
43 + NA*5 1 Month of Start of Reference Period
44 + NA*5 1 Day of Start of Reference Period
45 + NA*5 1 Hour of Start of Reference Period
46 + NA*5 1 Minute of Start of Reference Period
47 + NA*5 1 Second of Start of Reference Period
48 + NA5  to  51 + NA5 4 Sample Size of Reference Period
52 + NA*5 1 Number of Reference Period Time Range – NR (see note 2)
    The next three entries are repeated NR times nr=1:NR
53 + NA5 + (nr-1)6 1 Type of Statistical Processing for Time Range for Reference Period (see code table 4.102)
54 + NA5 + (nr-1)6 1 Indicator of Unit of Time Range for Reference Period (see code table 4.4)
55 + NA5 + (nr-1)6  to 58 + NA5 + (nr-1)6 4 Length of Time Range for Reference Period
    end of repeated NR sequence
TEMPLATE 4.130, Anomalies significance and other derived products from derived forecasts based on all ensemble members in relation to a reference period at a horizontal level or in a horizontal layer at a point in time Octet Number of octets Description
10 1 Parameter Category (see code table 4.1)
11 1 Parameter Number (see code table 4.2)
12 1 Type of Generating Process (see code table 4.3)
13 1 Background Process
14 1 Generating Process Identifier
15 to 16 2 Hours After Data Cut-off
17 1 Minutes After Data Cut-off
18 1 Indicator of Unit of Time Range (see code table 4.4)
19 to 22 4 Forecast Time
23 1 Type of First Fixed Surface (see code table 4.5)
24 1 Scale Factor of First Fixed Surface
25 to 28 4 Scaled Value of First Fixed Surface
29 1 Type of Second Fixed Surface (see code table 4.5)
30 1 Scale Factor of Second Fixed Surface
31 to 34 4 Scaled Value of Second Fixed Surface
35 1 Derived Forecast (see code table 4.7)
36 1 Number of Forecasts in Ensemble
37 1 Type of Reference Dataset (see code table 4.100)
38 1 Type of Relation to Reference Dataset (see code table 4.101)
39 1 Number of Additional Parameter for Reference Period – NA (see note 1)
    The next two entries are repeated NA times na=1:NA – can be 0 times if no parameters are necessary
40 + (na-1)*5 1 Scale Factor of Additional Parameter for Reference Period
41 + (na-1)5  to  44 + (na-1)5 4 Scaled Value of Additional Parameter for Reference Period
    end of repeated NA sequence
40 + NA5  to  41 + NA5 2 Year of Start of Reference Period
42 + NA*5 1 Month of Start of Reference Period
43 + NA*5 1 Day of Start of Reference Period
44 + NA*5 1 Hour of Start of Reference Period
45 + NA*5 1 Minute of Start of Reference Period
46 + NA*5 1 Second of Start of Reference Period
47 + NA5 to 50 + NA5 4 Sample Size of Reference Period
51 + NA*5 1 Number of Reference Period Time Range – NR (see note 2)
    The next three entries are repeated NR times nr=1:NR
52 + NA5+ (nr-1)6 1 Type of Statistical Processing for Time Range for Reference Period (see code table 4.102)
53 + NA5 + (nr-1)6 1 Indicator of Unit of Time Range for Reference Period (see code table 4.4)
54 + NA5 + (nr-1)6  to 57 + NA5 + (nr-1)6 4 Length of Time Range for Reference Period
    end of repeated NR sequence
TEMPLATE 4.131, Anomalies significance and other derived products as probability forecasts in relation to a reference period at a horizontal level or in a horizontal layer at a point in time Octet Number of octets Description
10 1 Parameter Category (see code table 4.1)
11 1 Parameter Number (see code table 4.2)
12 1 Type of Generating Process (see code table 4.3)
13 1 Background Process
14 1 Generating Process Identifier
15 to 16 2 Hours After Data Cut-off
17 1 Minutes After Data Cut-off
18 1 Indicator of Unit of Time Range (see code table 4.4)
19 to 22 4 Forecast Time
23 1 Type of First Fixed Surface (see code table 4.5)
24 1 Scale Factor of First Fixed Surface
25 to 28 4 Scaled Value of First Fixed Surface
29 1 Type of Second Fixed Surface (see code table 4.5)
30 1 Scale Factor of Second Fixed Surface
31 to 34 4 Scaled Value of Second Fixed Surface
35 1 Forecast probability number
36 1 Total Number of Forecast Probabilities
37 1 Probability type (see code table 4.9.table)
38 1 Scale factor of lower limit
39 to 42 4 Scaled value of lower limit
43 1 Scale factor of upper limit
44 to 47 4 Scaled value of upper limit
48 1 Type of Reference Dataset (see code table 4.100)
49 1 Type of Relation to Reference Dataset (see code table 4.101)
50 1 Number of Additional Parameter for Reference Period – NA (see note 1)
    The next two entries are repeated NA times na=1:NA – can be 0 times if no parameters are necessary
51 + (na-1)*5 1 Scale Factor of Additional Parameter for Reference Period
52 + (na-1)5  to 55 + (na-1)5 4 Scaled Value of Additional Parameter for Reference Period
    end of repeated NA sequence
51 + NA5 to 52 + NA5 2 Year of Start of Reference Period
53 + NA*5 1 Month of Start of Reference Period
54 + NA*5 1 Day of Start of Reference Period
55 + NA*5 1 Hour of Start of Reference Period
56 + NA*5 1 Minute of Start of Reference Period
57 + NA*5 1 Second of Start of Reference Period
58 + NA5 to 61 + NA5 4 Sample Size of Reference Period
62 + NA*5 1 Number of Reference Period Time Range – NR (see note 2)
    The next three entries are repeated NR times
63 + NA5 + (nr-1)6 1 Type of Statistical Processing of Reference Dataset (see code table 4.102)
64 + NA5 + (nr-1)6 1 Reference Period Indicator of Unit for Time Increment (see code table 4.4)
65 + NA5 + (nr-1)6  to  68 + NA5 + (nr-1)6 4 Length of Reference Period
    end of repeated NR sequence
TEMPLATE 4.132, Quantile forecasts of anomalies, significance and other derived products in relation to a reference period at a horizontal level or in a horizontal layer at a point in time Octet Number of octets Description
10 1 Parameter Category (see code table 4.1)
11 1 Parameter Number (see code table 4.2)
12 1 Type of Generating Process (see code table 4.3)
13 1 Background Process
14 1 Generating Process Identifier
15 to 16 2 Hours After Data Cut-off
17 1 Minutes After Data Cut-off
18 1 Indicator of Unit of Time Range (see code table 4.4)
19 to 22 4 Forecast Time
23 1 Type of First Fixed Surface (see code table 4.5)
24 1 Scale Factor of First Fixed Surface
25 to 28 4 Scaled Value of First Fixed Surface
29 1 Type of Second Fixed Surface (see code table 4.5)
30 1 Scale Factor of Second Fixed Surface
31 to 34 4 Scaled Value of Second Fixed Surface
35 to 36 2 Total number of quantile q
37 to 38 2 Quantile value (between 0 and q)
39 1 Type of Reference Dataset (see code table 4.100)
40 1 Type of Relation to Reference Dataset (see code table 4.101)
41 1 Number of Additional Parameter for Reference Period – NA (see note 1)
    The next two entries are repeated NA times na=1:NA– can be 0 times if no parameters are necessary
42 + (na-1)*5 1 Scale Factor of Additional Parameter for Reference Period
43 + (na-1)5  to 46 + (na-1)5 4 Scaled Value of Additional Parameter for Reference Period
    end of repeated NA sequence
42 + NA5  to 43 + NA5 2 Year of Start of Reference Period
44 + NA*5 1 Month of Start of Reference Period
45 + NA*5 1 Day of Start of Reference Period
46 + NA*5 1 Hour of Start of Reference Period
47 + NA*5 1 Minute of Start of Reference Period
48 + NA*5 1 Second of Start of Reference Period
49 + NA5  to 52 + NA5 4 Sample Size of Reference Period
53 + NA*5 1 Number of Reference Period Time Range – NR (see note 2)
    The next three entries are repeated NR times nr=1:NR
54 + NA5 + (nr-1)6 1 Type of Statistical Processing for Time Range for Reference Period (see code table 4.102)
55 + NA5 + (nr-1)6 1 Indicator of Unit of Time Range for Reference Period (see code table 4.4)
56 + NA5 + (nr-1)6  to 59 + NA5 + (nr-1)6 4 Length of Time Range for Reference Period
    end of repeated NR sequence
TEMPLATE 4.133, Post-processed quantile forecasts of anomalies, significance and other derived products in relation to a reference period at a horizontal level or in a horizontal layer at a point in time Octet Number of octets Description
10 1 Parameter Category (see code table 4.1)
11 1 Parameter Number (see code table 4.2)
12 to 13 2 Input process identifier
14 to 15 2 Input originating centre
16 1 Type of post-processing
17 1 Type of Generating Process (see code table 4.3)
18 1 Background Process
19 1 Generating Process Identifier
20 to 21 2 Hours After Data Cut-off
22 1 Minutes After Data Cut-off
23 1 Indicator of Unit of Time Range (see code table 4.4)
24 to 27 4 Forecast Time
28 1 Type of First Fixed Surface (see code table 4.5)
29 1 Scale Factor of First Fixed Surface
30 to 33 4 Scaled Value of First Fixed Surface
34 1 Type of Second Fixed Surface (see code table 4.5)
35 1 Scale Factor of Second Fixed Surface
36 to 39 4 Scaled Value of Second Fixed Surface
40 to 41 2 Total number of quantile q
42 to 43 2 Quantile value (between 0 and q)
44 1 Type of Reference Dataset (see code table 4.100)
45 1 Type of Relation to Reference Dataset (see code table 4.101)
46 1 Number of Additional Parameter for Reference Period – NA (see note 1)
    The next two entries are repeated NA times na=1:NA– can be 0 times if no parameters are necessary
47 + (na-1)*5 1 Scale Factor of Additional Parameter for Reference Period
48 + (na-1)5  to 51 + (na-1)5 4 Scaled Value of Additional Parameter for Reference Period
    end of repeated NA sequence
47 + NA5  to 48 + NA5 2 Year of Start of Reference Period
49 + NA*5 1 Month of Start of Reference Period
45 + NA*5 1 Day of Start of Reference Period
51 + NA*5 1 Hour of Start of Reference Period
52 + NA*5 1 Minute of Start of Reference Period
53 + NA*5 1 Second of Start of Reference Period
54 + NA5  to  57 + NA5 4 Sample Size of Reference Period
58 + NA*5 1 Number of Reference Period Time Range – NR (see note 2)
    The next three entries are repeated NR times nr=1:NR
59 + NA5 + (nr-1)6 1 Type of Statistical Processing for Time Range for Reference Period (see code table 4.102)
60 + NA5 + (nr-1)6 1 Indicator of Unit of Time Range for Reference Period (see code table 4.4)
61 + NA5 + (nr-1)6  to 64 + NA5 + (nr-1)6 4 Length of Time Range for Reference Period
    end of repeated NR sequence
TEMPLATE 4.134, Quantile forecasts of anomalies, significance and other derived products in relation to a reference period at a horizontal level or in a horizontal layer in a continuous or non-continuous time interval Octet Number of octets Description
10 1 Parameter Category (see code table 4.1)
11 1 Parameter Number (see code table 4.2)
12 1 Type of Generating Process (see code table 4.3)
13 1 Background Process
14 1 Generating Process Identifier
15 to 16 2 Hours After Data Cut-off
17 1 Minutes After Data Cut-off
18 1 Indicator of Unit of Time Range (see code table 4.4)
19 to 22 4 Forecast Time
23 1 Type of First Fixed Surface (see code table 4.5)
24 1 Scale Factor of First Fixed Surface
25 to 28 4 Scaled Value of First Fixed Surface
29 1 Type of Second Fixed Surface (see code table 4.5)
30 1 Scale Factor of Second Fixed Surface
31 to 34 4 Scaled Value of Second Fixed Surface
35 to 36 2 Total number of quantile q
37 to 38 2 Quantile value (between 0 and q)
39 to 40 2 Year of End of Overall Time Interval
41 1 Month of End of Overall Time Interval
42 1 Day of End of Overall Time Interval
43 1 Hour of End of Overall Time Interval
44 1 Minute of End of Overall Time Interval
45 1 Second of End of Overall Time Interval
46 1 Number of Time Range
47 to 50 4 Number of Missing in Statistical Process
    The next six entries are repeated NT times nt=1:NT
51 + (nt-1)*12 1 Type of Statistical Processing
52 + (nt-1)*12 1 Type of Time Increment
53 + (nt-1)*12 1 Indicator of Unit for Time Range
54 + (nt-1)12 to 57 + (nt-1)12 4 Length of Time Range
58 + (nt-1)*12 1 Indicator of Unit for Time Increment (see code table 4.4)
59 + (nt-1)12 to 62 + (nt-1)12 4 Time Increment
    End of sequence repeated NT times
63 + (NT-1)*12 1 Type of Reference Dataset (see code table 4.100)
64 + (NT-1)*12 1 Type of Relation to Reference Dataset (see code table 4.101)
65 + (NT-1)*12 1 Number of Additional Parameter for Reference Period – NA (see note 1)
    The next two entries are repeated NA times na=0:NA – can be 0 times if no parameters are necessary
66 + (NT-1)12 + (na-1)5 1 Scale Factor of Additional Parameter for Reference Period
67 + (NT-1)12 + (na-1)5 to 70 + (NT-1)12 + (na-1)5 4 Scaled Value of Additional Parameter for Reference Period
    end of repeated NA sequence
66 + (NT-1)12 + NA5 to 67 + (NT-1)12 + NA5 2 Year of Start of Reference Period
68 + (NT-1)12 + NA5 1 Month of Start of Reference Period
69 + (NT-1)12 + NA5 1 Day of Start of Reference Period
70 + (NT-1)12 + NA5 1 Hour of Start of Reference Period
71 + (NT-1)12 + NA5 1 Minute of Start of Reference Period
72 + (NT-1)12 + NA5 1 Second of Start of Reference Period
73 + (NT-1)12 + NA5 to 76+ (NT-1)12 + NA5 4 Sample Size of Reference Period
77 + (NT-1)12 + NA5 1 Number of Reference Period Time Range – NR (see note 2)
    The next three entries are repeated NR times nr=1:NR
78 + (NT-1)12 + NA5 + (nr-1)*6 1 Type of Statistical Processing for Time Range for Reference Period (see code table 4.102)
79 + (NT-1)12 + NA5 + (nr-1)*6 1 Indicator of Unit of Time Range for Reference Period (see code table 4.4)
80 + (NT-1)12 + NA5 + (nr-1)6 to 83 + (NT-1)12 + NA5 + (nr-1)6 4 Length of Time Range for Reference Period
    end of repeated NR sequence
TEMPLATE 4.135, Post-processed quantile forecasts of anomalies, significance and other derived products in relation to a reference period at a horizontal level or in a horizontal layer in a continuous or non-continuous time interval Octet Number of octets Description
10 1 Parameter Category (see code table 4.1)
11 1 Parameter Number (see code table 4.2)
12 to 13 2 Input process identifier
14 to 15 2 Input originating centre
16 1 Type of post-processing
17 1 Type of Generating Process (see code table 4.3)
18 1 Background Process
19 1 Generating Process Identifier
20 to 21 2 Hours After Data Cut-off
22 1 Minutes After Data Cut-off
23 1 Indicator of Unit of Time Range (see code table 4.4)
24 to 27 4 Forecast Time
28 1 Type of First Fixed Surface (see code table 4.5)
29 1 Scale Factor of First Fixed Surface
30 to 33 4 Scaled Value of First Fixed Surface
34 1 Type of Second Fixed Surface (see code table 4.5)
35 1 Scale Factor of Second Fixed Surface
36 to 39 4 Scaled Value of Second Fixed Surface
40 to 41 2 Total number of quantile q
42 to 43 2 Quantile value (between 0 and q)
44 to 45 2 Year of End of Overall Time Interval
46 1 Month of End of Overall Time Interval
47 1 Day of End of Overall Time Interval
48 1 Hour of End of Overall Time Interval
49 1 Minute of End of Overall Time Interval
50 1 Second of End of Overall Time Interval
51 1 Number of Time Range
52 to 55 4 Number of Missing in Statistical Process
    The next six entries are repeated NT times nt=1:NT
56 + (nt-1)*12 1 Type of Statistical Processing
57 + (nt-1)*12 1 Type of Time Increment
58 + (nt-1)*12 1 Indicator of Unit for Time Range
59 + (nt-1)12 to 62 + (nt-1)12 4 Length of Time Range
63 + (nt-1)*12 1 Indicator of Unit for Time Increment (see code table 4.4)
64 + (nt-1)12 to 67 + (nt-1)12 4 Time Increment
    End of sequence repeated NT times
68 + (NT-1)*12 1 Type of Reference Dataset (see code table 4.100)
69 + (NT-1)*12 1 Type of Relation to Reference Dataset (see code table 4.101)
70 + (NT-1)*12 1 Number of Additional Parameter for Reference Period – NA (see note 1)
    The next two entries are repeated NA times na=0:NA – can be 0 times if no parameters are necessary
71 + (NT-1)12 + (na-1)5 1 Scale Factor of Additional Parameter for Reference Period
72 + (NT-1)12 + (na-1)5 to 75 + (NT-1)12 + (na-1)5 4 Scaled Value of Additional Parameter for Reference Period
    end of repeated NA sequence
71 + (NT-1)12 + NA5 to 72 + (NT-1)12 + NA5 2 Year of Start of Reference Period
73 + (NT-1)12 + NA5 1 Month of Start of Reference Period
74 + (NT-1)12 + NA5 1 Day of Start of Reference Period
75 + (NT-1)12 + NA5 1 Hour of Start of Reference Period
76 + (NT-1)12 + NA5 1 Minute of Start of Reference Period
77 + (NT-1)12 + NA5 1 Second of Start of Reference Period
78 + (NT-1)12 + NA5 to 81+ (NT-1)12 + NA5 4 Sample Size of Reference Period
82 + (NT-1)12 + NA5 1 Number of Reference Period Time Range – NR (see note 2)
    The next three entries are repeated NR times nr=1:NR
83 + (NT-1)12 + NA5 + (nr-1)*6 1 Type of Statistical Processing for Time Range for Reference Period (see code table 4.102)
84 + (NT-1)12 + NA5 + (nr-1)*6 1 Indicator of Unit of Time Range for Reference Period (see code table 4.4)
85 + (NT-1)12 + NA5 + (nr-1)6 to 88 + (NT-1)12 + NA5 + (nr-1)6 4 Length of Time Range for Reference Period
    end of repeated NR sequence
TEMPLATE 4.136, Probability forecasts of anomalies, significance and other derived products in relation to a reference period with spatiotemporal processing based on focal (moving window) statistics in relation to a reference period at a horizontal level or in at a point in time Octet Number of octets Description
10 1 Parameter Category (see code table 4.1)
11 1 Parameter Number (see code table 4.2)
12 1 Type of Generating Process (see code table 4.3)
13 1 Background Process
14 1 Generating Process Identifier
15 to 16 2 Hours After Data Cut-off
17 1 Minutes After Data Cut-off
18 1 Indicator of Unit of Time Range (see code table 4.4)
19 to 22 4 Forecast Time
23 1 Type of First Fixed Surface (see code table 4.5)
24 1 Scale Factor of First Fixed Surface
25 to 28 4 Scaled Value of First Fixed Surface
29 1 Type of Second Fixed Surface (see code table 4.5)
30 1 Scale Factor of Second Fixed Surface
31 to 34 4 Scaled Value of Second Fixed Surface
35 1 Type of ensemble forecast (see code table 4.6)
36 to 39 4 Number of forecasts in ensemble
40 1 Forecast probability number
41 1 Total Number of Forecast Probabilities
42 1 Probability type (see code table 4.9.table)
43 1 Scale factor of lower limit
44 to 47 4 Scaled value of lower limit
48 1 Scale factor of upper limit
49 to 52 4 Scaled value of upper limit
53 1 Type of Reference Dataset (see code table 4.100)
54 1 Type of Relation to Reference Dataset (see code table 4.101)
55 1 Number of Additional Parameter for Reference Period – NA (see note 1)
    The next two entries are repeated NA times na=1:NA – can be 0 times if no parameters are necessary
56 + (na-1)*5 1 Scale Factor of Additional Parameter for Reference Period
57 + (na-1)5  to 60 + (na-1)5 4 Scaled Value of Additional Parameter for Reference Period
    end of repeated NA sequence
56 + NA5 to 57 + NA5 2 Year of Start of Reference Period
58 + NA*5 1 Month of Start of Reference Period
59 + NA*5 1 Day of Start of Reference Period
60 + NA*5 1 Hour of Start of Reference Period
61 + NA*5 1 Minute of Start of Reference Period
62 + NA*5 1 Second of Start of Reference Period
63 + NA5 to 66 + NA5 4 Sample Size of Reference Period
67 + NA*5 1 Number of Reference Period Time Range – NR (see note 2)
    The next three entries are repeated NR times
68 + NA5 + (nr-1)6 1 Type of Statistical Processing of Reference Dataset (see code table 4.102)
69 + NA5 + (nr-1)6 1 Reference Period Indicator of Unit for Time Increment (see code table 4.4)
70 + NA5 + (nr-1)6  to  73 + NA5 + (nr-1)6 4 Length of Reference Period
    end of repeated NR sequence
74 + NA5 + (nr-1)6 1 Spatial Vicinity Type (see code table 4.103)
75 + NA5 + (nr-1)6 1 Number of Spatial Vicinity Values – NSV
    The next entry repeats nsv=1:NSV times
76 + NA5 + (nr-1)6 + (nsv-1)4) to 79 + NA5 + (nr-1)6 + (nsv-1)4) 4 Spatial Vicinity Value
80 + NA5 + (nr-1)6 + (nsv-1)*4) 1 Spatial Vicinity Processing (see code table 4.104)
81 + NA5 + (nr-1)6 + (nsv-1)4) to 82 + NA5 + (nr-1)6 + (nsv-1)4) 2 Spatial Vicinity Processing Argument 1 (e.g., if previous is quantile)
83 + NA5 + (nr-1)6 + (nsv-1)4) to 84 + NA5 + (nr-1)6 + (nsv-1)4) 2 Spatial Vicinity Processing Argument 2 (e.g., if previous is quantile)
85 + NA5 + (nr-1)6 + (nsv-1)*4) 1 Spatial Vicinity Missing Data (see code table 4.105)
86 + NA5 + (nr-1)6 + (nsv-1)*4) 1 Temporal Vicinity Processing (see code table 4.104)
87 + NA5 + (nr-1)6 + (nsv-1)*4) 1 Temporal Vicinity Unit (see code table 4.4)
88 + NA5 + (nr-1)6 + (nsv-1)4) to 91 + NA5 + (nr-1)6 + (nsv-1)4) 4 Temporal Vicinity Towards Past
92 + NA5 + (nr-1)6 + (nsv-1)4) to 95 + NA5 + (nr-1)6 + (nsv-1)4) 4 Temporal Vicinity Towards Future

Comments

No response

Requestor(s)

Sebastien Villaume (ECMWF) Robert Osinski (ECMWF)

Stakeholder(s)

ECMWF

Publication(s)

Manual on Codes (WMO-No. 306), Volume I.2, GRIB code table 4.0 (update) Manual on Codes (WMO-No. 306), Volume I.2, GRIB Template 4.128 (create) Manual on Codes (WMO-No. 306), Volume I.2, GRIB Template 4.129 (create) Manual on Codes (WMO-No. 306), Volume I.2, GRIB Template 4.130 (create) Manual on Codes (WMO-No. 306), Volume I.2, GRIB Template 4.131 (create) Manual on Codes (WMO-No. 306), Volume I.2, GRIB Template 4.132 (create) Manual on Codes (WMO-No. 306), Volume I.2, GRIB Template 4.133 (create) Manual on Codes (WMO-No. 306), Volume I.2, GRIB Template 4.134 (create) Manual on Codes (WMO-No. 306), Volume I.2, GRIB Template 4.135 (create) Manual on Codes (WMO-No. 306), Volume I.2, GRIB Template 4.136 (create)

Expected impact of change

None

Collaborators

No response

References

No response

Validation

No response

amilan17 commented 1 month ago

https://github.com/wmo-im/CCT/wiki/Teleconference.14.May.2024 notes: Sebastien presented the proposal; Sibylle suggested adding "same as xyz template..." (@SibylleK can you clarify this statement as needed?); Anna noted that the octets are formulated with parentheses and without spaces, e.g. (63+NA5)-(66+NA5)

amilan17 commented 1 month ago

https://github.com/wmo-im/CCT/wiki/Teleconference.2024.June.4and5 notes: discussion about how to present long proposals in issues;

sebvi commented 1 week ago

found 2 mistakes, in template 4.134 and 4.135 where we had assigned 2 octets instead of 4 for the "scaled value of additional parameter". I have edited the proposal

sebvi commented 1 week ago

branch updated. please please review as it was extremely error prone

amilan17 commented 1 week ago

https://github.com/wmo-im/CCT/wiki/Teleconference.24and26.June.2024 notes: branch is ready for validation; Sebastien will add samples next week

sebvi commented 4 days ago

an ecCodes branch implementing these new templates can be found here: feature/ft2024-2_246

and the corresponding sample files: issue246.zip

amilan17 commented 4 days ago

https://github.com/wmo-im/CCT/wiki/Teleconference.2.July.2024 notes: @SibylleK will validate the sample files