Commit 591b1ef2 authored by Carl Schreck's avatar Carl Schreck
Browse files

Merge branch 'hurricane_ian' into 'master'

Updates to how ibtracs.py makes plots based on Hurricane Ian

See merge request !4
parents b2db3eaf 32c5af59
......@@ -651,7 +651,8 @@ class Ibtracs:
atcf_not_letter=False,
letter_end_column=1,
add_legend=False,
label_offset=4, wind_var='usa_wind'):
label_offset=4, wind_var='usa_wind',
**kwargs):
"""Add the track for one storm to a map."""
"""Find the storm."""
......@@ -727,7 +728,7 @@ class Ibtracs:
if markercolor != 'none':
"""Add markers."""
is_in_natures = self.check_nature(storm_data.nature)
is_in_natures = self.check_nature(storm_data.usa_status)
if markercolor == 'wind':
markers = {'ET': 'P', 'SS': 's', 'DS': '.', 'TS': 'o'}
else:
......@@ -810,9 +811,9 @@ class Ibtracs:
if add_legend:
self.add_track_legend(ax,
nature_data=storm_data['nature'],
nature_data=storm_data['usa_status'],
linecolor=linecolor, markercolor=markercolor,
linewidth=linewidth)
linewidth=linewidth, **kwargs)
storm_data['extent'] = [storm_data.lon.min() - 5,
storm_data.lon.max() + 5,
storm_data.lat.min() - 5,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment