ana5Utils.distanceTimeAnalysis

functions to convert to a different coordinate system and produce a range-time diagram from simulation results options: 1) range-time diagram from radar’s field of view capped to this 2) thalweg-time diagram from beta point of view along avalanche path

Functions

approachVelocity

compute maximal approach velocity based on front location (range) and time step

createThalwegTimeInfoFromSimResults

top level function to create mtiInfo dict from com Module simulation results required are flow variable fields for different time steps

exportData

save all info about range, time steps, average values to pickle for producing plots

extractFrontAndMeanValuesRadar

extract average values of flow parameter result at certain distance intervals (range gates) add info to be used for colorcoding range-time diagram

extractFrontAndMeanValuesTT

extract avalanche front and mean values of flow parameter result field used for colorcoding range-time diagram

fetchRangeTimeInfo

determine avalanche front and average values of flow parameter along path update mtiInfo dictionary with this information

fetchTimeStepFromName

split path name to fetch info on time step

getRadarLocation

fetch radar location and direction of of field of view coordinates

importMTIData

import mtiInfo data for creating range time plots, if no inputDir is provided, pickles are fetched from avaDir/Outputs/modName/distanceTimeAnalysis multiple pickles allowed- these carry also configuration info for distanceTimeAnalysis

initializeRangeTime

initialize generation of range-time diagram for visualizing simulation data

maskRangeFull

mask range (already masked with radar field of view) also with avalanche result field where NOT above threshold

radarMask

function to create masked array of radar range using dem and radar's field of view

setDemOrigin

reset original origin to simulation DEM - required if for ava sim is set to something different

setupRangeTimeDiagram

create setup for creating range-time diagrams from avalanche simulation results with respect to a radar's field of view

setupThalwegTimeDiagram

initialize parameters and prerequisites for generating thalweg-time diagrams