movingpandas.TrajectoryCollection.add_acceleration#

TrajectoryCollection.add_acceleration(overwrite=False, name='acceleration', units=(None, None, None, None), n_threads=1)#

Add acceleration column and values to the trajectories.

Acceleration is calculated as CRS units per second squared, except if the CRS is geographic (e.g. EPSG:4326 WGS84) then acceleration is calculated in meters per second squared.

Parameters:
  • overwrite (bool) – Whether to overwrite existing acceleration values (default: False)

  • name (str) – Name of the acceleration column (default: “acceleration”)

  • units (tuple(str)) –

    Units in which to calculate acceleration

    distancestr

    Abbreviation for the distance unit (default: CRS units, or metres if geographic)

    timestr

    Abbreviation for the time unit (default: seconds)

    time2str

    Abbreviation for the second time unit (default: seconds)

    For more info, check the list of supported units at https://movingpandas.org/units

  • n_threads (int) – Number of threads to use for computation (default: 1)