interpret_with_context_profile

petrophys.reporting.interpret_with_context_profile

interpret_with_context_profile(file_path, context_profile, *, tops_file=None)[source]

Interpret one well of a context package as the package’s context interprets it.

The well’s raw LAS goes through its profile’s preparation and calculations, as export_context_profile() runs them, so the statistics of the returned curves over a context group’s depths are that group’s context statistics. Nothing is written.

Parameters:
  • file_path (str or Path) – The well’s raw LAS file from the package’s delivery (for COSTA, e.g. the bundled copy petrophys.sample("HW-10")).

  • context_profile (str) – "geolink", "geolink_train", "costa" or "danish" (or their _v1 names). The well must belong to the profile’s package.

  • tops_file (str or Path, optional) – Required by the Danish profile: its tops workbook, which supplies the lithology of wells without a lithology log. The other profiles’ tops only group the context.

Returns:

The interpreted well (result.well) after the context’s value-range QC and dependent-curve recomputation. result.steps_executed holds every calculation: the profile’s preparation (preparation_* steps; COSTA’s clay volume, carbonate volumes and lithology, permeability and any core curves it adds are under the workflow’s step names), the workflow’s steps, then context_export_finalization (where it changed curves), context_value_range_qc and context_dependent_curve_recompute. result.context_profile names the profile; result.preparatory_steps and result.post_workflow_steps keep the package’s own trace entries.

Return type:

DynamicWorkflowResult