ana5Utils.DFAPathGeneration.extendProfileBottom
- extendProfileBottom(cfg, dem, profile)[source]
extend the DFA path at the bottom (runout area)
Find the direction in which to extend considering the last point of the profile and a few previous ones but discarding the ones that are too close (nCellsMinExtend* csz < distFromLast <= nCellsMaxExtend * csz). Extend in this diretion for a distance factBottomExt * length of the path.
- Parameters
cfg (configParser) – 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
profile (dict) – profile to extend
- Returns
profile – extended profile
- Return type
dict