wylark
/
infoex-autowx.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4cddf1
)
Round precip accum to 2 decimal places
author
Alexander Vasarab <alexander@wylark.com>
Tue, 16 Feb 2021 05:37:37 +0000
(21:37 -0800)
committer
Alexander Vasarab <alexander@wylark.com>
Tue, 16 Feb 2021 05:37:37 +0000
(21:37 -0800)
infoex-autowx.py
patch
|
blob
|
history
diff --git
a/infoex-autowx.py
b/infoex-autowx.py
index 1f25bc5a278687b385ac03de3abcda41ae9dc014..1844d4574682202fa00307d06c13510aab1a6e2f 100755
(executable)
--- a/
infoex-autowx.py
+++ b/
infoex-autowx.py
@@
-294,6
+294,8
@@
def main():
infoex['wx_data'][element_cd] = round(infoex['wx_data'][element_cd])
elif element_cd in ['TOBS', 'air_temp', 'PRES', 'pressure']:
infoex['wx_data'][element_cd] = round(infoex['wx_data'][element_cd], 1)
+ elif element_cd in ['PREC', 'precip_accum']:
+ infoex['wx_data'][element_cd] = round(infoex['wx_data'][element_cd], 2)
# CONSIDER: Casting every value to Float() -- need to investigate if
# any possible elementCds we may want are any other data