../_images/calypso.png

toto.core.wavestats

toto.core.wavestats.calc_slp(hs, tp, h=None)[source]
toto.core.wavestats.calc_wavelength(tp, h=None)[source]
toto.core.wavestats.get_stats(sp, freq)[source]
toto.core.wavestats.specstats(sp, freq, fmin=0.04, fmax=0.3333333333333333, cutoff=0.125)[source]
toto.core.wavestats.split(S, freq, fmin=None, fmax=None)[source]

Split spectra over freq and/or dir dims. Args:

  • fmin (float): lowest frequency to split spectra, by default the lowest.

  • fmax (float): highest frequency to split spectra, by default the highest.

  • dmin (float): lowest direction to split spectra over, by default min(dir).

  • dmax (float): highest direction to split spectra over, by default max(dir).

Note:
  • spectra are interpolated at fmin / fmax if they are not present in self.freq