Skip to content

Commit

Permalink
Bufr export: Changed airTemperature rounding to 1
Browse files Browse the repository at this point in the history
We only of 1 digits precision measurments from out instantaneous values. This violates the bufr schema which expects 2 digits precision.
  • Loading branch information
ladsmund committed Oct 8, 2024
1 parent 2fdaa56 commit 3177eda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pypromice/postprocess/bufr_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ class BUFRVariables:
)
# https://vocabulary-manager.eumetsat.int/vocabularies/BUFR/WMO/32/TABLE_B/012101
# Scale: 2, unit: K
airTemperature: float = attrs.field(converter=round_converter(2))
# NOTE: The expected scale is 2, but our instantanous data is rounded to 1 decimal.
airTemperature: float = attrs.field(converter=round_converter(1))
# There is also a Dewpoint temperature in this template: 012103 which is currently unused.
# https://vocabulary-manager.eumetsat.int/vocabularies/BUFR/WMO/32/TABLE_B/012103
# Scale: 0, unit: %
Expand Down

0 comments on commit 3177eda

Please sign in to comment.