ana5Utils.DFAPathGeneration
Tools for generating an avalanche path from a DFA simulation
Functions
append averaged to path |
|
extend the DFA path at the top and bottom avaProfile with x, y, z, s information |
|
extend the DFA path at the bottom (runout area) |
|
extend the DFA path at the top (release) |
|
extract path from fields or particles |
|
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 |
|
compute mass averaged path from fields |
|
compute mass averaged path from particles |
|
fit a parabola on a set of (s, z) points |
|
find the split point corresponding to an avalanche profile, with parabolic fit and the slopeSplitPoint |
|
resample the path profile and keep track of indStartMassAverage and indEndMassAverage |
|
Save avaPath and split point to directory |
|
Return the weighted average and standard deviation. |