DrylandEcology / rSOILWAT2

A R package for SOILWAT2
GNU General Public License v3.0
10 stars 4 forks source link

`get_transpiration()` fails on objects < v5.0.0 #230

Closed dschlaep closed 1 year ago

dschlaep commented 1 year ago

get_transpiration() is using column "tran_cm" if slot "AET" is present; however, "tran_cm" was only added with SOILWAT2 v6.2.0 and rSOILWAT2 v5.0.0 -> the function errors out on output produced by earlier versions of rSOILWAT2 with message

Error in tmp[, "tran_cm"] : subscript out of bounds