imod.mf6.regrid.RiverRegridMethod#

class imod.mf6.regrid.RiverRegridMethod(stage: Tuple[RegridderType, str] | Tuple[RegridderType] = (RegridderType.OVERLAP, 'mean'), conductance: Tuple[RegridderType, str] | Tuple[RegridderType] = (RegridderType.RELATIVEOVERLAP, 'conductance'), bottom_elevation: Tuple[RegridderType, str] | Tuple[RegridderType] = (RegridderType.OVERLAP, 'mean'), concentration: Tuple[RegridderType, str] | Tuple[RegridderType] = (RegridderType.OVERLAP, 'mean'), infiltration_factor: Tuple[RegridderType, str] | Tuple[RegridderType] = (RegridderType.OVERLAP, 'mean'))[source]#

Object containing regridder methods for the imod.mf6.River package. This can be provided to the regrid_like method to regrid with custom settings.

Parameters:
  • stage (tuple, default (RegridderType.OVERLAP, "mean"))

  • conductance (tuple, default (RegridderType.RELATIVEOVERLAP, "conductance"))

  • bottom_elevation (tuple, default (RegridderType.OVERLAP, "mean"))

  • concentration (tuple, default (RegridderType.OVERLAP, "mean"))

Examples

Regrid with custom settings:

>>> regrid_method = RiverRegridMethod(stage=(RegridderType.BARYCENTRIC,))
>>> riv.regrid_like(target_grid, RegridderWeightsCache(), regrid_method)

The RegridderType.OVERLAP and RegridderType.RELATIVEOVERLAP require an extra method as string.

>>> regrid_method = RiverRegridMethod(stage=(RegridderType.OVERLAP, "max",))
__init__(*args: Any, **kwargs: Any) None#

Methods

__init__(*args, **kwargs)

asdict()

Attributes

bottom_elevation

concentration

conductance

infiltration_factor

stage