6.2. copro.data.initiate_X_data

copro.data.initiate_X_data(config)[source]

Initiates an empty dictionary to contain the X-data for each polygon, ie. only sample data. This is needed for each time step of each projection run. By default, the first column is for the polygon ID and the second for polygon geometry. The penultimate column is for boolean information about conflict at t-1 while the last column is for boolean information about conflict at t-1 in neighboring polygons. All remaining columns correspond to the variables provided in the cfg-file.

Parameters

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

Returns

emtpy dictionary to be filled, containing keys for each variable (X) plus meta-data.

Return type

dict