From d2aa0b375959409e33d5c55236d7ebb9da9a9a34 Mon Sep 17 00:00:00 2001 From: XANTRONIX Industrial Date: Tue, 11 Feb 2025 16:07:27 -0500 Subject: [PATCH] Cleanup --- lib/nexrad/storm.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/nexrad/storm.py b/lib/nexrad/storm.py index e9128b9..0ad56f0 100644 --- a/lib/nexrad/storm.py +++ b/lib/nexrad/storm.py @@ -159,14 +159,16 @@ class StormReport(): def is_radar_significant(self): return self.event_type in self.RADAR_SIGNIFICANT_EVENT_TYPES - def nearest_radars(self, db): + def nearby_radars(self, db): sql = """ select id, call, - ST_Distance(coord, + ST_Distance( + coord, MakeLine(MakePoint(?, ?, {csr}), - MakePoint(?, ?, {csr})), true) as distance + MakePoint(?, ?, {csr})), + true) as distance from nexrad_radar where