demcompare.dem_processing.dem_processing

Mainly contains the DEM processing class.

Module Contents

Classes

DemProcessing

DEM processing method factory:

class demcompare.dem_processing.dem_processing.DemProcessing[source]

DEM processing method factory: A class designed for registered all available DEM processing methods and instantiate them when needed.

available_dem_processing_methods: Dict[str, Any][source]
classmethod create_dem_processing_method(dem_processing_method: str, parameters: Dict = None)[source]

Factory command to create the DEM processing method from method_name Return a DemProcessingTemplate child instance associated with the name given in the configuration

Parameters:
  • dem_processing_method (str) – DEM processing method

  • parameters (Dict) – optional input parameters

classmethod print_dem_processing_methods()[source]

Print all registered DEM processing methods

classmethod register(dem_processing_method: str)[source]

Allows to register the DemProcessingTemplate subclass in the factory with its DEM processing type through decorator

Parameters:

dem_processing_method (string) – the subclass type to be registered