Skip to content

Commit

Permalink
247 code table 49 add an entry to encode a probability based on a qua…
Browse files Browse the repository at this point in the history
…ntile distribution instead of based on a threshold (#265)

* fix rebase conflict xml,txt files

* fix rebase conflicts 247 adding entry in COde table 4.9 and associated note

* fix rebase conflicts xml,txt files

* xml,txt files

* #247 changing PDF acronym to probability distribution function

* xml,txt files

* remove odd char

* xml,txt files

* xml,txt files

* remove datestamp from XML gen

* xml,txt files

---------

Co-authored-by: Enrico Fucile <[email protected]>
Co-authored-by: Sebastien Villaume <[email protected]>
  • Loading branch information
3 people authored Jul 10, 2024
1 parent c1e6c9b commit 74c6a4b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
5 changes: 3 additions & 2 deletions GRIB2_CodeFlag_4_9_CodeTable_en.csv
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion notes/CodeFlag_notes.csv
Original file line number Diff line number Diff line change
Expand Up @@ -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."
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."
3 changes: 2 additions & 1 deletion txt/CodeFlag.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion xml/CodeFlag.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12434,7 +12434,13 @@
</GRIB2_CodeFlag_en>
<GRIB2_CodeFlag_en>
<Title_en>Code table 4.9 - Probability type</Title_en>
<CodeFlag>10-191</CodeFlag>
<CodeFlag>10</CodeFlag>
<MeaningParameterDescription_en>Probability of event within the quantile of the probability distribution function</MeaningParameterDescription_en>
<Status>Operational</Status>
</GRIB2_CodeFlag_en>
<GRIB2_CodeFlag_en>
<Title_en>Code table 4.9 - Probability type</Title_en>
<CodeFlag>11-191</CodeFlag>
<MeaningParameterDescription_en>Reserved</MeaningParameterDescription_en>
<Status>Operational</Status>
</GRIB2_CodeFlag_en>
Expand Down

0 comments on commit 74c6a4b

Please sign in to comment.