imod.msw.MeteoGridCopy#
- class imod.msw.MeteoGridCopy(path: Path | str)[source]#
Class to copy existing
mete_grid.inp, which contains the meteorological grid data. Next to a MeteoGridCopy instance, instances of PrecipitationMapping and EvapotranspirationMapping are required as well to specify meteorological information to MetaSWAP.This is useful for large meteorological datasets, for which a
mete_grid.inpalready has been generated, which is common in existing iMOD5 model databases.- Parameters:
path (Path to mete_grid.inp file)
Methods
__init__(path)clip_box([time_min, time_max, x_min, x_max, ...])Clip a package by a bounding box (time, y, x).
from_imod5_data(imod5_data)Construct a MetaSWAP MeteoGridCopy package from iMOD5 data in the CAP package, loaded with the
imod.formats.prj.open_projectfile_data()function.Returns the default regrid methods for this package.
regrid_like(target_grid, regrid_cache[, ...])Creates a package of the same type as this package, based on another discretization.
write(directory, *args)Write MetaSWAP package to its corresponding fixed format file.
Attributes
auxiliary_data_fieldsdataset