com4FlowPy.com4FlowPy

com4FlowPy main function mainly handling input of data, model params and output of model results

Functions

checkConvertReleaseShp2Tif

function checks if release area is a .shp file and tries to convert to tif in that case

checkInputLayerDimensions

check if all layers have the same size and can be read from the provided paths

com4FlowPyMain

com4FlowPy main function - handles:

deleteTempFolder

delete tempFolder containing the pickled np.arrays of the input data and output data tiles.

mergeAndWriteResults

function handles merging of results for all tiles inside the temp Folder and also writing result files to the resultDir

performModelCalculation

wrapper around fc.run() handles passing of model paths, configurations to fc.run() also responsible for processing input-data tiles in sequence

startLogging

just used to move this chunk of code out of the main function only performs logging at the start of the simulation

tileInputLayers