com1DFA.com1DFA.prepareInputData
- prepareInputData(inputSimFiles, cfg)[source]
Fetch input data
- Parameters
inputSimFiles (dict) – dictionary containing
relFile : str, path to release area file
demFile : str, path to dem file in Inputs/
secondaryReleaseFile : str, path to secondaryRelease file
entFiles : str, path to entrainment file
resFile : str, path to resistance file
entResInfo : flag dict
flag if Yes entrainment and/or resistance areas found and used for simulation flag True if a Secondary Release file found and activated
cfg (configparser object) – configuration for simType and secondary rel
- Returns
demOri (dict) – dictionary with dem info (header original origin), raster data correct mesh cell size this dem has been remeshed/read from remeshed if chosen cell size is not equal to cell size of DEM in Inputs/
inputSimLines (dict) – dictionary containing
releaseLine : dict, release line dictionary
secondaryReleaseLine : dict, secondaryRelease line dictionary
entLine : dict, entrainment line dictionary
resLine : dict, resistance line dictionary
entrainmentArea : str, entrainment file name
resistanceArea : str, resistance file name
entResInfo : flag dict
flag if Yes entrainment and/or resistance areas found and used for simulation flag True if a Secondary Release file found and activated