com1DFA.com1DFA.initializeResistance
- initializeResistance(cfg, dem, simTypeActual, resLine, reportAreaInfo, thresholdPointInPoly)[source]
Initialize resistance matrix
- Parameters
dem (dict) – dem dictionary
simTypeActual (str) – simulation type
resLine (dict) – resistance line dictionary
reportAreaInfo (dict) – simulation area information dictionary
thresholdPointInPoly (float) – threshold val that decides if a point is in the polygon, on the line or very close but outside
- Returns
cResRaster (2D numpy array) – raster of resistance coefficients
reportAreaInfo (dict) – simulation area information dictionary completed with entrainment area info