Multiple Samples on same day and Kalman behavior
Looking at the code for WRTDSkalman()
, I am wondering if this is how multiple samples per day is intended to function. Here the function cleanup()
will randomly subset the data to one sample per day.
https://code.usgs.gov/water/EGRET/-/blob/main/R/kalman_functions.R#L49
This makes sense, but this step takes place outside the iteration loop. So each of the niter
iterations will use the same random dataset. There is probably a reason for this, but why the random selection of a value is not inside the loop.
Luke