3.4. copro.selection.clip_to_extent

copro.selection.clip_to_extent(gdf, config, root_dir)[source]

As the original conflict data has global extent, this function clips the database to those entries which have occured on a specified continent.

Parameters
  • gdf (geo-dataframe) – geo-dataframe containing entries with conflicts.

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

  • root_dir (str) – path to location of cfg-file.

Returns

geo-dataframe containing filtered entries. geo-dataframe: geo-dataframe containing country polygons of selected continent.

Return type

geo-dataframe