class imod.mf6.StructuredDiscretization(top, bottom, idomain, validate: bool = True)[source]#

Discretization information for structered grids is specified using the file. (DIS6) Only one discretization input file (DISU6, DISV6 or DIS6) can be specified for a model.

  • top (array of floats (xr.DataArray)) – is the top elevation for each cell in the top model layer.

  • bottom (array of floats (xr.DataArray)) – is the bottom elevation for each cell.

  • idomain (array of integers (xr.DataArray)) – Indicates the existence status of a cell. Horizontal discretization information will be derived from the x and y coordinates of the DataArray. If the idomain value for a cell is 0, the cell does not exist in the simulation. Input and output values will be read and written for the cell, but internal to the program, the cell is excluded from the solution. If the idomain value for a cell is 1, the cell exists in the simulation. if the idomain value for a cell is -1, the cell does not exist in the simulation. Furthermore, the first existing cell above will be connected to the first existing cell below. This type of cell is referred to as a “vertical pass through” cell.

  • validate ({True, False}) – Flag to indicate whether the package should be validated upon initialization. This raises a ValidationError if package input is provided in the wrong manner. Defaults to True.

__init__(top, bottom, idomain, validate: bool = True)[source]#


__init__(top, bottom, idomain[, validate])


clip_domain([layer, x, y])

Clip a variable along the specified dimensions.


from_file(path, **kwargs)

Loads an imod mf6 package from a file (currently only netcdf and zarr are supported).




Mask values outside of domain.


render(directory, pkgname, globaltimes, binary)


to_sparse(arrdict, layer)

Convert from dense arrays to list based input

write(directory, pkgname, globaltimes, binary)

write_binary_griddata(outpath, da, dtype)

write_blockfile(directory, pkgname, ...)

write_netcdf(directory, pkgname[, ...])

Write to netcdf.

write_text_griddata(outpath, da, dtype)