Cleanup
This commit is contained in:
		
							parent
							
								
									bf85f42f94
								
							
						
					
					
						commit
						d2aa0b3759
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		|  | @ -159,14 +159,16 @@ class StormReport(): | ||||||
|     def is_radar_significant(self): |     def is_radar_significant(self): | ||||||
|         return self.event_type in self.RADAR_SIGNIFICANT_EVENT_TYPES |         return self.event_type in self.RADAR_SIGNIFICANT_EVENT_TYPES | ||||||
| 
 | 
 | ||||||
|     def nearest_radars(self, db): |     def nearby_radars(self, db): | ||||||
|         sql = """ |         sql = """ | ||||||
|             select |             select | ||||||
|                 id, |                 id, | ||||||
|                 call, |                 call, | ||||||
|                 ST_Distance(coord, |                 ST_Distance( | ||||||
|  |                     coord, | ||||||
|                     MakeLine(MakePoint(?, ?, {csr}), |                     MakeLine(MakePoint(?, ?, {csr}), | ||||||
|                              MakePoint(?, ?, {csr})), true) as distance |                              MakePoint(?, ?, {csr})), | ||||||
|  |                     true) as distance | ||||||
|             from |             from | ||||||
|                 nexrad_radar |                 nexrad_radar | ||||||
|             where |             where | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue