avwx-rest / avwx-engine

Aviation Weather parsing engine. METAR & TAF
MIT License
90 stars 31 forks source link

Parse untranslated `wx_codes` into `other` #53

Closed NickGlauberCirium closed 1 year ago

NickGlauberCirium commented 1 year ago

Description

Updates avwx.current.base.wx_code() to return the code unmodified if it contains no strings that are in avwx.static.core.WX_TRANSLATIONS.

This causes directional visibility and some other random tokens to end up in other rather than wx_codes.

Some example tokens from METAR reports that previously were parsed into wx_codes and are now parsed into other with this change:

Checklist