From cd679d3fc6e52b7dcdf9de657b38a8d6c30e08d1 Mon Sep 17 00:00:00 2001 From: XANTRONIX Industrial Date: Sat, 15 Mar 2025 00:45:22 -0400 Subject: [PATCH] Add option to draw virtual temperature --- lib/xmet/skew_t.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/xmet/skew_t.py b/lib/xmet/skew_t.py index 0599c79..23ce0a7 100644 --- a/lib/xmet/skew_t.py +++ b/lib/xmet/skew_t.py @@ -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)