com1DFA.com1DFATools.extendProfileBottom¶
- extendProfileBottom(cfg, dem, profile)[source]¶
extend the DFA path at the bottom
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 ( 2* csz < distFromLast <= 30 * csz). Extend in this diretion for a distance 0.2 * length of the path.
- Parameters
dem (dict) – dem dict
profile (dict) – profile to extend
- Returns
profile – extended profile
- Return type
dict