Commit 0ed1dbfa authored by Pierre Augier's avatar Pierre Augier
Browse files

spatiotemporal_spectra: don't try to plot the dispersion relation when omega > N

parent 435c117575c8
Pipeline #22924 passed with stage
in 16 minutes and 59 seconds
......@@ -1036,7 +1036,7 @@ class SpatioTemporalSpectraNS:
/ spectra_kzkhomega["kh_spectra"][1]
)
if equation.startswith(r"$\omega"):
if omega > 0:
if omega > 0 and omega <= N:
ikz_disp = np.sqrt(N ** 2 / omega ** 2 - 1) / dkh_over_dkz * xaxis
ax.plot(xaxis, ikz_disp, "k+", linewidth=2)
elif equation.startswith(r"$k_h"):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment