10. Auxiliary functionsΒΆ
click.echos a header with main model information. |
|
Georeferences a pandas dataframe using longitude and latitude columns of that dataframe. |
|
click.echos the version numbers by the main python-packages used. |
|
Reads the model configuration file. |
|
This function parses the (various) cfg-files for projections. |
|
Determines the period for which projections need to be made. |
|
Creates the output folder at location specfied in cfg-file, and returns dictionary with config-objects and out-dir per run. |
|
If specfied in cfg-file, the PRIO/UCDP data is directly downloaded and used as model input. |
|
Initiates the model set-up. |
|
Creates an array with identical percentage of conflict points as input array. |
|
Retrieves unique ID and geometry information from geo-dataframe for a global look-up dataframe. |
|
Filters out only those polygons where conflict was actually observed in the test-sample. |
|
Saves an dictionary to csv-file. |
|
Saves an argument (either dictionary or dataframe) to npy-file. |