imod.mf6.regrid.RechargeRegridMethod#

class imod.mf6.regrid.RechargeRegridMethod(rate: Tuple[RegridderType, str] | Tuple[RegridderType] = (RegridderType.OVERLAP, 'mean'), concentration: Tuple[RegridderType, str] | Tuple[RegridderType] = (RegridderType.OVERLAP, 'mean'))[source]#

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

Parameters:
  • rate (tuple, defaults (RegridderType.OVERLAP, "mean"))

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

Examples

Regrid with custom settings:

>>> regrid_method = RechargeRegridMethod(rate=(RegridderType.BARYCENTRIC,))
>>> rch.regrid_like(target_grid, RegridderWeightsCache(), regrid_method)

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

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

Methods

__init__(*args, **kwargs)

asdict()

Attributes

concentration

rate