eolearn.mask.mask_counting

Module for generating count masks

class eolearn.mask.mask_counting.ClassFrequencyTask(*args, **kwargs)[source]

Bases: eolearn.core.core_tasks.MapFeatureTask

Calculates frequencies of each provided class through the temporal dimension.

Parameters
  • input_feature (an object supported by the FeatureParser) – A source feature from which to read the values.

  • output_feature (an object supported by the FeatureParser) – An output feature to which to write the frequencies.

  • classes (a list of integers) – Classes of which frequencies to calculate.

map_method(feature)[source]

Map method being applied to the feature that calculates the frequencies.