pycsamt.metadata.rocks#

Classes

RockProperties()

Access and query geological rock metadata:

class pycsamt.metadata.rocks.RockProperties[source]#

Bases: object

Access and query geological rock metadata:
  • resistivity ranges

  • plotting hatch patterns

Examples

>>> rp = RockProperties()
>>> rp.get_resistivity("shale")
[50.12, 32.0]
>>> pattern, color = rp.get_pattern("shale")
"=", (0.0, 0.0, 0.7)
property resistivity_ranges: dict[str, list[float]][source]#

All resistivity ranges keyed by rock name.

property hatch_patterns: dict[str, tuple[str, tuple[float, float, float]]][source]#

All hatch patterns keyed by rock name.

get_resistivity(rock)[source]#

Return [max, min] resistivity for a given rock.

Raises KeyError if rock not found.

Parameters:

rock (str)

Return type:

list[float]

get_pattern(rock)[source]#

Return (hatch, color) tuple for a given rock.

Raises KeyError if rock not found.

Parameters:

rock (str)

Return type:

tuple[str, tuple[float, float, float]]

find_matching_rocks(keyword)[source]#

Return list of rock names containing keyword (case‑insensitive).

Parameters:

keyword (str)

Return type:

list[str]