com1DFA.com1DFA.prepareInputData

prepareInputData(inputSimFiles, cfg)[source]

Fetch input data

Parameters
  • inputSimFiles (dict) – relFile : str path to release area file demFile : str

    path to dem file in Inputs/

    secondaryReleaseFilestr

    path to secondaryRelease file

    entFilesstr

    path to entrainment file

    resFilestr

    path to resistance file

    entResInfoflag 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) –

    releaseLinedict

    release line dictionary

    secondaryReleaseLinedict

    secondaryRelease line dictionary

    entLinedict

    entrainment line dictionary

    resLinedict

    resistance line dictionary

    entrainmentAreastr

    entrainment file name

    resistanceAreastr

    resistance file name

    entResInfoflag dict

    flag if Yes entrainment and/or resistance areas found and used for simulation flag True if a Secondary Release file found and activated