parq_blockmodel.reblocking.reblocking

parq_blockmodel.reblocking.reblocking#

reblocking.py

Module for reblocking operations on block models.

Functions

downsample_blockmodel

Downsample a block model to a coarser grid with specified aggregation methods for each attribute. This function supports downsampling of both categorical and numeric attributes. :type blockmodel: :param blockmodel: ParquetBlockModel instance. :type new_block_size: :param new_block_size: tuple of floats (dx, dy, dz) for the new block size. :type aggregation_config: :param aggregation_config: dict mapping attribute names to aggregation methods. Use basis for weighted_mean configurations.

upsample_blockmodel

Upsample a block model to a finer grid with explicit per-attribute methods.