polaris.ocean.eos.linear.compute_linear_density

polaris.ocean.eos.linear.compute_linear_density(config: PolarisConfigParser, temperature: DataArray, salinity: DataArray) DataArray[source]

Compute the density of seawater based on the the linear equation of state with coefficients specified in the configuration. The distinction between conservative, potential, and in-situ temperature or between absolute and practical salinity is not relevant for the linear EOS.

Parameters:
Returns:

density (float or xarray.DataArray) – Computed density of the seawater.