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_index
based on thedatasets
provided.It calls the
get_index()
method with the provideddatasets
, which normalizes the results including or excluding areas defined by the buffer and returns aRasterLayer
with the computed data and thebase_layer
RasterLayer.meta
information. The outputRasterLayer
is saved in theassistance_need_index
attribute.- Parameters:
- datasets: dictionary of ``category``-``list of layer names`` pairs, default ‘all’
Specifies which dataset(s) to use to compute the index.
datasets={'category_1': ['layer_1', 'layer_2'], 'category_2': [...]}
- buffer: str, default ``False``
Whether to buffer the areas outside the
RasterLayer.distance_limit
.