soil_k Calibration Using Code

13 views
Skip to first unread message

Matthew Lombardo

unread,
Dec 3, 2025, 5:04:07 PMDec 3
to QSWAT+
Hello everyone,

Has anyone used code to edit soil_k for their calibration. I am using the GLUE method with 27 different parameter, so I need to use code to replace all parameters at once. I have created code to adjust the original soil_k values by a certain value, but multiplying that values by the original soil_k values stored in a csv. My issue is that I cannot figure out how to get the code to paste in the new soil_k values into soils.sol while keeping the exact same formatting. I've been working on this for a week, both by myself and with help from ChatGPT and I haven't gotten anywhere. I have attached my base code without the content for the formatting, along with the csv and soils.sol. 

Thank you,
Matt Lombardo
soils.sol
SWAT_SOILSK_Mod_base.R
RobertsBrookNoLake_SWAT_SOILSK_Table.csv
Reply all
Reply to author
Forward
0 new messages