Fucking hack to fix Stevens Pass.
authorScott Gasch <[email protected]>
Sat, 11 Mar 2023 22:21:32 +0000 (14:21 -0800)
committerScott Gasch <[email protected]>
Sat, 11 Mar 2023 22:21:32 +0000 (14:21 -0800)
weather_renderer.py

index 07432ebed59131bdd72045af779396d69a023df0..8da01ab73bae05e880c3e3e9e3ac32191608e899 100644 (file)
@@ -265,6 +265,10 @@ function makePrecipChart(name, xValues, yValues) {
                 aggregate_daily_precip = 0.0
                 for r, s in zip(rain[date], snow[date]):
                     hourly_aggregate = r + s
+
+                    # The weather report is always way wrong about Stevens.
+                    if self.file_prefix == "stevens":
+                        hourly_aggregate *= 3.5
                     aggregate_daily_precip += hourly_aggregate
                     precip[date].append(hourly_aggregate)
                 logger.debug(