geost.accessor.GeostFrame.get_cumulative_thickness#

GeostFrame.get_cumulative_thickness(column: str, values: str | list[str] | slice) Series[source]#

Get the cumulative thickness of layers where a column contains a specified search value or values, or falls within a specified range.

Parameters:
  • column (str) – Name of column that must contain the search value or values.

  • values (str | List[str] | slice) – Search value or values in the column to find the cumulative thickness for. In case of numerical values, a slice can be used to specify a range of values to search for, see example below.

Returns:

Series containing the cumulative thickness for each survey “nr” in the data.

Return type:

pd.Series

Examples

Get the cumulative thickness of the layers with lithology “K” in the column “lith” use:

>>> thickness = data.gst.get_cumulative_thickness("lith", "K")

Or get the cumulative thickness for multiple selection values. This calculates the cumulative thickness of the combined values:

>>> thickness = data.gst.get_cumulative_thickness("lith", ["K", "Z"])

In case of numerical values, a slice can be used to specify a range of values to search for. For example, to get the cumulative thickness of layers with a cone resistance (“qc”) between 15 and 20 MPa:

>>> thickness = data.gst.get_cumulative_thickness("qc", slice(15, 20))