pyflwdir.FlwdirRaster.ucat_area#
- FlwdirRaster.ucat_area(idxs_out: ndarray, unit: Literal['m2', 'ha', 'km2', 'cell'] = 'cell') tuple[ndarray, ndarray][source]#
Return the high-resolution unit-catchment map and low-resolution cell areas.
- Parameters:
idxs_out (2D array of int) – Linear indices of unit-catchment outlet cells.
unit ({'m2', 'ha', 'km2', 'cell'}, optional) – Area units, by default ‘cell’.
- Returns:
ucat_map (2D array of int with self.shape) – Unit-catchment ID for each high-resolution cell.
ucat_area (2D array of float with idxs_out.shape) – Area of each low-resolution cell, in unit.