parq_blockmodel.reblocking.reblocking.upsample_blockmodel#
- parq_blockmodel.reblocking.reblocking.upsample_blockmodel(blockmodel, new_block_size, upsample_config=None, interpolation_config=None)[source]#
Upsample a block model to a finer grid with explicit per-attribute methods. This function supports both continuous interpolation and class-preserving assignment methods.
- Parameters:
blockmodel – ParquetBlockModel instance.
new_block_size – tuple of floats (dx, dy, dz) for the new block size.
upsample_config – dict mapping each attribute name to one method (“linear”, “nearest”, “mode”, or “parent”).
interpolation_config – deprecated alias of
upsample_config.
Example
- upsample_config = {
‘grade’: ‘linear’, ‘density’: ‘linear’, ‘dry_mass’: ‘linear’, ‘volume’: ‘linear’, ‘rock_type’: ‘mode’
}
- Returns:
A new ParquetBlockModel instance with the upsampled grid.
- Return type: