SO2Calculator#

class patato.SO2Calculator(algorithm_id='', nan_invalid=False)#

Bases: SpatialProcessingAlgorithm

The SO2 calculator. This takes in unmixed data and produces SO2 data.

__init__(algorithm_id='', nan_invalid=False)[source]#

Methods

__init__([algorithm_id, nan_invalid])

add_child(child)

get_algorithm_id()

run(spatial_data, _, **kwargs)

Run the SO2 calculator.

run(spatial_data: UnmixedData, _, **kwargs)[source]#

Run the SO2 calculator.

Parameters:
  • spatial_data (UnmixedData) – The spatial data to process.

  • _ (None) – Unused. This is here to make the interface consistent with the other algorithms.

  • kwargs – Unused.

Returns:

The SO2 data, unused attributes, and unused by product. The first element is the only dataset that is used. The second two are there to make the interface consistent with the other algorithms.

Return type:

tuple of (SingleImage, dict, None)