mpas_tools.ocean.compute_barotropic_streamfunction
- mpas_tools.ocean.compute_barotropic_streamfunction(ds_mesh, ds, logger=None, min_depth=None, max_depth=None, prefix='timeMonthly_avg_', time_index=None, include_bolus=False, include_submesoscale=False)[source]
Compute barotropic streamfunction
- Parameters:
ds_mesh (xarray.Dataset) – A dataset containing MPAS mesh variables
ds (xarray.Dataset) – A dataset containing MPAS output variables
normalVelocityandlayerThickness(possibly with aprefix)logger (logging.Logger, optional) – A logger for the output if not stdout
min_depth (float, optional) – The minimum depth (positive up) to compute BSF over
max_depth (float, optional) – The maximum depth (positive up) to compute BSF over
prefix (str, optional) – The prefix on the
normalVelocityandlayerThicknessvariablestime_index (int, optional) – The time at which to index
ds(if it hasTimeas a dimension)include_bolus (bool, optional) – Whether to include the GM bolus velocity in the computation
include_submesoscale (bool, optional) – Whether to include the submesoscale velocity in the computation
- Returns:
bsf_vertex (xarray.DataArray) – The barotropic streamfunction in Sv on vertices