compass.ocean.haney.compute_haney_number

compass.ocean.haney.compute_haney_number(ds_mesh, layer_thickness, ssh, show_progress=False)[source]

Compute the Haney number rx1 for each edge, and interpolate it to cells

Parameters:
  • ds_mesh (xarray.Dataset) – A dataset with the MPAS-Ocean mesh

  • layer_thickness (xarray.DataArray) – A data array with layer thicknesses

  • ssh (xarray.DataArray) – A data array with sea surface height

  • show_progress (bool, optional) – Whether to show a progress bar

Returns:

  • haney_edge (xarray.DataArray) – A data array with the Haney number at edges and layer interfaces

  • haney_cell (xarray.DataArray) – A data array with the Haney number interpolated to cell centers and layer interfaces