watex.utils.geotools.get_thick_from_values#
- watex.utils.geotools.get_thick_from_values(thick, depth=None, surface_value=0.0, mode='strict', raise_warn=Ellipsis)[source]#
Compute thickness when only thick is given.
Here it is respectful of tthe <t-value> data kind. For t-range data, refer to
get_thick_from_range().- Parameters:
thick (List,) – The list of layer thickness.
depth (float, optional) – The maximum depth of the borehole. Useful when it comes to describes the stratigraphic log in the borehole. However, it is not necessary when it comes for geochemistry sampling.
surface_value (float, default=0.) – The level of the the sea by default. It correspond to the depth of the roof (top) of the first layers.
mode (str, default='strict') – Control the layer thickness ranking. It can be [‘soft’|’strict’]. Any other value should be in ‘soft’ mode. Here the
strictmode yields an error when the total sum of the thickness is greater than the given depth. However insoftmode, the depth is merely replaced by the total thick depth.raise_warn (bool, default=False) – warn user when the given depth is less than the total layer thicknesses.
- Returns:
dh_from, dh_to , thickness –
dh_from: the array of layer roof (top) depth values
dh_to: The array of layer wall ( bottom) depth values
thickness: The calculated thickness of each layer.
- Return type:
Tuple of Arraylike
Examples
>>> from watex.utils.geotools import _parse_only_thick >>> _parse_only_thick ([12 , 20, 26, 50 ], depth = 205 ) Out[63]: (array([ 0., 12., 32., 58., 108.]), array([ 12., 32., 58., 108., 205.]), array([12., 20., 26., 50., 97.]))