onstove.MCA.set_supply_index#
- MCA.set_supply_index(datasets: dict[str, list[str]] = 'all', buffer: bool = False)[source]#
Computes the
supply_indexbased on thedatasetsprovided.It calls the
get_index()method with the provideddatasets, which normalizes the results including or excluding areas defined by the buffer and returns aRasterLayerwith the computed data and thebase_layerRasterLayer.metainformation. The outputRasterLayeris saved in the :attr:`supply_index`attribute.- Parameters:
- datasets: dictionary of ``category``-``list of layer names`` pairs, default ‘all’
Specifies which dataset(s) to use to compute the index.
datasetsexample:#datasets={'category_1': ['layer_1', 'layer_2'], 'category_2': [...]}
- buffer: str, default ``False``
Whether to buffer the areas outside the
RasterLayer.distance_limit.