Convert usersoil.csv to soils.sol
Usage
usersoil_to_sol(csv_path, db_path = NULL)
Arguments
- csv_path
character path to csv file (example "usersoil_lrew.csv"")
- db_path
character to sqlite project database (example "output/project.sqlite").
Optional, default NULL. Could be used to reduce soils.sol file, if there are less soil
types in sqlite database than in usersoil csv file.
Value
soils.sol SWAT+ model input file
Examples
if (FALSE) {
usersoil_to_sol("output/usersoil_lrew.csv")
##Or
usersoil_to_sol("output/usersoil_lrew.csv", "output/project.sqlite")
}