Render every sample with height in hodographs
This commit is contained in:
parent
af666f9c98
commit
1602b447d2
1 changed files with 2 additions and 3 deletions
|
@ -166,14 +166,13 @@ class Hodograph():
|
|||
if height < key:
|
||||
return self.COLORS[key]
|
||||
|
||||
return (0.4, 0.4, 1.0)
|
||||
|
||||
def each_significant_sample(self, sounding: Sounding):
|
||||
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:
|
||||
break
|
||||
|
||||
yield sample
|
||||
|
||||
def find_extents(self, sounding: Sounding):
|
||||
|
|
Loading…
Add table
Reference in a new issue