pandas.DataFrame.xyz.z_smooth_distance

DataFrame.xyz.z_smooth_distance(**kwargs)[source]

Like z_smooth_time(), but sampled over distance instead of time.

Parameters
  • **distance (scalar) – column label in the record DataFrame containing cumulative distances along the route in meters. Must be numeric dtype. If a label is not provided, the parameter name itself is used.

  • **elevation (scalar) – column label in the record DataFrame containing elevation coordinates along the route in meters above sea level. Must be numeric dtype. If a label is not provided, the parameter name itself is used.

  • **sample_len (float) – desired distance (meters) between resampled data points.

  • **window_len (int) – length of the window used in the SG filter. Must be positive odd integer.

  • **polyorder (int) – order of the polynomial used in the SG filter. Must be less than window_len.

Returns

elevation coordinates that result from this smoothing algorithm.

Return type

pandas.Series