airbornegeo.vertical_acceleration

airbornegeo.vertical_acceleration#

vertical_acceleration(data, *, time_column, height_column, groupby_column=None, time_threshold=None, smoothing_window=None)[source]#

Calculate the 2nd derivative of height change with respect to time for each line. If there is a gap between points greater than time_threshold in seconds, the line will be split at the gap and the acceleration will be NaN for the points on either side of the gap.

Parameters:
  • data (DataFrame) – Dataframe containing the data points and must have columns set from time_column and height_column.

  • time_column (str) – Column name to containing the time in seconds

  • height_column (str) – Column name to containing the flight height in meters

  • groupby_column (str | None) – Column name to group by before calculation, by default None

  • time_threshold (float | None) – Threshold in seconds for determining gaps in the data, where acceleration will be set to NaN

  • smoothing_window (int | None) – Window size in number of data points for smoothing each derivative after it’s been calculated, by default None

Returns:

Series containing the vertical acceleration in m/s^2 for each point in the dataframe.

Return type:

Series