3.7. cpforager.processing.add_step_turning_angle
- cpforager.processing.add_step_turning_angle(df)
Add to the dataframe an additional
step_turning_angle
column that gives the step turning angle in degrees (between -180° and +180°).- Parameters:
df (pandas.DataFrame) – dataframe with a
step_heading
column.- Returns:
the dataframe with an additional
step_turning_angle
column that gives the step turning angle in degrees (between -180° and +180°).- Return type:
pandas.DataFrame
Step turning angle is computed as the difference of step heading between consecutive measures of position.
Warning
First two step turning angle values are NaN.