Skip to main content
Ctrl+K
wavespectra 4.0.3 documentation - Home
  • Installation
  • Quick start
  • Conventions
  • Input & Output
  • Plotting
    • Selecting
    • Partitioning
    • Construction
    • CLI
    • API documentation
    • Credits
    • Support
    • Contributing
    • History
    • Gallery
  • GitHub
  • Installation
  • Quick start
  • Conventions
  • Input & Output
  • Plotting
  • Selecting
  • Partitioning
  • Construction
  • CLI
  • API documentation
  • Credits
  • Support
  • Contributing
  • History
  • Gallery
  • GitHub

Table of Contents

Contents:

  • Installation
  • Quick start
  • Conventions
  • Input & Output
  • Plotting
  • Selecting
  • Partitioning
  • Construction
  • CLI

Help & Reference:

  • API documentation
  • Credits
  • Support
  • Contributing
  • History
  • Gallery
  • Gallery
  • Calculate...

Note

Go to the end to download the full example code.

Calculate and plot Hs#

Plots Hs calculated from spectra dataset

plot hs
import matplotlib.pyplot as plt
from wavespectra import read_ww3


dset = read_ww3("../_static/ww3file.nc")

fig = plt.figure(figsize=(8, 4))
hs = dset.spec.hs()
p = hs.plot.line(x="time")

Total running time of the script: (0 minutes 0.349 seconds)

Download Jupyter notebook: plot_hs.ipynb

Download Python source code: plot_hs.py

Gallery generated by Sphinx-Gallery

previous

Default arguments

next

Spectrum as contour

Built with the PyData Sphinx Theme 0.15.3.