parq_blockmodel.utils.demo_block_model

parq_blockmodel.utils.demo_block_model#

Functions

add_gradient_ellipsoid_grade

Add a gradient ellipsoid grade to the block model DataFrame.

create_demo_blockmodel

Create a synthetic block model DataFrame or Parquet file.

create_toy_blockmodel

Create a toy blockmodel with a gradient ellipsoid grade. :type shape: :param shape: Shape of the block model (nx, ny, nz). :type block_size: :param block_size: Size of each block (dx, dy, dz). :type corner: :param corner: The lower left (minimum) corner of the block model. :type axis_azimuth: :param axis_azimuth: The azimuth angle of the block model axis in degrees. :type axis_dip: :param axis_dip: The dip angle of the block model axis in degrees. :type axis_plunge: :param axis_plunge: The plunge angle of the block model axis in degrees. :type deposit_bearing: :param deposit_bearing: The azimuth angle of the deposit in degrees. :type deposit_dip: :param deposit_dip: The dip angle of the deposit in degrees. :type deposit_plunge: :param deposit_plunge: The plunge angle of the deposit in degrees. :type grade_name: :param grade_name: The name of the column to store the grade values. :type grade_min: :param grade_min: The minimum grade value. :type grade_max: :param grade_max: The maximum grade value. :type deposit_center: :param deposit_center: The center of the deposit (x, y, z). :type deposit_radii: :param deposit_radii: The radii of the deposit (rx, ry, rz). :type noise_std: float :param noise_std: Absolute standard deviation of Gaussian noise added to grades. :type noise_rel: float | None :param noise_rel: Relative standard deviation expressed as a fraction of (grade_max - grade_min). Mutually exclusive with noise_std. :type noise_seed: int | None :param noise_seed: Optional random seed for reproducible Gaussian noise. :type parquet_filepath: Path :param parquet_filepath: The file path to save the DataFrame as a Parquet file. If None, returns a DataFrame.