Zonalstats.with_per_category

Zonalstats.with_per_category(category_file: str, category_index: str = 'Classe', category_labels_json: str | None = None)[source]

Set up the zonal stats computation per categories

Parameters:
  • category_file (str) – Name of the file containing the categories

  • category_index (str, optional, default='Classe') – Name of column containing the category value (if category_file is a vector)

  • category_labels_json (str, optional, default=None) – Name of json file containing the dict that associates category values to category names

Returns:

the current instance so that it is possible to chain the with… calls (fluent API)

Return type:

eolab.georastertools.Zonalstats