New open-source library for processing ocean wave spectra

MetOcean Solutions is pleased to make an open-source release of a new python library for processing ocean wave spectra.

 Example of wave spectra. Time series of significant wave height (top). Directional wave spectrum during peak storm, red circle in the top panel (bottom).

Example of wave spectra. Time series of significant wave height (top). Directional wave spectrum during peak storm, red circle in the top panel (bottom).

“We are very enthusiastic about releasing our Wavespectra source code for processing wave data,” says Physical Oceanographer Dr Rafael Guedes. “The library is the result of a collaborative effort from our science team for dealing with ocean wave spectral data, and it has been extensively used and tested. By making it freely available, we hope to contribute to the scientific community, while at the same time encouraging researchers to become involved and further develop and improve the code.”

“Wavespectra is a powerful collection of tools to ingest, process and write spectra in common formats. It allows robust calculation of common integrated spectral wave parameters such as wave height, period and direction, as well as partitioning the wave spectra using different methods to separate wind sea from swells.”

“The code is focussed on speed and efficiency for large spectral datasets. It leverages existing libraries such as xarray which provides efficient and convenient methods for dealing with multidimensional datasets.  Wavespectra can be used to handle spectral output from wave models such as WAVEWATCH III and SWAN (Simulating WAves Nearshore) and also standard measured spectra files. It will be of use to scientists, students and consultants.”

 The Wavespectra library documentation is available at wavespectra.readthedocs.io/en/docs/ and the GitHub repository at github.com/metocean/wavespectra.

 For further information about Wavespectra library or any contribution, please contact us at enquiries@metocean.co.nz.