imod.mf6.regrid.ConstantHeadRegridMethod#
- class imod.mf6.regrid.ConstantHeadRegridMethod(head: Tuple[RegridderType, str] | Tuple[RegridderType] = (RegridderType.OVERLAP, 'mean'), concentration: Tuple[RegridderType, str] | Tuple[RegridderType] = (RegridderType.OVERLAP, 'mean'), ibound: Tuple[RegridderType, str] | Tuple[RegridderType] = (RegridderType.OVERLAP, 'mode'))[source]#
Object containing regridder methods for the
imod.mf6.ConstantHeadpackage. This can be provided to theregrid_likemethod to regrid with custom settings.- Parameters:
head (tuple, default (RegridderType.OVERLAP, "mean"))
concentration (tuple, default (RegridderType.OVERLAP, "mean"))
Examples
Regrid with custom settings:
>>> regrid_method = ConstantHeadRegridMethod(head=(RegridderType.BARYCENTRIC,)) >>> chd.regrid_like(target_grid, RegridderWeightsCache(), regrid_method)
The RegridderType.OVERLAP and RegridderType.RELATIVEOVERLAP require an extra method as string.
>>> regrid_method = ConstantHeadRegridMethod(head=(RegridderType.OVERLAP, "max",))
- __init__(*args: Any, **kwargs: Any) None#
Methods
__init__(*args, **kwargs)asdict()Attributes
concentrationheadibound