mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 10:10:05 +00:00 
			
		
		
		
	Calculate coordinates for one past the number of level 2 data moment gates
Fixes the "lightsaber" effect toward (0, 0), tweak to #53
This commit is contained in:
		
							parent
							
								
									c7a4706f43
								
							
						
					
					
						commit
						ca61ed257d
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -725,7 +725,8 @@ void Level2ProductViewImpl::ComputeCoordinates( | |||
|    const std::uint16_t numRadials = | ||||
|       static_cast<std::uint16_t>(radarData->size()); | ||||
|    const std::uint16_t numRangeBins = | ||||
|       momentData0->number_of_data_moment_gates(); | ||||
|       std::max(momentData0->number_of_data_moment_gates() + 1u, | ||||
|                common::MAX_DATA_MOMENT_GATES); | ||||
| 
 | ||||
|    auto radials = boost::irange<std::uint32_t>(0u, numRadials); | ||||
|    auto gates   = boost::irange<std::uint32_t>(0u, numRangeBins); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Paulat
						Dan Paulat