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
  • Default arguments

Note

Go to the end to download the full example code.

Default arguments#

Plot of wave spectrum with default options

lon = 0.0 [degrees_east], lat = 72.0 [degrees_n...
import matplotlib.pyplot as plt
from wavespectra import read_era5


dset = read_era5("../_static/era5file.nc")
ds = dset.isel(lat=0, lon=0, time=0)
p = ds.spec.plot()

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

Download Jupyter notebook: plot_default.ipynb

Download Python source code: plot_default.py

Gallery generated by Sphinx-Gallery

previous

Gallery

next

Calculate and plot Hs

Built with the PyData Sphinx Theme 0.15.3.