com1DFA.com1DFATools.updateResCoeffFields
- updateResCoeffFields(fields, cfg)[source]
update fields of cRes and detK, coefficients of resistance parameter and detrainment parameter according to the thresholds of FV and FT if FV OR FT below min thresholds -> apply detrainment in that area if FV AND FT above min thresholds AND below max thresholds -> apply cResH (additional friction) in that area if FV OR FT above max thresholds -> no impact of resistance area
- Parameters
fields (dict) – dictionary with cResRasterOrig, cResRaster and detRasterOrig, detRaster fields
cfg (configparser object) – configuration of com1DFA, thresholds
- Returns
fields – updated cRes and detK fields, required to write raster with header
- Return type
dict