From 110b529f05fe418a736ee100945e300f7a10e565 Mon Sep 17 00:00:00 2001 From: daflack Date: Mon, 18 Dec 2023 14:01:44 +0000 Subject: [PATCH] minor bug fix to cape ratio documentation fixes #335 --- src/CSET/operators/convection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CSET/operators/convection.py b/src/CSET/operators/convection.py index 6244607a0..f3236d0b2 100644 --- a/src/CSET/operators/convection.py +++ b/src/CSET/operators/convection.py @@ -102,7 +102,7 @@ def cape_ratio(SBCAPE, MUCAPE, MUCIN, MUCIN_thresh=-75.0): Examples -------- - >>> CAPE_ratios_filter=elevated_convection_diagnostics.cape_ratio( + >>> CAPE_ratios=convection.cape_ratio( SBCAPE,MUCAPE,MUCIN) >>> iplt.pcolormesh(CAPE_ratios[0,:,:],cmap=mpl.cm.RdBu) >>> plt.gca().coastlines('10m') @@ -110,9 +110,9 @@ def cape_ratio(SBCAPE, MUCAPE, MUCIN, MUCIN_thresh=-75.0): >>> plt.clim(0,1) >>> plt.show() - >>> CAPE_ratios_filter=elevated_convection_diagnostics.cape_ratio( + >>> CAPE_ratios=convection.cape_ratio( SBCAPE,MUCAPE,MUCIN,MUCIN_thresh=-1.5) - >>> iplt.pcolormesh(CAPE_ratios_filter[0,:,:],cmap=mpl.cm.RdBu) + >>> iplt.pcolormesh(CAPE_ratios[0,:,:],cmap=mpl.cm.RdBu) >>> plt.gca().coastlines('10m') >>> plt.clim(0,1) >>> plt.colorbar()