onstove.MCA.set_assistance_need_index#
- MCA.set_assistance_need_index(datasets: dict[str, list[str]] = 'all', buffer: bool = False)[source]#
Computes the
assistance_need_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 theassistance_need_indexattribute.- 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.