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.- Parameters:
path (Path to mete_grid.inp file)
Methods
__init__
(path)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.get_non_grid_data
(grid_names)This function copies the attributes of a dataset that are scalars, such as options.
get_regrid_methods
()is_regridding_supported
()isel
()regrid_like
(target_grid, regrid_context[, ...])sel
()write
(directory, *args)Write MetaSWAP package to its corresponding fixed format file.
write_dataframe_fixed_width
(file, dataframe)Write dataframe to fixed format file.
Attributes
auxiliary_data_fields
dataset