airbornegeo.update_intersections_with_eq_sources#
- update_intersections_with_eq_sources(data, *, fitted_equivalent_sources, data_column, groupby_column='line')[source]#
At each theoretical intersection point, replace the interpolated field value with a value predected by the fitted equivalent sources for the line, at the x,y coordinate of the intersection point, and the higher of the two lines’ elevations. This allows the cross-over mistie value to be comparing the field values at the same point in 3D space, not 2D space, due to different flight heights.
- Parameters:
data (
DataFrame|GeoDataFrame) – dataframe containing the data to updatefitted_equivalent_sources (
dict) – a dictionary with keys of line names and values of fitted equivalent sources for each line, which can be created using the function eq_sources_1ddata_column (
str) – name of the column containing the field values to update at the intersection points, this should be the same as the column that use used as ‘data_column’ when fitting the equivalent sources for each line with eq_sources_1d.groupby_column (
str)
- Returns:
the updated field values at the intersection points, which can be added to the dataframe as a new column or used to replace the existing values in the dataframe.
- Return type: