nautical.sea_state package
Module contents
- nautical.sea_state.sea_state(wvht: float, units: DistanceUnits = DistanceUnits.METERS)[source]
If the provided wave height is not in meters, convert the wave height to meters and determine the minimum seastate that meets the requirements.
The following information contains all of the sea state upper limits where the value is in meters: sea state 0 = [0, 0] sea state 1 = (0, 0.1] sea state 2 = (0.1, 0.5] sea state 3 = (0.5, 1.25] sea state 4 = (1.25, 2.5] sea state 5 = (2.5, 4.0] sea state 6 = (4.0, 6.0] sea state 7 = (6.0, 9.0] sea state 8 = (9.0, 14.0] sea state 9 = (14.0, inf]
- Parameters
wvht – current height of the waves
units – units of the wvht variable (defualt DistanceUnits.METERS)
- Returns
the seastate (int) that the wae height falls in.