wavespectra.SpecArray.rotate#
- SpecArray.rotate(angle)[source]#
Rotate spectra.
- Parameters:
angle (-) – Angle in degrees to rotate spectra, positive for clockwise and negative for counter-clockwise rotation.
- Returns:
- Rotated spectra, returned as a Dataset with the
non-spectral variables preserved when called from the Dataset accessor.
- Return type:
efth (DataArray)
Note
Directions are interpolated so that the rotated spectra have the same directional bins as the original spectra.