ana5Utils.DFAPathGeneration.extendProfileTop

extendProfileTop(extTopOption, particlesIni, profile, dem=None, cfg=None, considerLLC=False)[source]

extend the DFA path at the top (release)

Either towards the highest point in particlesIni (extTopOption = 0) or the point leading to the longest runout (extTopOption = 1) or in the upslope direction of the thalweg (extTopOption = 2)

Parameters
  • extTopOption (int) – decide how to extend towards the top if 0, extrapolate towards the highest point in the release if 1, extrapolate towards the point leading to the longest runout if 2, extrapolate in upslope direction of the thalweg between a defined distance of the thalweg

  • particlesIni (dict) – initial particles dict

  • profile (dict) – profile to extend

  • dem (dict) – contains DEM info (necessary for extTopOption = 2)

  • cfg (configparser.ConfigParser) – settings (necessary for extTopOption = 2)

  • considerLLC (bool) – if True the coordinate of the lower left center is considered (regarding extTopOption = 2)

Returns

profile – extended profile

Return type

dict