Skip to content

Commit 71b9b41

Browse files
authored
Merge pull request #3045 from dopplershift/export-wpc-parser
Export parse_wpc_surface_bulletin
2 parents 6467254 + b9c7690 commit 71b9b41

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/metpy/io/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@
2525
__all__.extend(metar.__all__) # pylint: disable=undefined-variable
2626
__all__.extend(nexrad.__all__) # pylint: disable=undefined-variable
2727
__all__.extend(station_data.__all__) # pylint: disable=undefined-variable
28+
__all__.extend(text.__all__) # pylint: disable=undefined-variable
2829

2930
set_module(globals())

src/metpy/io/text.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
import pandas as pd
1313

1414
from ._tools import open_as_needed
15+
from ..package_tools import Exporter
16+
17+
exporter = Exporter(globals())
1518

1619

1720
def _decode_coords(coordinates):
@@ -64,6 +67,7 @@ def _regroup_lines(iterable):
6467
yield parts
6568

6669

70+
@exporter.export
6771
def parse_wpc_surface_bulletin(bulletin, year=None):
6872
"""Parse a coded surface bulletin from NWS WPC into a Pandas DataFrame.
6973

0 commit comments

Comments
 (0)