hydromt.DataArray.raster.reclassify#

DataArray.raster.reclassify(reclass_table: ~pandas.core.frame.DataFrame, method: str = 'exact', logger=<Logger hydromt.raster (WARNING)>)#

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