3.8. cpforager.processing.add_step_heading_to_colony
- cpforager.processing.add_step_heading_to_colony(df, params)
Add to the dataframe an additional
step_heading_to_colony
column that gives heading to the colony in degrees.- Parameters:
df (pandas.DataFrame) – dataframe with
longitude
andlatitude
columns.params (dict) – parameters dictionary.
- Returns:
the dataframe with an additional
step_heading_to_colony
column that gives heading to the colony in degrees.- Return type:
pandas.DataFrame
Note
The required fields in the parameters dictionary are
colony
.