load_lithology_csv

petrophys.interpretation.lithology.load_lithology_csv

load_lithology_csv(filepath, top_col=None, bottom_col=None, lithology_col=None)[source]

Load lithology intervals from a CSV file.

Expected CSV format:

top,bottom,lithology
200.0,1500.0,clastic
1500.0,2200.0,carbonate
2200.0,3500.0,clastic

Column names are auto-detected (case-insensitive). Common variants are recognized: top/top_depth, bottom/bottom_depth/base, lithology/lith/rock_type.

Parameters:
  • filepath (str or Path) – Path to CSV file

  • top_col (str, optional) – Override column name for top depth

  • bottom_col (str, optional) – Override column name for bottom depth

  • lithology_col (str, optional) – Override column name for lithology

Returns:

Sorted by top depth

Return type:

list of LithologyInterval