ana5Utils.DFAPathGeneration

Tools for generating an avalanche path from a DFA simulation

Functions

appendAverageStd

append averaged to path

extendDFAPath

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

extendProfileBottom

extend the DFA path at the bottom (runout area)

extendProfileTop

extend the DFA path at the top (release)

generateMassAveragePath

extract path from fields or particles

generatePathAndSplitpoint

Parameters: avalancheDir (str): path to the avalanche directory cfgDFAPath (configParser object): DFAPath configuration cfgMain (configParser object): main avaframe configuration runDFAModule (bool): whether to run the DFA module (True) or load existing results (False) :returns: * massAvgPath (pathlib) -- file path to the mass-averaged path result saved as a shapefile * splitPoint (pathlib) -- file path to the split point result saved as a shapefile

getMassAvgPathFromFields

compute mass averaged path from fields

getMassAvgPathFromPart

compute mass averaged path from particles

getParabolicFit

fit a parabola on a set of (s, z) points

getSplitPoint

find the split point corresponding to an avalanche profile, with parabolic fit and the slopeSplitPoint

resamplePath

resample the path profile and keep track of indStartMassAverage and indEndMassAverage

saveSplitAndPath

Save avaPath and split point to directory

weightedAvgAndStd

Return the weighted average and standard deviation.