Add option to draw virtual temperature

This commit is contained in:
XANTRONIX 2025-03-15 00:45:22 -04:00
parent bba0d9a10e
commit cd679d3fc6

View file

@ -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)