hydromt.gis.DataArray.raster.reclassify#

gis.DataArray.raster.reclassify(reclass_table: DataFrame, method: str = 'exact')#

Reclass columns in df from raster map (DataArray).

Parameters:
  • reclass_table (pd.DataFrame) – Tables with parameter names and values in columns and values in obj as index.

  • method (str, optional) – Reclassification method. For now only ‘exact’ for one-on-one cell value mapping.

  • logger – The logger to be used. If no logger is provided the default one will beused.

Returns:

ds_out – Output dataset with a variable for each column in reclass_table.

Return type:

xr.Dataset