xrspatial.local.highest_position

xrspatial.local.highest_position(raster, data_vars=None)[source]

Calculates the data variable index of the highest value on a cell-by-cell basis.

Parameters
  • raster (xarray.Dataset) – 2D or 3D labelled array.

  • data_vars (list of string) – Variable name list.

Returns

final_arr

Return type

xarray.DataArray

References