2.6.4. vacumm.diag.atmos – Atmospheric diagnostics

Functions:
wind_stress(u, v, rhoa=1.25, cd=0.016, format_axes=False, alongxy=None)[source]

Compute the sea surface zonal and meridional wind stress from 10m wind components

Output variables are formatted using format_var().

Formula:

\tau_x = \rho_a C_d (U_{10m}^2+V_{10m}^2)^{\frac{1}{2}}U_{10m}

\tau_y = \rho_a C_d (U_{10m}^2+V_{10m}^2)^{\frac{1}{2}}V_{10m}

Params:
  • u/v: Wind at 10m above sea surface.
  • rhoa, optional: Air density (in kg.m-3).
  • cd, optional: Drag coefficient.
  • format_axes, optional: Also format axes using format_axis().
  • alongxy, optional: Format variables considering components are along X/Y direction and not along zonal/meridional direction.
Return:

us, vs

ws2w(us, vs, rhoa=1.25, cd=0.016, format_axes=False, alongxy=None)[source]

Convert from wind stress to 10m wind components

This function is the reverse one of wind_stress(). Output variables are formatted using format_var().

Formula:

U_{10m} = (\rho_a C_d)^{-\frac{1}{2}}
(\tau_x^2+\tau_y^2)^{-\frac{1}{4}} \tau_x

V_{10m} = (\rho_a C_d)^{-\frac{1}{2}}
(\tau_x^2+\tau_y^2)^{-\frac{1}{4}} \tau_y

Params:
  • us/vs: Wind stress components.
  • rhoa, optional: Air density (in kg.m-3).
  • cd, optional: Drag coefficient.
  • format_axes, optional: Also format axes using format_axis().
  • alongxy, optional: Format variables considering components are along X/Y direction and not along zonal/meridional direction.
Return:

u, v