get_action

process_ais_data.get_action(traj, options, grid_params)

Wrapper function for other get_action functions.

Calls the correct get_action variant based on the options input and returns the resulting output with interpolated actions for all entries in the series.

Parameters
  • traj (pandas.DataFrame) – A pandas DataFrame with all the states encountered in a trajectory with their respective coordinates.

  • options (dict) – The script options specified in the config_file.

  • grid_params (dict) – The grid parameters specified in the config_file.

Returns

The sequence of state-action-state triplets for the passed in trajectory.

Return type

dict