From 608afa5e0e3c5ebb7a0cddc430b3047cad5e5669 Mon Sep 17 00:00:00 2001 From: Ivo Sonderegger Date: Fri, 28 May 2021 15:43:57 +0200 Subject: [PATCH] Fix calculation of CAP --- sharppy/sharptab/params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharppy/sharptab/params.py b/sharppy/sharptab/params.py index 7e39f922..bf5f4cab 100644 --- a/sharppy/sharptab/params.py +++ b/sharppy/sharptab/params.py @@ -1930,7 +1930,7 @@ def parcelx(prof, pbot=None, ptop=None, dp=-1, **kwargs): li_maxpres = pe2 # Check for Max Cap Strength - mcap = te2 - mli + mcap = -mli if mcap > cap_strength: cap_strength = mcap cap_strengthpres = pe2