invert4geom.DatasetAccessorInvert4Geom.regional_eq_sources#
- DatasetAccessorInvert4Geom.regional_eq_sources(depth='default', damping=None, block_size=None, grav_obs_height=None, cv=False, weights_column=None, cv_kwargs=None, regional_shift=0, mask_column=None, reverse_regional_residual=False)[source]#
Calculate the gravity misfit as the difference between dataset variables
gravity_anomalyandforward_gravity. Then separate the misfit into regional and residual components whereresidual = misfit - regional.Approximate the regional field by fitting deep equivalent sources to the the gravity misfit, using
harmonica.EquivalentSources. During fitting of the equivalent sources, the source depth can be chosen withdepth, the results can be smoothed withdamping, the gravity points can block-reduced withblock_size, and to simulate upward continuation, the gravity observation height can be set withgrav_obs_height. Instead of specifying the equivalent source parametersdepthanddamping, optimal values can be chosen through a cross-validated optimization routine by settingcvto True, and providingcv_kwargswhich is passed to the functionoptimize_eq_source_params.The resulting regional field can be shifted with
regional_shift, and the calculated residual field can be multiplied by the values inmask_column.The following new variables are added to the dataset:
misfit,reg,res,starting_forward_gravity,starting_misfit,starting_reg,starting_res- Parameters:
depth (
float|str) â depth of each source relative to the data elevationdamping (
float|None) â smoothness to impose on estimated coefficients, by default Noneblock_size (
float|None) â block reduce the data to speed up, by default Nonegrav_obs_height (
float|None) â Observation height to use predicting the eq sources, by default None and will use the data height from grav_ds.cv (
bool) â use cross-validation to find the best equivalent source parameters, by default False, provide dictionarycv_kwargswhich is passed tooptimize_eq_source_paramsand can contain:n_trials,damping_limits,depth_limits,block_size_limits,sampler,plot,progressbar,parallel,dtype, ordelayed.weights_column (
str|None) â column name for weighting values of each gravity point.regional_shift (
float) â shift to add to the regional field, by default 0mask_column (
str|None) â Name of optional dataset variable with values to multiply the calculated residual gravity field by, should have values of 1 or 0, by default None.reverse_regional_residual (
bool) â if True, reverse the regional and residual fields after calculation, by default False