airbornegeo.vertical_acceleration#
- vertical_acceleration(data, *, time_column, height_column, groupby_column=None, progressbar=True, 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 secondsheight_column (
str) β Column name to containing the flight height in metersgroupby_column (
str|None) β Column name to group by before calculation, by default Noneprogressbar (
bool) β Show progress bar for each group, by default Truetime_threshold (
float|None) β Threshold in seconds for determining gaps in the data, where acceleration will be set to NaNsmoothing_window (
int|None) β Window size in number of data points for smoothing each derivative after itβs been calculated, by default None
- Returns:
Array containing the vertical acceleration in m/s^2 for each point in the dataframe.
- Return type:
ndarray[tuple[Any,...],dtype[TypeVar(_ScalarT, bound=generic)]]