Skip samples with no wind speed/direction in hodographs
This commit is contained in:
		
							parent
							
								
									ee801726a8
								
							
						
					
					
						commit
						5b63b52dab
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -168,6 +168,9 @@ class Hodograph():
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def each_significant_sample(self, sounding: Sounding):
 | 
					    def each_significant_sample(self, sounding: Sounding):
 | 
				
			||||||
        for sample in sounding.hodograph_samples():
 | 
					        for sample in sounding.hodograph_samples():
 | 
				
			||||||
 | 
					            if sample.wind_speed is None or sample.wind_dir is None:
 | 
				
			||||||
 | 
					                continue
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if self.color(sample.height) is None:
 | 
					            if self.color(sample.height) is None:
 | 
				
			||||||
                break
 | 
					                break
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue