waternumbers / dynatop

Dynamic TOPMODEL
https://waternumbers.github.io/dynatop/
4 stars 6 forks source link

Fix timestep calculation when input data is an xts with a Date class index #64

Open waternumbers opened 3 weeks ago

waternumbers commented 3 weeks ago

Current code does not check if the index of the input data is of Date or POSIXct class. This causes the code to presume the wrong time step (probably 1s for daily data) so produces some unexpected simulation results