ana3AIMEC.aimecTools

Main logic for AIMEC post processing

Functions

addFieldsToDF

add fields that will be added in aimec analysis to dataframe

addReferenceAnalysisTODF

add reference analysis info to referenceDF

addSurfaceParalleCoord

Add the surface parallel coordinate (along flow path taking elevation into account)

analyzeArea

Compare area results to reference.

analyzeDiffsRunoutLines

analyze difference between runout line derived from simRaster and reference datasets (lines, polygons)

analyzeField

analyze transformed field

analyzeMass

analyze Mass data

assignData

Transfer data from old raster to new raster

checkAIMECinputs

Check inputs before running AIMEC postprocessing

checkMultipleSimFound

Check if more than one file can be chosen as reference

computeCellSizeSL

Get the new (s, l) coordinate cell size read by default the reference result file cell size.

computeRunOut

Compute runout based on peak field results

computeRunoutLine

compute the runout line as for each l coordinate the furthest affected s coordinate using the desired resType and thresholdvalue, or if basedOnMax searching for the max value (used for reference line, point) also add runout point based on max s value of runout line

computeRunoutPointDiff

compute difference between runout point of simulation and runout point of refData

createReferenceDF

create data frame with one row per reference data set found in Inputs/REFDATA :Parameters: pathDict (dict) -- dictionary with info paths to reference datasets

defineRefOnSimName

Search for reference based on simulation name

defineRefOnSimValue

Search for reference based on configuration parameter and value

fetchReferenceSimNo

Define reference simulation used for aimec analysis.

findSLCoors

find closest s,l coordinates to given x,y coordinates using transformation matrix

findStartOfRunoutArea

find start of runout area point using splitPoint add info on x, y coordinates of point, angle, index - if defineRunoutArea=False - start of runout area is equal to the start of the thalweg -> in this case the entire SL domain represents the runout area

getMaxMeanValues

Compute average, max values in each cross section for a given input raster

getSArea

Get the s curvilinear coordinate and area on the new raster

makeDomainTransfo

Make domain transformation

makeTransfoMat

Make transformation matrix.

readAIMECinputs

Read inputs for AIMEC postprocessing

readWrite

Get mass balance information Read mass balance files to get mass properties of the simulation (total mass, entrained mass...).

scalePathWithCellSize

use desired cellsize to scale ava path and create s, l coordinates and coordinates of the resampled polyline in the old coord systems x, y

setAvaPath

fetch path shapefile, prepare for AIMEC, set z-coordinate

splitSection

Splits the ith segment of domain boundary DB in the s direction (direction of the path)

transform

Transfer data from old raster to new raster