polaris.tasks.ocean.mixed_layer_eddies.diagnostics.get_consistent_edges
- polaris.tasks.ocean.mixed_layer_eddies.diagnostics.get_consistent_edges(config, ds_mesh, ds, edges, eddy_velocity, mld, model)[source]
Find the edges where the mixed-layer depth in the output is the one the eddy velocity in the output was computed with: the depth lies within the deepest layer with a nonzero eddy velocity. The two can come from different stages of a time step, and the mixed-layer depth can jump by layers between them where the mixed layer is nearly neutral.
- Returns:
consistent (numpy.ndarray) – A boolean mask over
edges; edges with no eddy velocity are not consistent