polaris.ocean.eos.constant.compute_constant_density

polaris.ocean.eos.constant.compute_constant_density(config: PolarisConfigParser, temperature: DataArray | float) DataArray | float[source]

Compute the density of seawater based on the constant equation of state with the value specified in the configuration.

Parameters:
Returns:

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