Skip to content

Commit

Permalink
Merge pull request #3045 from dopplershift/export-wpc-parser
Browse files Browse the repository at this point in the history
Export parse_wpc_surface_bulletin
  • Loading branch information
dopplershift committed May 16, 2023
2 parents 6467254 + b9c7690 commit 71b9b41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/metpy/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
__all__.extend(metar.__all__) # pylint: disable=undefined-variable
__all__.extend(nexrad.__all__) # pylint: disable=undefined-variable
__all__.extend(station_data.__all__) # pylint: disable=undefined-variable
__all__.extend(text.__all__) # pylint: disable=undefined-variable

set_module(globals())
4 changes: 4 additions & 0 deletions src/metpy/io/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
import pandas as pd

from ._tools import open_as_needed
from ..package_tools import Exporter

exporter = Exporter(globals())


def _decode_coords(coordinates):
Expand Down Expand Up @@ -64,6 +67,7 @@ def _regroup_lines(iterable):
yield parts


@exporter.export
def parse_wpc_surface_bulletin(bulletin, year=None):
"""Parse a coded surface bulletin from NWS WPC into a Pandas DataFrame.
Expand Down

0 comments on commit 71b9b41

Please sign in to comment.