omfpandas.utils.pandas_utils.create_test_blockmodel
- omfpandas.utils.pandas_utils.create_test_blockmodel(shape, block_size, corner, is_tensor=False)[source]
Create a test blockmodel DataFrame.
- Parameters:
shape (
tuple
[int
,int
,int
]) – Shape of the block model (x, y, z).block_size (
tuple
[float
,float
,float
]) – Size of each block (x, y, z).corner (
tuple
[float
,float
,float
]) – The lower left (minimum) corner of the block model.is_tensor – If True, create a tensor block model. Default is False, which creates a regular block model. The MultiIndex levels for a regular model are x, y, z. For a tensor model they are x, y, z, dx, dy, dz. The tensor model created is a special case where dx, dy, dz are the same for all blocks.
- Return type:
DataFrame
Returns: pd.DataFrame: DataFrame containing the block model data.