geost.models.VoxelModel.most_common#

VoxelModel.most_common(variable: str) Dataset[source]#

Determine the “most common” value and corresponding thickness in a variable of a VoxelModel. This method calculates the mode (most frequently occurring value) along the depth (z) dimension for each horizontal location (x, y) in the model.

Parameters:

variable (str) – Name of the variable in the VoxelModel to calculate the most common value for.

Returns:

Xarray Dataset containing two DataArrays: - “most_common”: The most common value for each (x, y) location. - “thickness”: The thickness (in the same units as the vertical resolution) of the most common value at each (x, y) location.

Return type:

xr.Dataset