Note
Go to the end to download the full example code or to run this example in your browser via Binder.
Dimensionless numbers of the Gulf Stream#
In this tutorial, we show how to:
compute the Rossby number of the surface currents,
compute the Burger number from the deformation radius of the vertical modes, or from the stratification,
compute the internal Froude number of the upper ocean,
compute the Ekman number of the surface layer.
The data are 3D fields of the GLORYS12 reanalysis of the Copernicus Marine Service, averaged over 2 x 2 grid cells, on the 1st of October 2019, in the region of the Gulf Stream.
The concepts are explained in the Dynamics diagnostics and polygon masks guide. See also: Vertical modes of the Gulf Stream, Vorticity, strain and eddies in Gulf Stream currents.
Initialisations#
import cmocean # noqa
import matplotlib.pyplot as plt
import numpy as np
import xarray as xr
import xoa
import xoa.dyn as xdyn
import xoa.grid as xgrid
import xoa.meta as xmeta
import xoa.numbers as xnum
import xoa.thermdyn as xthermdyn
from xoa.plot import plot_fields
xr.set_options(display_style="text")
plt.rcParams.update({"font.size": 9, "axes.titlesize": 10, "axes.titleweight": "bold"})
xmeta.register_meta_specs(xoa.get_meta_config_file("mercator"))
MAP_KW = {"gridlines_labels_on": ["bottom", "left"], "land": True}
Read the reanalysis#
ds = xoa.open_data_sample("MODELS/CMEMS-GLORYS/glorys_gulfstream_3d.nc")
ds = ds.xoa.decode().isel(time=0)
temp, sal, u, v = ds.temp, ds.sal, ds.u, ds.v
n2 = xthermdyn.get_n2(temp, sal)
open_ocean = n2.notnull().all("depth")
Rossby number#
The Rossby number \(Ro = \zeta / f\) compares the relative vorticity to the planetary one. It is positive for cyclonic rotation and negative for anticyclonic rotation, and it is of order one for the strongest eddies and meanders.
rossby = xnum.get_rossby(u.isel(depth=0), v.isel(depth=0))
print(rossby)
<xarray.DataArray 'rossby' (lat: 48, lon: 60)> Size: 23kB
array([[-0.03992086, -0.01717691, 0.0136684 , ..., -0.05924675,
-0.04096741, -0.03333688],
[-0.03002976, 0.00193462, 0.03910285, ..., -0.06549972,
-0.0549946 , -0.04780497],
[-0.01321435, 0.00754309, 0.04554493, ..., -0.04029969,
-0.07858748, -0.09149936],
...,
[ nan, nan, nan, ..., 0.08514452,
0.04761352, 0.02044885],
[ nan, nan, nan, ..., 0.02098586,
0.02880013, 0.03931305],
[ nan, nan, nan, ..., -0.02415734,
-0.00296856, 0.02649398]], shape=(48, 60))
Coordinates:
* lat (lat) float32 192B 34.04 34.21 34.38 34.54 ... 41.54 41.71 41.88
* lon (lon) float32 240B -71.96 -71.79 -71.62 ... -62.46 -62.29 -62.12
depth float32 4B 0.494
time datetime64[ns] 8B 2019-10-01
Attributes:
long_name: Rossby number
units: 1
Burger number#
The Burger number \(Bu = (R_d / L)^2\) compares the deformation radius to the scale
of the flow. We take here a scale of 50 km for the eddies. The deformation radius is either
the one of the first baroclinic vertical mode, the quick WKB estimate of
xoa.dyn.get_rossby_radius(), or the approximation \(N H / |f|\) with
the mean stratification of the upper 1000 m, weighted by the layer thicknesses with
xoa.grid.vmean().
L = 50e3
vm = xdyn.VerticalModes(n2, nmodes=2)
burger = xnum.get_burger(L, rd=vm.rd.isel(mode=1)).where(open_ocean)
burger_wkb = xnum.get_burger(L, rd=xdyn.get_rossby_radius(n2)).where(open_ocean)
H = 1000.0
n_mean = xgrid.vmean(np.sqrt(n2.where(n2 > 0)), zmin=-H)
n2_mean = n_mean**2
burger_nh = xnum.get_burger(L, n2=n2_mean, h=H).where(open_ocean)
Froude number#
The internal Froude number \(Fr = U / (N H)\) is the speed over the speed of the internal waves. It is small, i.e. the flow is subcritical, except where the stratification is weak, like in the mixed layers.
speed = np.hypot(u, v).isel(depth=0)
froude = xnum.get_froude(speed, n2_mean, H).where(open_ocean)
Ekman number#
The vertical Ekman number \(Ek = \nu / (|f| H^2)\) is computed for a surface layer of 50 m and a constant eddy viscosity of \(10^{-2}\) m2 s-1, so it only depends on the latitude.
ekman = xnum.get_ekman(1e-2, 50.0, u.lat)
print(float(ekman.min()), float(ekman.max()))
0.04120098426938057 0.049128592014312744
Maps#
fig, axes = plot_fields(
[
(rossby, {"cmap": "cmo.balance", "levels": np.linspace(-0.6, 0.6, 25)}),
(burger, {"cmap": "cmo.matter", "levels": np.linspace(0, 1, 21)}),
(burger_wkb, {"cmap": "cmo.matter", "levels": np.linspace(0, 1, 21)}),
(burger_nh, {"cmap": "cmo.matter", "levels": np.linspace(0, 2, 21)}),
(froude, {"cmap": "cmo.amp", "levels": np.linspace(0, 0.4, 21)}),
],
titles=[
"Rossby",
"Burger from the modes",
"Burger from the WKB radius",
"Burger from N H / f",
"Froude",
],
ncols=3,
figsize=(10, 6.2),
map_kw=MAP_KW,
method="contourf",
extend="both",
)

The Rossby number reaches 0.5 along the stream and its eddies, and the Burger number of the first mode is of order 0.1 to 0.5 for eddies of 50 km, and the WKB radius gives about the same. The \(N H / |f|\) estimate has the same spatial pattern but is several times larger, since the first baroclinic radius is close to \(N H / (\pi |f|)\) for a constant stratification: use the radius of the modes when it is available. The Froude number stays below one, i.e. the flow is subcritical, and it is largest where the stratification is weak.
Total running time of the script: (0 minutes 2.823 seconds)