Skip to main content

KrigingDiagnostics

GitHub source

KrigingDiagnostics

evo.compute.tasks.geostatistics.kriging.KrigingDiagnostics

Optional per-location diagnostics written alongside the kriging estimate.

Each field selects one diagnostic and says where to write it on the target object. Only the diagnostics you set are computed; the rest are left out entirely.

Every field accepts:

  • True — create an attribute using the Leapfrog-aligned recommended name from :data:RECOMMENDED_DIAGNOSTIC_NAMES (for example KV for kriging_variance).
  • a str — create an attribute with that name.
  • a typed attribute from the target object — update it if it already exists, otherwise create it.
  • a :class:~evo.compute.tasks.common.CreateAttribute or :class:~evo.compute.tasks.common.UpdateAttribute for full control.

Every output of a kriging task writes to its own attribute, so each diagnostic name must differ from the estimate's attribute name and from every other diagnostic.

An existing attribute must be able to hold the diagnostic's values: boolean for valid, integer for the num_* counts, and floating-point for the rest.

Example::

>>> diagnostics = KrigingDiagnostics(
... kriging_variance=True, # creates "KV"
... num_samples="sample_count", # creates "sample_count"
... slope_of_regression=block_model.attributes["SoR"], # updates if it exists
... )

valid​

valid: CreateAttribute | UpdateAttribute | None = None

Whether each target location's neighbourhood satisfied the search constraints.

kriging_variance​

kriging_variance: CreateAttribute | UpdateAttribute | None = None

The kriging variance (estimation uncertainty).

slope_of_regression​

slope_of_regression: CreateAttribute | UpdateAttribute | None = None

The slope of regression, a diagnostic for conditional bias.

kriging_efficiency​

kriging_efficiency: CreateAttribute | UpdateAttribute | None = None

The proportion of point or intra-block variance explained by the kriging weights.

kriging_mean​

kriging_mean: CreateAttribute | UpdateAttribute | None = None

The GLS mean for ordinary kriging, or the supplied constant mean for simple kriging.

num_samples​

num_samples: CreateAttribute | UpdateAttribute | None = None

The number of data samples used in the estimate.

num_drillholes​

num_drillholes: CreateAttribute | UpdateAttribute | None = None

The number of distinct drillholes contributing to the estimate.

Requires a downhole intervals source object.

num_duplicates​

num_duplicates: CreateAttribute | UpdateAttribute | None = None

The number of duplicate sample locations used in the estimate.

num_equidistant​

num_equidistant: CreateAttribute | UpdateAttribute | None = None

A hint of how many other samples could have replaced the last returned sample because they were the same distance from the target location. Counted after searching and before clipping to the maximum number of samples.

sum_weights​

sum_weights: CreateAttribute | UpdateAttribute | None = None

The sum of kriging weights applied to data samples.

sum_positive_weights​

sum_positive_weights: CreateAttribute | UpdateAttribute | None = None

The sum of positive kriging weights applied to data samples.

sum_negative_weights​

sum_negative_weights: CreateAttribute | UpdateAttribute | None = None

The sum of negative kriging weights applied to data samples (zero when negative-weight removal is enabled).

min_distance​

min_distance: CreateAttribute | UpdateAttribute | None = None

The minimum isotropic Euclidean distance from the target location to any neighbour.

mean_distance​

mean_distance: CreateAttribute | UpdateAttribute | None = None

The mean isotropic Euclidean distance from the target location to all neighbours.

aniso_min_distance​

aniso_min_distance: CreateAttribute | UpdateAttribute | None = None

The minimum anisotropic (ellipsoid-space) distance from the target location to any neighbour.

aniso_mean_distance​

aniso_mean_distance: CreateAttribute | UpdateAttribute | None = None

The mean anisotropic (ellipsoid-space) distance from the target location to all neighbours.

Was this page helpful?