StatsAnalyzer#

class StatsAnalyzer[source]#

Bases: Analyzer

Compute imagery statistics of scenes.

__init__(stats_uri: str | None = None, sample_prob: float = 0.1, chip_sz: int = 300, nodata_value: float | None = 0)[source]#
Parameters:
  • stats_uri (str | None) –

  • sample_prob (float) –

  • chip_sz (int) –

  • nodata_value (float | None) –

Methods

__init__([stats_uri, sample_prob, chip_sz, ...])

compute_stats(scenes)

process(scenes, tmp_dir)

Process scenes and save result.

__init__(stats_uri: str | None = None, sample_prob: float = 0.1, chip_sz: int = 300, nodata_value: float | None = 0)[source]#
Parameters:
  • stats_uri (str | None) –

  • sample_prob (float) –

  • chip_sz (int) –

  • nodata_value (float | None) –

compute_stats(scenes: Iterable[Scene]) RasterStats[source]#
Parameters:

scenes (Iterable[Scene]) –

Return type:

RasterStats

process(scenes: Iterable[Scene], tmp_dir: str) None[source]#

Process scenes and save result.

Parameters:
Return type:

None