DrylandEcology/rSOILWAT2

Weather generator coefficients not working correctly for imputation type "mean"

dschlaep opened this issue · 1 comments

Example: Just a few data points are missing towards the end of the daily weather sequence. If we run the command:

dbW_generateWeather(NewDataYear2, imputation_type = "mean")

the missing precipitation data points are filled in, but the missing temperature data points remain NA.

Bug arose because impute_df assumed a hard-coded number of rows of 366 to "wrap" around --> add a new argument of whether or not input is "cyclic" and, if so, determine number of rows (@CaitlinA)