Note
Go to the end to download the full example code.
Energy density values#
Show actual energy density rather than normalised values
![lon = 0.0 [degrees_east], lat = 72.0 [degrees_n...](../_images/sphx_glr_plot_spectra_non_normalised_001.png)
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(
normalised=False,
as_period=True,
cmap="Spectral_r",
levels=10,
)
Total running time of the script: (0 minutes 1.247 seconds)