parq_tools.utils.demo_block_model.create_demo_blockmodel
- parq_tools.utils.demo_block_model.create_demo_blockmodel(shape=(3, 3, 3), block_size=(1.0, 1.0, 1.0), corner=(0.0, 0.0, 0.0), parquet_filepath=None)[source]
Create a demo blockmodel DataFrame or Parquet file.
- 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.parquet_filepath (
Path) – If provided, save the DataFrame to this Parquet file and return the file path.
- Return type:
DataFrame|Path- Returns:
DataFrame or Parquet file path (Path)