imod.msw.GridData.generate_index_array#

GridData.generate_index_array() tuple[ndarray, DataArray][source]#

Generate index array and svat grid to be used on other packages.

Returns:

Index array and svat grid. The index array is a 1D array with the index of the active cells. The svat grid is a 2D array with the SVAT numbers for each cell.

Return type:

tuple[np.ndarray, xr.DataArray]