dyntrack.tl.vector_field

dyntrack.tl.vector_field(DT, gridRes=30, smooth=0.5, copy=False)

Generate a grid vector field from track data.

Parameters
  • DT (DynTrack) – A dyntrack.DynTrack object.

  • gridRes (int) – grid resolution in both horizontal and vertical axis.

  • smooth (float) – Smooth parameter of the vfkm algorithm.

  • copy (float) – Return a copy instead of writing to DT.

Returns

DT – if copy=True it returns or else add fields to DT:

.X

x coordinates of the grid.

.Y

y coordinates of the grid.

.u

x component of the vectors.

.v

y component of the vectors.

Return type

dyntrack.DynTrack