agepy.mag.trajectory.get_mobile

get_mobile(df, thresh, periods=1, dim_col='x')

Get mobile particles.

Particles are mobile if their velocity between two frames is greather than the given threshold value.

Parameters:
df: DataFrame

with particle data (from trackpy).

thresh: float

threshold velocity.

periods: int, optional

Window of frames to get diff/velocity from. Default is 1.

dim_col: string, optional

Calculate velocity on column x or y. Default is “x”.

Returns:
mobile: ndarray

Sorted array with names/numbers of mobile particles.

Return type:

ndarray