context_group_statistics

petrophys.reporting.context_group_statistics

context_group_statistics(result, top, bottom, *, tolerance=5e-5)[source]

Statistics of one context group, from a context-profile interpretation.

Computes, for the samples of result.well from top to bottom, what the context’s six category files of that group hold under statistics: the interpreted curves after the context’s QC and, per category, the curves that category’s analysis derives within the group (indicators, gradients, completeness, and MHI, BVW, RQI, FZI or PHI_NORM where the group has none). These depend on the group’s samples, so they are computed per group, as the context does.

Parameters:
  • result (DynamicWorkflowResult) – From petrophys.interpret(path, context_profile=...) or interpret_with_context_profile().

  • top (float) – The group’s depth window, e.g. start_depth and end_depth of the context file’s lithology_group_info, in the well’s depth unit.

  • bottom (float) – The group’s depth window, e.g. start_depth and end_depth of the context file’s lithology_group_info, in the well’s depth unit.

  • tolerance (float, default 5e-5) – Depths within this of the window belong to it; the context files round group depths to four decimals.

Returns:

{category: statistics} for the six categories.

Return type:

dict