in3Utils.MoTUtils.setVariableFrictionParameters

setVariableFrictionParameters(cfg, inputSimFiles, workInputDir, inputsDir)[source]

set file paths in cfg object for friction parameters (required if option variable is set) if _mu, _k files found in Inputs/RASTERS have to be remeshed, copy remeshed files to workInputDir with new file name ending _mu, _k

Parameters
  • cfg (configparser object) – configuration info for simulation

  • inputSimFiles (dict) – dictionary with info on all input data found; here mu, k file and if remeshed

  • workInputDir (pathlib path) – pathlib path to work Inputs folder for current simulation

  • inputsDir (pathlib path) – path to avalancheDir/Inputs where original input data and remeshed rasters are stored

Returns

cfg – updated configuration info for simulation with file paths to friction parameters

Return type

configparser object