diff --git a/GRIB2_CodeFlag_4_9_CodeTable_en.csv b/GRIB2_CodeFlag_4_9_CodeTable_en.csv index 3bf7e53..6ca1597 100644 --- a/GRIB2_CodeFlag_4_9_CodeTable_en.csv +++ b/GRIB2_CodeFlag_4_9_CodeTable_en.csv @@ -9,6 +9,7 @@ Probability type,,6,,Probability of event in above normal category,(see Notes 1 Probability type,,7,,Probability of event in near normal category,(see Notes 1 and 2),"7,9",,Operational Probability type,,8,,Probability of event in below normal category,(see Notes 1 and 2),"7,9",,Operational Probability type,,9,,Probability based on counts of categorical boolean,(see Note 3),155,,Operational -Probability type,,10-191,,Reserved,,,,Operational +Probability type,,10,,Probability of event within the quantile of the probability distribution function,(see Note 4),247a,,Operational +Probability type,,11-191,,Reserved,,,,Operational Probability type,,192-254,,Reserved for local use,,,,Operational -Probability type,,255,,Missing,,,,Operational +Probability type,,255,,Missing,,,,Operational \ No newline at end of file diff --git a/notes/CodeFlag_notes.csv b/notes/CodeFlag_notes.csv index 349110f..28d7392 100644 --- a/notes/CodeFlag_notes.csv +++ b/notes/CodeFlag_notes.csv @@ -149,4 +149,5 @@ noteID,note 152,"The following additional arguments must be specified: • Circle - 1 argument for the radius in metres • Rectangle - 2 arguments for the length in 1. west-east and 2. south-north in metres • Square - 1 argument for the length of the equal-length sides in metres • Wedge - 3 arguments for 1. radius in metres and 2. start and 3. end radius in arithmetic degrees with 0 on the positive axis along west-east and counted counter-clockwise. • span of grid cells - 2 arguments regarding the number of grid cells in 1. west-east and 2. south-north so that the span is i+/-x and j+/-y" 153,"The option quantile needs two additional arguments: 1) The total number of quantiles and 2) the quantile value." 154,"These parameters are intended to be used with templates 4.121 and 4.122 in which the spatiotemporal criteria is encoded used to get a categorical yes/no per grid point of each ensemble member." -155,"Scale Factor of Lower Limit, Scaled Value of Lower Limit, Scale Factor of Upper Limit and Scaled Value of Upper Limit must be set to missing. This entry is intended for, but not limited to, entries 5 to 7 in Code table 4.2 discipline 0 category 191." \ No newline at end of file +155,"Scale Factor of Lower Limit, Scaled Value of Lower Limit, Scale Factor of Upper Limit and Scaled Value of Upper Limit must be set to missing. This entry is intended for, but not limited to, entries 5 to 7 in Code table 4.2 discipline 0 category 191." +247a,"When using entry 10, the lower limit is used to encode the quantile q (must be an integer between 0 and Q) while the upper limit is used to encode the total number of quantiles Q. This defines the probability of the parameter falling within quantile q. For instance, to encode the probability of falling within the 10th percentile, then q=10 and Q=100; to encode the probability of falling within the 1st tercile, then q=1 and Q=3." diff --git a/scripts/create_master_lists.py b/scripts/create_master_lists.py index 01c5455..e4afa68 100644 --- a/scripts/create_master_lists.py +++ b/scripts/create_master_lists.py @@ -35,7 +35,7 @@ def close(self): class XMLWriter: - xmlheader = ''.format( datetime.now().isoformat() ) + xmlheader = '' def __init__(self,outfile,elements,item_name): diff --git a/txt/CodeFlag.txt b/txt/CodeFlag.txt index 98c850c..810b614 100644 --- a/txt/CodeFlag.txt +++ b/txt/CodeFlag.txt @@ -2071,7 +2071,8 @@ Code table 4.9 - Probability type,,6,,Probability of event in above normal categ Code table 4.9 - Probability type,,7,,Probability of event in near normal category,(see Notes 1 and 2),"7,9",,Operational Code table 4.9 - Probability type,,8,,Probability of event in below normal category,(see Notes 1 and 2),"7,9",,Operational Code table 4.9 - Probability type,,9,,Probability based on counts of categorical boolean,(see Note 3),155,,Operational -Code table 4.9 - Probability type,,10-191,,Reserved,,,,Operational +Code table 4.9 - Probability type,,10,,Probability of event within the quantile of the probability distribution function,(see Note 4),247a,,Operational +Code table 4.9 - Probability type,,11-191,,Reserved,,,,Operational Code table 4.9 - Probability type,,192-254,,Reserved for local use,,,,Operational Code table 4.9 - Probability type,,255,,Missing,,,,Operational Code table 4.10 - Type of statistical processing,,0,,Average,,,,Operational diff --git a/xml/CodeFlag.xml b/xml/CodeFlag.xml index 5f339e4..da45bf8 100644 --- a/xml/CodeFlag.xml +++ b/xml/CodeFlag.xml @@ -1,5 +1,5 @@ - + Code table 0.0 - Discipline of processed data in the GRIB message, number of GRIB Master table 0 @@ -12434,7 +12434,13 @@ Code table 4.9 - Probability type - 10-191 + 10 + Probability of event within the quantile of the probability distribution function + Operational + + + Code table 4.9 - Probability type + 11-191 Reserved Operational diff --git a/xml/Template.xml b/xml/Template.xml index 04ed32a..f83e0c9 100644 --- a/xml/Template.xml +++ b/xml/Template.xml @@ -1,5 +1,5 @@ - + Identification template 1.0 - calendar definition 24