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)

__init__(unsaturated_database: Path | str, settings: dict[str, Any] | None = None)[source]#

Methods

__init__(unsaturated_database[, settings])

clear()

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])

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[, ...])

setdefault(k[,d])

update([E, ]**F)

If E present and has a .keys() method, does: for k in E: 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).