imod.msw.GridData.generate_index_array#

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

This method is kept for backward compatibility, but will be removed in future versions and will thus throw a deprecation warning. Use imod.msw.GridData.generate_isactive_svat_arrays() instead.

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

Returns:

isactive array and svat grid. The isactive array is a 1D array with which cells are active. The svat grid is a 2D array with the SVAT numbers for each cell.

Return type:

tuple[np.ndarray, xr.DataArray]