Last updated on Sep 04, 2024.

netsse.base.WaveSpectrum#

class netsse.base.WaveSpectrum(Hs=np.nan, Tp=np.nan, freq=np.linspace(0, 1, 100), ord=np.zeros((100,)), unit_freq='Hz', timestamp=datetime.now(), lat=0, lon=0, depth=0, duration=30 * 60)#

Bases: Spectrum, SeaState

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