xrspatial.local.equal_frequency

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

Calculates the number of times the raster dataset has a equal frequency on a cell-by-cell basis.

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