DrylandEcology / rSFSTEP2

R program that interfaces with the STEPWAT2 C code and runs in parallel for multiple sites, climate scenarios, disturbance regimes, and time periods
0 stars 1 forks source link

Add a check to CallSTEPWAT2.R to see if there an existing output database and delete if true #246

Closed kpalmqui closed 1 year ago

kpalmqui commented 2 years ago

Add a check to CallSTEPWAT2.R to see if there is an existing output database. If there is, delete that output database. If not, do nothing.

This is necessary for cases when jobs are cancelled and then restarted on a cluster due to priority or other reasons. The code will append new data to an exisiting database, resulting in more and disparate output than is needed.