imod.prepare.rasterize_celltable#

imod.prepare.rasterize_celltable(table, column, like)[source]#

Rasterizes a table, such as produced by imod.prepare.spatial.celltable. Before rasterization, multiple values should be grouped and aggregated per cell. Values will be overwritten otherwise.

Parameters
  • like (xr.DataArray) –

  • table (pandas.DataFrame) – with columns: “row_index”, “col_index”

  • column (str, int, float) – column name of values to rasterize

Returns

rasterized

Return type

xr.DataArray