urbanlc.analyze.metrics.get_class_distribution#
- urbanlc.analyze.metrics.get_class_distribution(path: str, downsample_scale: float, indices: List = [10, 20, 30, 40, 50, 60, 70, 80, 90, 95, 100]) List #
Calculate the class distribution of land cover map in a specified data path at a specified resolution.
- Parameters:
path (str) – Path to the data.
downsample_scale (float) – Downscaling ratio for the land cover map.
indices (List, optional) – List of indices representing classes. Defaults to ESA2021_CLASSES.
- Returns:
Class distribution as a list of proportions.
- Return type:
List