Fix wind speed/direction calculation
This commit is contained in:
		
							parent
							
								
									131b01640c
								
							
						
					
					
						commit
						5708e02704
					
				
					 1 changed files with 2 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -75,13 +75,10 @@ class RAOBObs():
 | 
			
		|||
        if token == '=':
 | 
			
		||||
            return
 | 
			
		||||
 | 
			
		||||
        if token[2] == '1':
 | 
			
		||||
            base_speed = 100
 | 
			
		||||
        elif token[2] == '5':
 | 
			
		||||
        if token[2] == '0' or token[2] == '5':
 | 
			
		||||
            base_dir = 5
 | 
			
		||||
        elif token[2] == '6':
 | 
			
		||||
        else:
 | 
			
		||||
            base_speed = 100
 | 
			
		||||
            base_dir   = 5
 | 
			
		||||
 | 
			
		||||
        if token[0:2] == '//':
 | 
			
		||||
            wind_dir = None
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue