polaris.tasks.ocean.mixed_layer_eddies.init.compute_background_salinity

polaris.tasks.ocean.mixed_layer_eddies.init.compute_background_salinity(z, z_profile, salinity_profile, ml_depth)[source]

Compute the background salinity: the profile below the base of the mixed layer and its value at the base above it

Parameters:
  • z (xarray.DataArray or numpy.ndarray) – Geometric heights (m, negative) at which to evaluate the profile

  • z_profile (numpy.ndarray) – Geometric heights of the profile, increasing

  • salinity_profile (numpy.ndarray) – Salinity of the profile at z_profile

  • ml_depth (float) – The depth of the base of the mixed layer, H_m (m, positive)

Returns:

salinity (xarray.DataArray or numpy.ndarray) – The background salinity at z