LithoDictionary
- class wellcad.com.LithoDictionary(dispatch)
A dictionary containing patterns used to represent lithologies.
You can find more information on your defined lithologies in your LithCAD library.
Example
>>> log = borehole.log("Lithology") >>> dict = log.litho_dictionary >>> dict.name 'Sst' >>> dict.nb_of_patterns 12
- is_pattern(code)
Checks if the dictionary contains a pattern with the specified code.
- Parameters:
code (
str) – The code of the pattern.- Returns:
True if successful, False otherwise.
- Return type:
bool
- litho_pattern(index_or_code)
Gets a pattern by index or by code.
- Parameters:
index_or_code (
intorstr) – The index or the code of the pattern- Returns:
The LithoPattern object.
- Return type:
- property name
The name of the dictionary.
- Type:
str
- property nb_of_patterns
The number of patterns in the dictionary.
- Type:
int