7.3. copro.conflict.read_projected_conflict

copro.conflict.read_projected_conflict(extent_gdf, bool_conflict, check_neighbors=False, neighboring_matrix=None)[source]

Creates a list for each timestep with boolean information whether a conflict took place in a polygon or not. Input conflict data (bool_conflict) must contain an index with IDs corresponding with the ‘watprovID’ values of extent_gdf. Optionally, the algorithm can be extended to the neighboring polygons.

Parameters
  • extent_gdf (geodataframe) – geo-dataframe containing one or more polygons with geometry information for which values are extracted.

  • bool_conflict (dataframe) – dataframe with boolean values (1) for each polygon with conflict.

  • check_neighbors (bool, optional) – whether or not to check for conflict in neighboring polygons. Defaults to False.

  • neighboring_matrix (dataframe, optional) – look-up dataframe listing all neighboring polygons. Defaults to None.

Returns

containing 1 and 0 values for each polygon with conflict respectively without conflict. If check_neighbors=True, then 1 if neighboring polygon contains conflict and 0 is not.

Return type

list