com1DFA.deriveParameterSetΒΆ

Create dictionary for parameter variations

Functions

addStandardConfig

add value of standard configuration to parameter variation if not already included only available for percent or range variation

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

createSimDict

Create a simDict with all the simulations that shall be performed

getParameterVariationInfo

create a variation dictionary according to parameter variation given in cfg object

getThicknessValue

set thickness values according to settings chosen and add info to cfg if thFromShp = True - add in INPUT section thickness and id info and ci95 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 and INPUT/releaseScenario

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 or if distVariation create an info string on how the distribution can be build (e.g.

validateVarDict

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

writeToCfgLine

write an array of values to a string of values separated by | for configuration