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