Skip to content

Commit d67f1e3

Browse files
authored
Fix: change wording "primary" -> "peak" (#24)
1 parent d7fdf7f commit d67f1e3

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

wavey/__main__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def main(
170170
for i, y in enumerate((bw_wave_period_sec, mon_wave_period_sec)):
171171
ax_period.plot(times, y, label=labels[i], color=colors[i]) # type: ignore[arg-type]
172172

173-
ax_period.set_ylabel("Primary wave period (sec)")
173+
ax_period.set_ylabel("Peak wave period (sec)")
174174
ax_period.yaxis.label.set_fontsize(14)
175175
ax_period.xaxis.set_ticks_position("bottom")
176176
ax_period.legend(loc="upper right")
@@ -248,7 +248,8 @@ def main(
248248
ax_mon.set_title("Pt. Lobos & Monastery")
249249

250250
plt.tight_layout()
251-
plt.colorbar(map_main.img, orientation="vertical", label="(ft)", shrink=0.8)
251+
cbar = plt.colorbar(map_main.img, orientation="vertical", shrink=0.8)
252+
cbar.set_label("ft", rotation=0)
252253

253254
LOG.info("Creating colormap frames")
254255
plot_dir = out_dir / "plots"
@@ -262,7 +263,7 @@ def main(
262263
map_mon.update(hour_i)
263264

264265
ax_main.set_title(
265-
f"Significant wave height (ft) and primary wave direction\nHour {hour_i:03} -- {pacific_time_str}"
266+
f"Significant wave height (ft) and peak wave direction\nHour {hour_i:03} {pacific_time_str}"
266267
)
267268
savefig(plot_dir / f"{hour_i}.png")
268269

wavey/grib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ class ForecastType(IntEnum):
2929
WaveHeight = 0
3030
"""Significant height of combined wind waves and swell (m)"""
3131
WaveDirection = 1
32-
"""Primary wave direction (deg)"""
32+
"""Peak wave direction (deg)"""
3333
WavePeriod = 2
34-
"""Primary wave mean period (s)"""
34+
"""Peak wave mean period (s)"""
3535
SwellHeight = 3
3636
"""Significant height of total swell (m)"""
3737
WindDirection = 4

0 commit comments

Comments
 (0)