momlevel.eos.wright module

wright.py – Wright Equation of State

momlevel.eos.wright.alpha(T, S, p)

Calculate thermal expansion coefficient (alpha)

Reference:

Wright, 1997, J. Atmos. Ocean. Tech., 14, 735-740.

Parameters:
  • T (numpy.ndarray) – Sea water potential temperature in deg C

  • S (numpy.ndarray) – Sea water practical salinity in PSU

  • p (numpy.ndarray) – Sea water absolute pressure in Pa

Returns:

Thermal expansion coefficient in deg C -1

Return type:

numpy.ndarray

momlevel.eos.wright.beta(T, S, p)

Calculate haline contraction coefficient (beta)

Reference:

Wright, 1997, J. Atmos. Ocean. Tech., 14, 735-740.

Parameters:
  • T (numpy.ndarray) – Sea water potential temperature in deg C

  • S (numpy.ndarray) – Sea water practical salinity in PSU

  • p (numpy.ndarray) – Sea water absolute pressure in Pa

Returns:

Haline contraction coefficient PSU -1

Return type:

numpy.ndarray

momlevel.eos.wright.density(T, S, p)

Calculate in-situ density based on the Wright equation of state.

Reference:

Wright, 1997, J. Atmos. Ocean. Tech., 14, 735-740.

Parameters:
  • T (numpy.ndarray) – Sea water potential temperature in deg C

  • S (numpy.ndarray) – Sea water practical salinity in PSU

  • p (numpy.ndarray) – Sea water absolute pressure in Pa

Returns:

Sea water in-situ density in kg m-3

Return type:

numpy.ndarray

momlevel.eos.wright.drho_dsal(T, S, p)

Calculate density derivative with respect to salinity.

Reference:

Wright, 1997, J. Atmos. Ocean. Tech., 14, 735-740.

Parameters:
  • T (numpy.ndarray) – Sea water potential temperature in deg C

  • S (numpy.ndarray) – Sea water practical salinity in PSU

  • p (numpy.ndarray) – Sea water absolute pressure in Pa

Returns:

Density derivative with respect to salinity in kg m-3 PSU -1

Return type:

numpy.ndarray

momlevel.eos.wright.drho_dtemp(T, S, p)

Calculate density derivative with respect to potential temperature.

Reference:

Wright, 1997, J. Atmos. Ocean. Tech., 14, 735-740.

Parameters:
  • T (numpy.ndarray) – Sea water potential temperature in deg C

  • S (numpy.ndarray) – Sea water practical salinity in PSU

  • p (numpy.ndarray) – Sea water absolute pressure in Pa

Returns:

Density derivative with respect to temperature in kg m-3 deg C -1

Return type:

numpy.ndarray