wavespectra.SpecArray.interp#
- SpecArray.interp(freq=None, dir=None, maintain_m0=True)[source]#
Interpolate onto new spectral basis.
- Parameters:
freq (-) – Frequencies of interpolated spectra (Hz).
dir (-) – Directions of interpolated spectra (deg).
maintain_m0 (-) – Ensure variance is conserved in interpolated spectra.
- Returns:
- Regridded spectra, returned as a Dataset with
the non-spectral variables preserved when called from the Dataset accessor.
- Return type:
dsi (DataArray)
Note
All freq below lowest freq are interpolated assuming \(E_d(f=0)=0\).
\(Ed(f)\) is set to zero for new freq above the highest freq in dset.
Only the ‘linear’ method is currently supported.