7. Work with conflict dataΒΆ

conflict.conflict_in_year_bool

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

conflict.conflict_in_previous_year

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

conflict.read_projected_conflict

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

conflict.calc_conflicts_nb

Determines whether in the neighbouring polygons of a polygon i_poly conflict took place.

conflict.get_poly_ID

Extracts and returns a list with unique identifiers for each polygon used in the model.

conflict.get_poly_geometry

Extracts geometry information for each polygon from geodataframe and saves to list.

conflict.split_conflict_geom_data

Separates the unique identifier, geometry information, and data from the variable-containing X-array.

conflict.get_pred_conflict_geometry

Stacks together the arrays with unique identifier, geometry, test data, and predicted data into a dataframe.