imod.msw.MetaSwapModel.regrid_like#
- MetaSwapModel.regrid_like(mf6_regridded_dis: StructuredDiscretization, regrid_cache: RegridderWeightsCache | None = None) MetaSwapModel [source]#
Creates a model by regridding the packages of this model to another discretization. It regrids all the arrays in the package using the default regridding methods. At the moment only regridding to a different planar grid is supported, meaning
target_grid
has different"x"
and"y"
or differentcell2d
coords.- Parameters:
mf6_regridded_dis (StructuredDiscretization) – Modflow6 Discretization with same discretization as the one we want to regrid the package to.
regrid_cache (RegridderWeightsCache, optional) – stores regridder weights for different regridders. Can be used to speed up regridding, if the same regridders are used several times for regridding different arrays.
- Returns:
A model with similar packages to the input model, and with all the
data-arrays regridded to another discretization, similar to the one used
in input argument “mf6_regridded_dis”