in1Data.getInput

Fetch input data for avalanche simulations

Functions

checkForMultiplePartsShpArea

check if in polygon read from shape file holes are present, if so error and save a plot to Outputs/com1DFA procedure: check if polygon has several parts

computeAreasFromLines

compute the area of a polygon in xy using shapely

computeAreasFromRasterAndLine

compute the area covered by a polygon by creating a raster from polygon projected area and actual area using a dem info

computeRelStats

compute stats of a polygon and a dem actual area (taking slope into account), projected area, max, mean, min elevation, mean slope

createReleaseStats

create a csv file with info on release shp file on: max, mean and min elevation, slope and projected and real area

fetchReleaseFile

select release scenario, update configuration to only include thickness info of current scenario and return file path

getAndCheckInputFiles

Fetch fileExt files and check if they exist and if it is not more than one

getDEMFromConfig

get dem file path in avaDir/Inputs

getDEMPath

get the DEM file path from a provided avalanche directory

getInputData

Fetch input datasets required for simulation, duplicated function because

getInputDataCom1DFA

Fetch input datasets required for simulation, duplicated function because now fetch all available files simulation type set differently in com1DFA compared to com1DFAOrig: TODO: remove duplicate once it is not required anymore

getInputPaths

Fetch paths to dem and first release area shp file found

getThicknessInputSimFiles

add thickness of shapefiles to dictionary

initializeDEM

check for dem and load to dict

initializeRelTh

check for relThFile and load to dict (if relTh is read from file)

readDEM

read the ascii DEM file from a provided avalanche directory

selectReleaseFile

select release scenario

updateThicknessCfg

add available release scenarios to ini file and set thickness values in ini files