imod.msw.PrecipitationMapping.from_imod5_data#

classmethod PrecipitationMapping.from_imod5_data(imod5_data: Imod5DataDict) PrecipitationMapping[source]#

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

Opens first ascii grid in mete_grid.inp, which is used to construct mappings to svats. The grids should not change in dimension over time. No checks are done whether cells switch from inactive to active or vice versa.

Parameters:

imod5_data (Imod5DataDict) – iMOD5 data as returned by imod.formats.prj.open_projectfile_data()

Return type:

imod.msw.PrecipitationMapping