airbornegeo.update_intersections_with_eq_sources#
- update_intersections_with_eq_sources(data, *, fitted_equivalent_sources, data_column, line_column, distance_column, progressbar=True)[source]#
At each theoretical intersection point, replace the interpolated field value with a value predicted 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) โ 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_1dline_column (
str) โ Column containing the line / flight / segment names.distance_column (
str) โ Column containing the distance along line.data_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.progressbar (
bool) โ Show a progress bar over equivalent source segments, by default True.
- 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: