Skip to content

plot_lithology_and_thermcon API Reference

geoloop.lithology.plot_lithology.plot_lithology_and_thermcon

plot_lithology_and_thermcon(
    litho_ds: Dataset,
    kx_plotting_base: ndarray,
    interp_obj: StratInterpolator,
    kx_plotting_max: ndarray,
    kx_plotting_min: ndarray,
    litho_h5path: str | Path,
    out_dir: Path,
) -> None

Create and save a combined lithology "layer-cake" plot with thermal conductivity profiles plotted alongside.

The main panel shows lithology as vertically stacked colored bands (mixed color when two lithologies are present). A narrow side panel shows horizontally stacked bars for lithology fractions. Thermal conductivity curves are plotted on a twin x-axis (using the internal grid from the StratInterpolator).

Parameters:

Name Type Description Default
litho_ds Dataset

Dataset containing fields depth, lithology type a lithology_a, lithology type b lithology_b, and the fraction of type a lithology_a_fraction.

required
kx_plotting_base ndarray

Fine-grid, interpolated base-case thermal conductivity values (aligned with interp_obj.zp).

required
interp_obj StratInterpolator

Interpolator object; used for the internal z-grid (zp) and interpolation.

required
kx_plotting_max ndarray

Fine-grid, interpolated maximum thermal conductivity values.

required
kx_plotting_min ndarray

Fine-grid, interpolated minimum thermal conductivity values.

required
litho_h5path str | Path

Path to the source lithology .h5 file (used to build output filename).

required
out_dir Path

Directory where the figure will be written.

required

Returns:

Type Description
None