airbornegeo.eq_sources_1d#
- eq_sources_1d(data, *, data_column, damping, depth='default', block_size=None, groupby_column=None)[source]#
Fit a set of equivalent sources along 1 dimension. These fitted sources can then be used to predict the data at the intersection points, on a regular line spacing, or to upward continue the line. If groupby_column is provided, the source will be fit individually for each group,
- Parameters:
data (
DataFrame) – the dataframe containing the columns distance_along_line, grouby_column, data_column, and height.data_column (
str) – the column name for the data to fit.damping (
float) – the damping value to use in fitting the equivalent sourcesdepth (
float|str) – the source depths, by default “default”block_size (
float|None) – Block reduce the number of sources. This doesn’t block reduce the data, that should be done before with func::block_reduce, by default Nonegroupby_column (
str|None) – Column name to group by before fitting sources, by default None
- Returns:
a dictionary with a keys of each group name and a values of fitted equivalent sources, or if groupby_column is not provided, just a single fitted set of equivalent sources.
- Return type:
dict|EquivalentSources