7.6. XY-DataΒΆ

data.initiate_XY_data

Initiates an empty dictionary to contain the XY-data for each polygon, ie.

data.initiate_X_data

Initiates an empty dictionary to contain the X-data for each polygon, ie.

data.fill_XY

Fills the (XY-)dictionary with data for each variable and conflict for each polygon for each simulation year.

data.fill_X_sample

Fills the X-dictionary with the data sample data besides any conflict-related data for each polygon and each year.

data.fill_X_conflict

Fills the X-dictionary with the conflict data for each polygon and each year.

data.split_XY_data

Separates the XY-array into array containing information about variable values (X-array or sample data) and conflict data (Y-array or target data).

data.neighboring_polys

For each polygon, determines its neighboring polygons.

data.find_neighbors

Filters all polygons which are actually neighbors to given polygon.