imod.mf6.regrid.NodePropertyFlowRegridMethod#
- class imod.mf6.regrid.NodePropertyFlowRegridMethod(icelltype: Tuple[RegridderType, str] | Tuple[RegridderType] = (RegridderType.OVERLAP, 'mode'), k: Tuple[RegridderType, str] | Tuple[RegridderType] = (RegridderType.OVERLAP, 'geometric_mean'), k22: Tuple[RegridderType, str] | Tuple[RegridderType] = (RegridderType.OVERLAP, 'geometric_mean'), k33: Tuple[RegridderType, str] | Tuple[RegridderType] = (RegridderType.OVERLAP, 'harmonic_mean'), angle1: Tuple[RegridderType, str] | Tuple[RegridderType] = (RegridderType.OVERLAP, 'mean'), angle2: Tuple[RegridderType, str] | Tuple[RegridderType] = (RegridderType.OVERLAP, 'mean'), angle3: Tuple[RegridderType, str] | Tuple[RegridderType] = (RegridderType.OVERLAP, 'mean'), rewet_layer: Tuple[RegridderType, str] | Tuple[RegridderType] = (RegridderType.OVERLAP, 'mean'))[source]#
Object containing regridder methods for the
imod.mf6.NodePropertyFlow
package. This can be provided to theregrid_like
method to regrid with custom settings.- Parameters:
icelltype (tuple, defaults (RegridderType.OVERLAP, "mean"))
k (tuple, defaults ( RegridderType.OVERLAP,"geometric_mean"))
k22 (tuple, defaults (RegridderType.OVERLAP,"geometric_mean"))
k33 (tuple, defaults (RegridderType.OVERLAP,"harmonic_mean"))
angle1 (tuple, defaults (RegridderType.OVERLAP, "mean"))
angle2 (tuple, defaults (RegridderType.OVERLAP, "mean"))
angle3 (tuple, defaults (RegridderType.OVERLAP, "mean"))
rewet_layer (tuple, defaults (RegridderType.OVERLAP, "mean"))
Examples
Regrid with custom settings:
>>> regrid_method = NodePropertyFlowRegridMethod(k=(RegridderType.BARYCENTRIC,)) >>> npf.regrid_like(target_grid, RegridderWeightsCache(), regrid_method)
The RegridderType.OVERLAP and RegridderType.RELATIVEOVERLAP require an extra method as string.
>>> regrid_method = NodePropertyFlowRegridMethod(k=(RegridderType.OVERLAP, "max",))
- __init__(*args: Any, **kwargs: Any) None #
Methods
__init__
(*args, **kwargs)asdict
()Attributes
angle1
angle2
angle3
icelltype
k
k22
k33
rewet_layer