ana3AIMEC.aimecTools
Main logic for AIMEC post processing
Functions
add fields that will be added in aimec analysis to dataframe |
|
add reference analysis info to referenceDF |
|
Add the surface parallel coordinate (along flow path taking elevation into account) |
|
Compare area results to reference. |
|
analyze difference between runout line derived from simRaster and reference datasets (lines, polygons) |
|
analyze transformed field |
|
analyze Mass data |
|
Transfer data from old raster to new raster |
|
Check inputs before running AIMEC postprocessing |
|
Check if more than one file can be chosen as reference |
|
Get the new (s, l) coordinate cell size read by default the reference result file cell size. |
|
Compute runout based on peak field results |
|
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 |
|
compute difference between runout point of simulation and runout point of refData |
|
create data frame with one row per reference data set found in Inputs/REFDATA :Parameters: pathDict (dict) -- dictionary with info paths to reference datasets |
|
Search for reference based on simulation name |
|
Search for reference based on configuration parameter and value |
|
Define reference simulation used for aimec analysis. |
|
find closest s,l coordinates to given x,y coordinates using transformation matrix |
|
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 |
|
Compute average, max values in each cross section for a given input raster |
|
Get the s curvilinear coordinate and area on the new raster |
|
Make domain transformation |
|
Make transformation matrix. |
|
Read inputs for AIMEC postprocessing |
|
Get mass balance information Read mass balance files to get mass properties of the simulation (total mass, entrained mass...). |
|
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 |
|
fetch path shapefile, prepare for AIMEC, set z-coordinate |
|
Splits the ith segment of domain boundary DB in the s direction (direction of the path) |
|
Transfer data from old raster to new raster |