polaris.tasks.ocean.mixed_layer_eddies.diagnostics.compute_buoyancy_gradient

polaris.tasks.ocean.mixed_layer_eddies.diagnostics.compute_buoyancy_gradient(config, ds_mesh, ds, cell_mask, ml_depth)[source]

Compute the mixed-layer mean cross-front buoyancy gradient from differences of area-weighted means over y-bands one row of cells wide

Parameters:
Returns:

buoyancy_gradient (xarray.DataArray) – The mean gradient (s-2), with Time if ds has it