invert4geom.DatasetAccessorInvert4Geom.forward_gravity#
- DatasetAccessorInvert4Geom.forward_gravity(layer, name='forward_gravity', field='g_z', progressbar=False, **kwargs)[source]#
Calculate the forward gravity of the model at each point of the gravity grid. Add the calculated gravity effect as a new dataset variable.
- Parameters:
layer (
Dataset) โ a prism or tesseroid layername (
str) โ Name to assigned the variable for the calculated gravity, by default โforward_gravityโfield (
str) โ Choose which gravitational field to be calculated, by default โg_zโ which is the downward acceleration.progressbar (
bool) โ Display a progress bar of the calculation, by default Falsekwargs (
Any) โ Additional keyword arguments to pass toharmonica.DatasetAccessorPrismLayer.gravityorharmonica.DatasetAccessorTesseroidLayer.gravitydepending on the model type.
- Return type: