invert4geom.merged_stats

Contents

invert4geom.merged_stats#

merged_stats(results, plot=True, constraints_df=None, weight_by='residual', region=None)[source]#

Use the outputs of the function uncertainty.full_workflow_uncertainty_loop to calculate the cell-wise statistics of the inversion ensemble and plot the resulting mean and standard deviation of the ensemble.

Parameters:
  • results (tuple[Any]) – list of lists of inversion results output from the function uncertainty.full_workflow_uncertainty_loop

  • plot (bool) – show the resulting weighted mean and weighted standard deviation of the inversion ensemble, by default True

  • constraints_df (DataFrame | None) – dataframe of constraint points to use for weighting the cell-wise statistics and for plotting , by default None

  • weight_by (str) – choose to weight the cell-wise stats by either the RMS of the final residual gravity misfit of each inversion, or by the RMS between a priori topography measurements supplied by constraints_df and the inverted topography of each inversion, by default β€œresidual”

  • region (tuple[float, float, float, float] | None) – region to calculate statistics within, by default None

Returns:

Dataset with variables for the mean, standard deviation, weighted mean, and weighted standard deviation of the ensemble of inverted topographies.

Return type:

Dataset