onstove.DataProcessor.normalize_rasters#

DataProcessor.normalize_rasters(datasets: str | dict = 'all', buffer: bool = False, save_layers: bool = False)[source]#

Calls the .normalize method of all the layers entered.

Normlaizes all input rasters using a ´MinMax´ normalization.

Parameters:
datasets: str or dict, default “all”

Defines the datasets to be normalized. Can be entered as either a string or a dictionary.

Example#
datasets={'category_1': ['layer_1', 'layer_2'],
          'category_2': [...]}
buffer: bool, default False

Whether to exclude the areas outside the distance_limit attribute and make them np.nan. The distance_limit is an attribute of the datasets

save_layer: bool, default False

Determines whether to save the normalized dataset to disc or not.