airbornegeo.interpolate_intersections

airbornegeo.interpolate_intersections#

interpolate_intersections(df, intersections, *, to_interp, interp_on='distance_along_line', method='cubic', extrapolate=False, fill_value=None, window_width=None)[source]#

_summary_

Parameters:
  • df (DataFrame | GeoDataFrame) – Dataframe containing the data to interpolate

  • intersections (DataFrame | GeoDataFrame) – Dataframe containing the intersection points

  • to_interp (list[str] | str) – specify which column to interpolate NaNs for

  • interp_on (str) – Decide which column interpolation is based on, by default “distance_along_line”

  • method (str) – Decide between interpolation methods of ‘linear’, ‘nearest’, ‘nearest-up’, ‘zero’, ‘slinear’, ‘quadratic’,’cubic’, ‘previous’, or ‘next’, by default “cubic”

  • window_width (float | None) – window width around each NaN to use for interpolation fitting, by default None

  • extrapolate (bool)

  • fill_value (tuple[float, float] | str | None)

Returns:

the survey dataframe with NaN’s filled in the specified columns

Return type:

DataFrame | GeoDataFrame