7.1. copro.conflict.conflict_in_year_bool

copro.conflict.conflict_in_year_bool(config, conflict_gdf, extent_gdf, sim_year, out_dir)[source]

Creates a list for each timestep with boolean information whether a conflict took place in a polygon or not.

Parameters
  • config (ConfigParser-object) – object containing the parsed configuration-settings of the model.

  • conflict_gdf (geodataframe) – geo-dataframe containing georeferenced information of conflict (tested with PRIO/UCDP data).

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

  • sim_year (int) – year for which data is extracted.

  • out_dir (str) – path to output folder. If ‘None’, no output is stored.

Raises

AssertionError – raised if the length of output list does not match length of input geo-dataframe.

Returns

list containing 0/1 per polygon depending on conflict occurence.

Return type

list