geost.accessor.GeostFrame.calculate_mid_depth#

GeostFrame.calculate_mid_depth(relative_to_reference: bool = False) → Series[source]#

Calculate the mid depths of layers. In case of layered data this is the middle between the layer’s top and bottom depth. In case of discrete data the method assumes that the depths of layers are bottom depths and the result is middle between consecutive layers.

Parameters:

relative_to_reference (bool, optional) – If True, mid depths are calculated relative to a reference depth (e.g. NAP). The default is False.

Returns:

Mid depth of each layer.

Return type:

pd.Series

Examples

>>> result = df.survey.calculate_mid_depth()
>>> result = df.survey.calculate_mid_depth(relative_to_reference=True)