imod.msw.MetaSwapModel#
- class imod.msw.MetaSwapModel(unsaturated_database: Path | str, settings: dict[str, Any] | None = None)[source]#
Contains data and writes consistent model input files
- Parameters:
unsaturated_database (Path-like or str) – Path to the MetaSWAP soil physical database folder.
settings (dict)
Methods
__init__(unsaturated_database[, settings])clear()clip_box([time_min, time_max, x_min, x_max, ...])Clip a model by a bounding box (time, y, x).
copy()from_imod5_data(imod5_data, target_dis, times)Construct a MetaSWAP model from iMOD5 data in the CAP package, loaded with the
imod.formats.prj.open_projectfile_data()function.fromkeys(iterable[, value])get(k[,d])get_pkgkey(pkg_type[, optional_package])Get the package key for a package of type
pkg_type.items()keys()pop(k[,d])If key is not found, d is returned if given, otherwise KeyError is raised.
popitem()as a 2-tuple; but raise KeyError if D is empty.
regrid_like(mf6_regridded_dis[, regrid_cache])Creates a model by regridding the packages of this model to another discretization.
setdefault(k[,d])update([E, ]**F)If E present and has a .keys() method, does: for k in E.keys(): D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k, v in F.items(): D[k] = v
values()write(directory, mf6_dis, mf6_wel[, validate])Write packages and simulation settings (para_sim.inp).