- 17rain gauges configured
- 4outputs per run
- Double-clickno Python install needed
Field staff need to compare rain-gauge data with reference stations run by the Central Weather Administration, but the QC algorithm only ran in Python, which is awkward for anyone who does not write code.
A colleague wrote the core algorithm. My part was wrapping it in a desktop .exe and designing the interface and the outputs. The app produces a pass-rate table, an Excel file, a correlation chart and a daily rainfall time series, and 17 rain-gauge stations are already set up in it.
Leave the algorithm alone, package the workflow
I split the program into three layers. At the center is my colleague’s calculation core, and its rules stay untouched. The middle layer handles period and station selection, runs the checks and prepares the results for the interface and the output files. The outer layer is the interface and the charts. With that separation, I can change an error message or the way a chart responds to clicks without affecting the QC results.
- Select dataChoose a rainfall file, a review period and stations.
- Run the checksBuild daily rainfall totals and compare them with reference observations.
- Review the resultsGo from the station summary to the paired charts and flagged dates.
- Save the resultsExport Excel files, chart images and a run log.
From a flagged date to the raw data
The interface shows run progress, station pass rates, a rainfall time series and a reference-comparison chart in one workspace. Switching stations updates the charts, and selecting an unusual point shows its date and check status. I put most of my effort into linking the summary to the details, so when a station needs attention, staff can click through to the exact observations they should check.
The web version below follows the desktop workflow using synthetic data. For the demo it uses a simple rainfall-difference rule, which is why it has a threshold slider. The desktop app uses predefined settings instead.
Reference comparison
Site AReview exceptions
Select an exception to locate it in both charts.
| Day | Review reason | Station / reference(mm) | Inspect |
|---|
Switch stations, move the threshold, then select a flagged date to see where it falls in both charts.
Packaged with its runtime
The deliverable is a Windows desktop app with the Python runtime and the required resources bundled in, plus an operating guide. If staff cannot start the program or find its output, a correct calculation does them no good. So I treated file selection, readable error messages, output locations and environment checks as part of the tool.
A pass rate is only a summary, and whether the observations can be trusted is still for field staff to judge.
What the project called for
Tool integration
Connected my colleague’s calculation core to file selection, run progress and structured results.
Review-oriented interface design
Used Tkinter and Matplotlib to link station summaries, dates and the two comparison charts.
Desktop delivery
Bundled the runtime and resources, added environment checks, and made error causes and output locations clear.