ana5Utils.DFAPathGeneration.extendDFAPath

extendDFAPath(cfg, avaProfile, dem, particlesIni, fieldPFT=None)[source]

extend the DFA path at the top and bottom avaProfile with x, y, z, s information

Parameters
  • cfg (configParser) – configuration object with:

    • extTopOption: int, how to extend towards the top? 0 for heighst point method, a for largest runout method

    • extBottomOption: int, how to extend towards the bottom? 0 for the straight-line extrapolation

    method, 1 for the least-cost extension to the deposit front (requires fieldPFT) - 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

  • avaProfile (dict) – profile to be extended

  • dem (dict) – dem dict

  • particlesIni (dict) – initial particles dict

  • fieldPFT (numpy array, optional) – peak flow thickness field on the dem grid, only used if extBottomOption = 1

Returns

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

Return type

dict