wavespectra.SpecArray.split#

SpecArray.split(fmin=None, fmax=None, dmin=None, dmax=None, interpolate=True, rechunk=True)[source]#

Split spectra over freq and/or dir dims.

Parameters:
  • fmin (-) – lowest frequency to split spectra, by default the lowest.

  • fmax (-) – highest frequency to split spectra, by default the highest.

  • dmin (-) – lowest direction to split spectra at, by default min(dir).

  • dmax (-) – highest direction to split spectra at, by default max(dir).

  • interpolate (-) – Interpolate spectra at frequency cutoffs they are not available in coordinates of input spectra.

  • rechunk (-) – Rechunk split dims so there is one single chunk.

Returns:

Split spectra, returned as a Dataset with the

non-spectral variables preserved when called from the Dataset accessor.

Return type:

  • efth (DataArray)