2.6.2. vacumm.diag.thermdyn – Thermodynamics

Functions:

Diagnostics about thermodynamics

density(temp, sal, depth=None, lat=None, potential=False, getdepth=False, getlat=False, format_axes=False)[source]

Compute density from temperature, salinity and depth (and latitude)

Params:
  • temp: Insitu or potential temperature.
  • sal: Salinity.
  • depth, optional: Depth at temperature and salinty points. Assumed to be 0 if not found.
  • lat, optional: Latitude. Error when not found.
  • potential, optional: True to get the potential density (at atmospheric pressure).
Algo:
>>> pressure = seawater.csiro.pres(depth, lat)
>>> density = seawater.csiro.dens(sal, temp, depth)
mixed_layer_depth(data, depth=None, lat=None, zaxis=None, mode=None, deltatemp=0.2, deltadens=0.03, kzmax=0.0005, potential=True, format_axes=False)[source]

Get mixed layer depth from temperature and salinity

Params:
  • temp: Insitu or potential temperature.
  • sal: Salinity.
  • depth, optional: Depth at temperature and salinty points.
  • lat, optional: Latitude.
  • mode, optional: "deltatemp", "deltadens", "kz" or "twolayers"
Raise:

VACUMMError if can’t get depth (and latitude for density).