onstove.RasterLayer.normalize#
- RasterLayer.normalize(output_path: str | None = None, buffer: bool = False, inverse: bool = False, create_raster: bool | None = True) RasterLayer [source]#
Normalizes the raster data by a given normalization method.
- Parameters:
- output_path: str, optional
A folder path where to save the output dataset. If not defined then the normalized dataset is not saved to disk.
- buffer: bool, default False
Whether to exclude the areas outside the
distance_limit
attribute and make them np.nan.- inverse: bool, default False
Whether to invert the normalized layer or not.
- create_raster: bool, default True
Boolean condition. If True, a
RasterLayer
will be created and stored in thenormalized
attribute of the class. If False, aRasterLayer
with the normalized data is returned.
- Returns:
- RasterLayer
RasterLayer
with the normalized data.