polaris.tasks.ocean.mixed_layer_eddies.diagnostics.compute_mu

polaris.tasks.ocean.mixed_layer_eddies.diagnostics.compute_mu(z, ml_depth)[source]

Compute the vertical structure function of Fox-Kemper et al. (2008), zero below the mixed layer

Parameters:
Returns:

mu (numpy.ndarray or xarray.DataArray) – The structure function, with a maximum of 1 at z = -H/2