invert4geom.DatasetAccessorInvert4Geom#
- class DatasetAccessorInvert4Geom(ds)[source]#
A class which allows adding properties and methods as xarray dataset accessors.
- Parameters:
ds (
Dataset)
Methods
__init__(ds)add_density_correction(step)update the model dataset with the density corrections.
add_topography_correction(step)update the model dataset with the surface corrections.
forward_gravity(layer[, name, field, ...])Calculate the forward gravity of the model at each point of the gravity grid.
plot_anomalies([points, points_style, coast])plot gravity anomalies
plot_model(**kwargs)Use
pyvistato plot the prism model.plot_observed([coast])plot observed gravity
plot_regional_separation([points, ...])plot gravity misfit and estimate regional and residual components
regional_constant([constant, ...])Calculate the gravity misfit as the difference between dataset variables
gravity_anomalyandforward_gravity.regional_constraints(constraints_df[, ...])Calculate the gravity misfit as the difference between dataset variables
gravity_anomalyandforward_gravity.regional_constraints_cv(constraints_df[, ...])This is a convenience function to wrap
optimize_regional_constraint_point_minimization.regional_eq_sources([depth, damping, ...])Calculate the gravity misfit as the difference between dataset variables
gravity_anomalyandforward_gravity.regional_filter(filter_width[, filter_type, ...])Calculate the gravity misfit as the difference between dataset variables
gravity_anomalyandforward_gravity.regional_separation(method, **kwargs)Calculate the gravity misfit as the difference between dataset variables
gravity_anomalyandforward_gravity.regional_trend(trend[, regional_shift, ...])Calculate the gravity misfit as the difference between dataset variables
gravity_anomalyandforward_gravity.update_model_ds(style)apply the corrections (density or topography) and update the model tops, bottoms, topo, and densities.
Attributes
return the dataframe representation of the xarray dataset without nans
innerreturn only the inside region of the xarray dataset
return the dataframe representation of the inner region of the xarray dataset without nans
return only the model elements with a non-nan mask value
return the dataframe representation of the masked xarray dataset without nans