Closed NickGlauberCirium closed 1 year ago
Updates avwx.current.base.wx_code() to return the code unmodified if it contains no strings that are in avwx.static.core.WX_TRANSLATIONS.
avwx.current.base.wx_code()
code
avwx.static.core.WX_TRANSLATIONS
This causes directional visibility and some other random tokens to end up in other rather than wx_codes.
other
wx_codes
Some example tokens from METAR reports that previously were parsed into wx_codes and are now parsed into other with this change:
0800SE
EGJB 011850Z 20012KT 1200 0800SE -RADZ BCFG BR SCT000 BKN001 16/16 Q1003 RERA REDZ
CB(SE-N)
GBYD 291500Z 25006KT 9000 -RA BKN011 FEW018CB SCT110 26/25 Q101 1 CB(SE-N)
CHANGELOG.md
Description
Updates
avwx.current.base.wx_code()
to return thecode
unmodified if it contains no strings that are inavwx.static.core.WX_TRANSLATIONS
.This causes directional visibility and some other random tokens to end up in
other
rather thanwx_codes
.Some example tokens from METAR reports that previously were parsed into
wx_codes
and are now parsed intoother
with this change:0800SE
from reportEGJB 011850Z 20012KT 1200 0800SE -RADZ BCFG BR SCT000 BKN001 16/16 Q1003 RERA REDZ
CB(SE-N)
from reportGBYD 291500Z 25006KT 9000 -RA BKN011 FEW018CB SCT110 26/25 Q101 1 CB(SE-N)
Checklist
CHANGELOG.md
OR changes are insignificant