airbornegeo.eq_sources_1d#
- eq_sources_1d(data, *, data_column, damping, depth='default', block_size=None, groupby_column=None, progressbar=True)[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 Noneprogressbar (
bool) β Show progress bar for each group, by default True
- 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