wavespectra.SpecArray.oned#

SpecArray.oned(skipna=True)[source]#

Returns the one-dimensional frequency spectra.

Direction dimension is dropped after integrating.

Parameters:

skipna (-) – choose it to skip nans when integrating spectra. This is the default behaviour for sum() in DataArray. Notice it converts masks, where the entire array is nan, into zero.

Returns:

Frequency spectra, returned as a Dataset with

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

Return type:

  • efth (DataArray)