read_lithology_intervals

petrophys.io.read_lithology_intervals

read_lithology_intervals(
source,
*,
columns=None,
well_name=None,
well=None,
depth_unit=None,
depth_reference=None,
datum=None,
sheet_name=None,
sep=None,
encoding='utf-8-sig',
)[source]

Read validated CSV/TSV/Excel/DataFrame intervals, preserving rock labels.

Required columns are top, bottom and lithology. Optional well/depth metadata use the same contract as read_formations. Columns maps canonical names to source headers; sheet_name and sep support vendor tables without guessing. Gaps remain gaps, while overlaps and invalid rows raise actionable errors. Unknown rock names are retained for display, never assigned a routing family.

Return type:

DataFrame