xrspatial.local.rank

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

Calculates the rank of raster dataset on a cell-by-cell basis. The output value is assigned based on the reference data variable rank.

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

  • ref_var (string) – The reference variable name.

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

Returns

final_arr

Return type

xarray.DataArray

References