mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 02:30:05 +00:00 
			
		
		
		
	Display the selected speed units for level 2 data
This commit is contained in:
		
							parent
							
								
									a29256d77e
								
							
						
					
					
						commit
						3df6363211
					
				
					 8 changed files with 117 additions and 16 deletions
				
			
		|  | @ -395,14 +395,24 @@ bool RadarProductLayer::RunMousePicking( | |||
|             std::string suffix {}; | ||||
|             std::string hoverText; | ||||
| 
 | ||||
|             std::shared_ptr<common::ColorTable> colorTable = | ||||
|                radarProductView->color_table(); | ||||
| 
 | ||||
|             if (colorTable != nullptr) | ||||
|             // Determine units from radar product view
 | ||||
|             units = radarProductView->units(); | ||||
|             if (!units.empty()) | ||||
|             { | ||||
|                // Scale data value according to the color table, and get units
 | ||||
|                f     = f * colorTable->scale() + colorTable->offset(); | ||||
|                units = colorTable->units(); | ||||
|                f = f * radarProductView->unit_scale(); | ||||
|             } | ||||
|             else | ||||
|             { | ||||
|                std::shared_ptr<common::ColorTable> colorTable = | ||||
|                   radarProductView->color_table(); | ||||
| 
 | ||||
|                if (colorTable != nullptr) | ||||
|                { | ||||
|                   // Scale data value according to the color table, and get
 | ||||
|                   // units
 | ||||
|                   f     = f * colorTable->scale() + colorTable->offset(); | ||||
|                   units = colorTable->units(); | ||||
|                } | ||||
|             } | ||||
| 
 | ||||
|             if (code.has_value() && | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat