ana5Utils.DFAPathGeneration.extendDFAPath

extendDFAPath(avalancheDir, cfg, dem, simName, avaProfile)[source]

extend the DFA path at the top (release) and bottom (runout area) cfg[‘pathFromPart’] decides if the path is extended from particles dict or fields Call extendDFAPathKernel for extending the path avaProfile with x, y, z, s information

Parameters
  • avalancheDir (str or pathlib path) – path to avalanche directory

  • cfg (configParser) – configuration object with: pathFromPart: boolean

    read information from particles file or fields file

    extTopOption: int how to extend towards the top?

    0 for highest point method a for largest runout method

    nCellsResample: int

    resampling length is given by nCellsResample*demCellSize

    nCellsMinExtend: int

    when extending towards the bottom, take points at more than nCellsMinExtend*demCellSize from last point to get the direction

    nCellsMaxExtend: int

    when extending towards the bottom, take points at less than nCellsMaxExtend*demCellSize from last point to get the direction

    factBottomExt: float

    extend the profile from factBottomExt*sMax

  • dem (dict) – dem dict

  • simName (str) – simHash or name

  • avaProfile (dict) – profile to be extended

Returns

avaProfileExt – extended profile at top and bottom (x, y, z).

Return type

dict