Zonalstats.with_chart

Zonalstats.with_chart(chart_file: str | None = None, geometry_index: str = 'ID', display: bool = False)[source]

Set up the charting capability

Parameters:
  • chart_file (str, optional, default=None) – If not None, generate a chart with the statistics and saves it to str

  • geometry_index (str, optional, default='ID') – Name of the index in the geometry file

  • display (bool, optional, default=False) – If true, display the chart with the statistics

Returns:

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

Return type:

eolab.georastertools.Zonalstats