ana3AIMEC.aimecTools.computeRunoutLine
- computeRunoutLine(cfgSetup, rasterTransfo, transformedRasters, simRowHash, actualType, name='', basedOnMax=False, runoutResType=None)[source]
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
- Parameters
cfgSetup (configparser object) – configuration settings, here: runoutResType and tresholdValue
rasterTransfo (dict) – information on raster transformation
transformedRasters (dict) – transformed rasters from simulation
simRowHash (hash) – index of current simulation
actualType (str) – options: simulation, line, point, poly
name (str) – optional name to find raster in transfromedRasters dict
basedOnMax (bool) – if not threshold of runoutResType is used but max value along s for each l
runoutResType (str or None) – resolved runout result type column name (e.g. “ppr” or “ppr_l1” for multi-layer). Required when name is empty (simulation runout). Not used when name is set (reference data).
- Returns
runoutLine – coordinates of runout line in s, l, and x, y, index of rasterTransfo[‘s’]mname and type coordinates of runout point (max s extent) in s, l
- Return type
dict