New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Monthly diversion records are different between HydroBase and web services #29
Comments
Web services do not return records for months without diversion records and therefore TSTool uses a null value. To resolve this issue, I implemented carry-forward logic on monthly diversion time series for web services. The following is an example of the result, with database on the left and web service on the right. Note that the flag is returned by web services but not database query and "c" is used to indicate TSTool carry forward. See 1965-10. The problem is that the logic only fills forward zero values, as per previous instructions from DWR. Since the last monthly value is non-zero, the logic does not fill a zero. See the daily time series below (HydroBase on left, web services on the right), which show that the zero value is recorded on 1965-09-13. Questions are therefore:
|
I implemented logic so that if a monthly time series has a missing value, the daily diversion records for the previous month are examined to see if the last recorded daily value is a zero. If so, then the missing monthly value is filled with zero. The result is as follows. I'm going to implement some tests and call it good unless there is feedback from the State that this is incorrect. |
Monthly diversion records are filled with carry forward algorithm. Irrigation record time series query full irrigation years. The code produces results consistent with HydroBase reads.
TSTool 14.5.1 contains updates that resolve this issue. Keep this issue open until feedback from the State is received, but it should be done. See the |
This release has been out for a while. The State has been using. I'm going to close this issue. |
A comparison of HydroBase and REST web services for an automated test shows a difference in output. I have opened a dialogue with DWR staff to figure it out. The image below illustrates the issue. Note that the local database does not provide observation flag for monthly values whereas rest web services does provide observation flag.
The text was updated successfully, but these errors were encountered: