com1DFA.deriveParameterSetΒΆ

Create dictionary for parameter variations

Functions

appendShpThickness

append thickness values to GENERAL section if read from shp and not varied

checkDEM

check if cell size of DEM in Inputs/ is same as desired meshCellSize if not - check for remeshed DEM or remesh the DEM

checkResType

Check if the resTypes asked for exist Warns the user if some do not, removes them from the resType list and updates the cfg

checkThicknessSettings

check if thickness setting format is correct

getParameterVariationInfo

read info on which simulations shall be performed according to parameter variation

getThicknessValue

set thickness values according to settings chosen and add info to cfg if thFromShp = True - add in INPUT section thickness and id info if thFromShp = False - check format of thickness value in GENERAL section

getVariationDict

Create a dictionary with all the parameters that shall be varied from the standard configuration; ONLY accounts for variations in section GENERAL

setPercentVariation

determine thickness value if set from percentVariation and set from shp file and update percentVariation value that is used for exactely this sim

setRangeVariation

determine thickness value if set from rangeVariation and set from shp file and update rangeVariation value that is used for exactely this sim

setThicknessValueFromVariation

set thickness value for thickness parameter for all features if multiple according to desired variation

setVariationForAllFeatures

set thickness value for all features according to varType variation

splitVariationToArraySteps

split variation in percent to create a list of factors to set parameter value for variations or if a rangeVariation is given in absolute values

validateVarDict

Check if all parameters in variationDict exist in default configuration and are provided in the correct format