rchlumsk / RavenR

R package for handling Raven hydrologic modelling framework inputs, outputs, and diagnostics
36 stars 16 forks source link

rvn_write_rvt check for consistency in time series #65

Closed rchlumsk closed 3 years ago

rchlumsk commented 3 years ago

Add a check to the function to ensure that the length of the time series is consistent with the endpoint and derived interval

e.g.

dd_series <- seq.POSIXt(from=lubridate::as_datetime(dd_xts[1,]),
                        to=lubridate::as_datetime(dd_xts[nrow(dd_xts),]),
                        by="hour") # change to interval

# check lengths
nrow(dd_xts) == length(dd_series)
rchlumsk commented 3 years ago

Closed with new commit to dev branch