chrisschuerz / SWATrunR

Running SWAT projects within R
https://chrisschuerz.github.io/SWATrunR/
GNU General Public License v3.0
69 stars 30 forks source link

Weather data in another folder #60

Open mgf-unige opened 2 years ago

mgf-unige commented 2 years ago

Just to mention that nowadays, it is be possible to put the weather files in a separate folder inside the TxtInOut directory to make things a bit cleaner if there is a lot of weather files.

The end of the files.cio will then look like so (e.g. if the weather files are in ...\TxtInOut\weather\ on Windows):

[...]
init              plant.ini         soil_plant.ini    om_water.ini      null              null              null              null              null              null              null              null              
soils             soils.sol         nutrients.sol     null              
decision_table    lum.dtl           res_rel.dtl       scen_lu.dtl       null              
regions           ls_unit.ele       ls_unit.def       null              null              null              null              null              null              aqu_catunit.ele   null              null              null              null              null              null              null              null              
pcp_path         weather\\
tmp_path          weather\\
slr_path          weather\\
hmd_path          weather\\
wnd_path          weather\\

Currently, run_swatplus seems to fail when using a additional folder like this...

chrisschuerz commented 2 years ago

@mgf-unige thanks for the input! I will look into it. It could be that I avoided copying recursive folders to the parallel threads, to e.g. not copy any save folders which are usually large. I will think of a solution that considers this option. Otherwise you might still keep all your files in one folder. I cannot foresee if this implementation causes any further issues.