ana5Utils.preparePathGeneral.preparePathGeneralMain
- preparePathGeneralMain(profile, cfgDFAPath, dem)[source]
prepare thalweg from x and y coordinates: 1. read z coordinates from DEM and compute horizontally projected distance 2. extend path to bottom and top 3. resample path points
- profile: dict
contains x and y coordinates of thalweg location
- cfgDFAPath: configparser object
configuration for DFA path generation
- dem: dict
dictionary with header and raster data of elevation model
- Returns
profileAveraged (dict) – s and z coordinates are added (x and y original) to input profile
profileExtended (dict) – x, y, s, z of extended and resampled path