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 interpolateintersections (
DataFrame|GeoDataFrame) – Dataframe containing the intersection pointsto_interp (
list[str] |str) – specify which column to interpolate NaNs forinterp_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 Noneextrapolate (
bool)
- Returns:
the survey dataframe with NaN’s filled in the specified columns
- Return type:
DataFrame|GeoDataFrame