satpy.enhancements.enhancer module

Helpers to apply enhancements.

class satpy.enhancements.enhancer.EnhancementDecisionTree(*decision_dicts, **kwargs)[source]

Bases: DecisionTree

The enhancement decision tree.

Init the decision tree.

_get_config_dict_from_user(config_file: str | Path | dict) dict[source]
_get_yaml_enhancement_dict(config_file: str | Path) dict[source]
add_config_to_tree(*decision_dict: str | Path | dict) None[source]

Add configuration to tree.

find_match(**query_dict)[source]

Find a match.

class satpy.enhancements.enhancer.Enhancer(enhancement_config_file=None)[source]

Bases: object

Helper class to get enhancement information for images.

Initialize an Enhancer instance.

Parameters:

enhancement_config_file – The enhancement configuration to apply, False to leave as is.

add_sensor_enhancements(sensor)[source]

Add sensor-specific enhancements.

apply(img, **info)[source]

Apply the enhancements.

get_sensor_enhancement_config(sensor)[source]

Get the sensor-specific config.