invert4geom.DatasetAccessorInvert4Geom.regional_constant#
- DatasetAccessorInvert4Geom.regional_constant(constant=None, constraints_df=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 with a constant value supplied with
constant. Ifconstraints_dfis supplied, the constant value will instead be the median misfit value at the constraint points.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:
constant (float) â value to use for the regional field.
constraints_df (pandas.DataFrame) â a dataframe of constraint points with columns
eastingandnorthing(orlongitudeandlatitude).regional_shift (float, optional) â shift to add to the regional field, by default 0
mask_column (str | None, optional) â 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, optional) â if True, reverse the regional and residual fields after calculation, by default False
- Return type: