invert4geom.DatasetAccessorInvert4Geom.regional_trend#
- DatasetAccessorInvert4Geom.regional_trend(trend, 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 a polynomial trend to the gravity misfit using
verde.Trend.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:
trend (
int) â order of the polynomial trend to fit to the dataregional_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
- Return type: