pyorc.Transect.vector_to_scalar#

Transect.vector_to_scalar(v_x='v_x', v_y='v_y')[source]#

Set “v_eff” and “v_dir” variables as effective velocities over cross-section, and its angle.

Parameters:
  • v_x (str, optional) – name of variable containing x-directional velocities. (default: “v_x”)

  • v_y – name of variable containing y-directional velocities. (default: “v_y”)

Returns:

da – velocities perpendicular to cross section [time, points]

Return type:

xr.DataArray