Add option to draw virtual temperature
This commit is contained in:
parent
bba0d9a10e
commit
cd679d3fc6
1 changed files with 5 additions and 0 deletions
|
@ -36,6 +36,7 @@ class SkewTOptions():
|
|||
self.skew = SKEW_DEFAULT
|
||||
self.draw_dry_adiabats = True
|
||||
self.draw_moist_adiabats = True
|
||||
self.draw_virtual_temp = False
|
||||
self.draw_lcl = False
|
||||
self.draw_lfc = False
|
||||
self.draw_el = False
|
||||
|
@ -278,6 +279,10 @@ class SkewTGraph():
|
|||
if params is not None:
|
||||
self.draw_params(cr, x, y, params)
|
||||
|
||||
if self.opts.draw_virtual_temp:
|
||||
cr.set_source_rgba(1, 0.6, 0.6, 0.5)
|
||||
self.draw_series(cr, x, y, sounding.follow_virtual_temp())
|
||||
|
||||
cr.set_source_rgb(1, 0, 0)
|
||||
self.draw_sounding(cr, x, y, sounding, lambda s: s.temp)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue