Hi Chris,
I am getting the following error when trying to include plant.dat parameters (e.g., LAIMX1, BLAI) in par_bound for SWAT2012 sensitivity analysis: 'Error in translate_parameter_constraints(par_names, swat_vers) : plant files are no valid file type!'
I am using SWATrunR version 0.9.4 (installed from CRAN) and SWAT2012 rev 681
I tried this simple example (which I am not sure if it is OK):
par_bound <- tibble(
"v_laimx1_144::LAIMX1.plant.dat | change = absval | idplt == 144" = c(0.05, 0.2))
sim_test<-run_swat2012(
project_path = "~/TxtInOut",
output = define_output(file="hru", variable="LAI", unit=1:170),
parameter = par_bound)
What I have tried so far:
Removing the .dat suffix (i.e. using LAIMX1.plant) , I get the same error but it says 'dat' file instead of plant file.
Checking translate_parameter_constraints() it looks like it only knows files "pnd","rte","sub","swq","hru","gw","mgt","sol","chm","sdr","sep","bsn","wwq","res","ops", but I would like to confirm this with you.
Is plant.dat supported in SWATrunR for SWAT 2012? Or is there a different way I should define them?
Thank you!!
Eliana
Hi Chris,
I am getting the following error when trying to include plant.dat parameters (e.g., LAIMX1, BLAI) in par_bound for SWAT2012 sensitivity analysis: 'Error in translate_parameter_constraints(par_names, swat_vers) : plant files are no valid file type!'
I am using SWATrunR version 0.9.4 (installed from CRAN) and SWAT2012 rev 681
I tried this simple example (which I am not sure if it is OK):
par_bound <- tibble(
"v_laimx1_144::LAIMX1.plant.dat | change = absval | idplt == 144" = c(0.05, 0.2))
sim_test<-run_swat2012(
project_path = "~/TxtInOut",
output = define_output(file="hru", variable="LAI", unit=1:170),
parameter = par_bound)
What I have tried so far:
Removing the .dat suffix (i.e. using LAIMX1.plant) , I get the same error but it says 'dat' file instead of plant file.
Checking translate_parameter_constraints() it looks like it only knows files "pnd","rte","sub","swq","hru","gw","mgt","sol","chm","sdr","sep","bsn","wwq","res","ops", but I would like to confirm this with you.
Is plant.dat supported in SWATrunR for SWAT 2012? Or is there a different way I should define them?
Thank you!!
Eliana