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:
config (polaris.config.PolarisConfigParser) – Configuration object containing ocean parameters.
temperature (float or xarray.DataArray) – Temperature of the seawater.
salinity (float or xarray.DataArray) – Salinity of the seawater.
- Returns:
density (float or xarray.DataArray) – Computed density of the seawater.