lithology_in

petrophys.evaluation.net_pay.lithology_in

lithology_in(label, names)[source]

Whether a lithology label is one of the listed rock types.

A label belongs to a type when it is that type or its head noun is (the last word names the rock, earlier words modify it): CALCAREOUS SHALE is a shale and SHALY SANDSTONE a sandstone, so one list covers any naming scheme’s modifiers.

Examples

>>> lithology_in("calcareous shale", ["SHALE"]), lithology_in("SHALY SANDSTONE", ["SHALE"])
(True, False)
Parameters:
Return type:

bool