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:
config (polaris.config.PolarisConfigParser) – Config options
ds_mesh (xarray.Dataset) – The horizontal mesh
ds (xarray.Dataset) – Model output with tracers and a thickness, with or without
Timecell_mask (xarray.DataArray) – The cells whose bands contribute to the mean gradient
ml_depth (float) – The depth of the mixed layer (m)
- Returns:
buoyancy_gradient (xarray.DataArray) – The mean gradient (s-2), with
Timeifdshas it