imod.msw.MetaSwapModel.from_imod5_data#

classmethod MetaSwapModel.from_imod5_data(imod5_data: Imod5DataDict, target_dis: StructuredDiscretization, times: list[datetime])[source]#

Construct a MetaSWAP model from iMOD5 data in the CAP package, loaded with the imod.formats.prj.open_projectfile_data() function.

Parameters:
  • imod5_data (dict) – Dictionary with iMOD5 data. This can be constructed from the imod.formats.prj.open_projectfile_data() method.

  • target_dis (imod.mf6.StructuredDiscretization) – Target discretization, cells where MODLOW6 is inactive will be inactive in MetaSWAP as well.

  • times (list[datetime]) – List of datetimes, will be used to set the output control times. Is also used to infer the starttime of the simulation.

Returns:

MetaSWAP model imported from imod5 data.

Return type:

MetaSwapModel