wavespectra.SpecArray.split#

SpecArray.split(fmin=None, fmax=None, dmin=None, dmax=None, rechunk=True)[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 at, by default min(dir).

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

  • rechunk (bool): Rechunk split dims so there is one single chunk.

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

  • Recommended rechunk==True so ufuncs with freq/dir as core dims will work.