Last updated on Sep 04, 2024.

netsse.base.SeaState#

class netsse.base.SeaState(Hs=0, Tp=0, timestamp=datetime.now(), lat=0, lon=0, depth=0, duration=30 * 60)#

Initialises the sea state at a given time and geographical position in the ocean.

Parameters:
  • Hs (float, default 0) – Significant wave height [m].

  • Tp (float, default 0) – Peak wave period [s].

  • timestamp (datetime object, default datetime.now()) – Timestamp at which the sea state applies.

  • lat (float, default 0) – Latitude [degrees North].

  • lon (float, default 0) – Longitude [degrees East].

  • depth (float, default 0) – Water depth [m] at the studied location.

  • duration (float, optional) – Time duration of the sea state [s], by default 30*60 = 1800 s.

Examples

>>> seastate = SeaState(Hs,Tp,timestamp,lat,lon,depth,duration)

Methods#

set_params(Hs, Tp)

Sets the sea state parameters \(H_s\) and \(T_p\) to new