From 800c1273fc49928ec89f74d7866a8bb8396a1b61 Mon Sep 17 00:00:00 2001 From: tackandr Date: Mon, 21 Oct 2024 08:55:10 +0300 Subject: [PATCH] change avg filters to min or max --- himan-scripts/CB-TCU-cloud.lua | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/himan-scripts/CB-TCU-cloud.lua b/himan-scripts/CB-TCU-cloud.lua index a17b007d..3db369ad 100644 --- a/himan-scripts/CB-TCU-cloud.lua +++ b/himan-scripts/CB-TCU-cloud.lua @@ -109,28 +109,26 @@ if currentProducerName == "MEPS" or currentProducerName == "MEPSMTA" then Nmat:SetValues(TtopMU) TtopMU = Min2D(Nmat,filter,configuration:GetUseCuda()):GetValues() - filter:SetValues(avgkernel) - Nmat:SetValues(LCL500) - LCL500 = Filter2D(Nmat,filter,configuration:GetUseCuda()):GetValues() + LCL500 = Max2D(Nmat,filter,configuration:GetUseCuda()):GetValues() Nmat:SetValues(CAPE500) - CAPE500 = Filter2D(Nmat,filter,configuration:GetUseCuda()):GetValues() + CAPE500 = Max2D(Nmat,filter,configuration:GetUseCuda()):GetValues() Nmat:SetValues(CIN500) - CIN500 = Filter2D(Nmat,filter,configuration:GetUseCuda()):GetValues() + CIN500 = Min2D(Nmat,filter,configuration:GetUseCuda()):GetValues() Nmat:SetValues(LFCmu) - LFCmu = Filter2D(Nmat,filter,configuration:GetUseCuda()):GetValues() + LFCmu = Max2D(Nmat,filter,configuration:GetUseCuda()):GetValues() Nmat:SetValues(pLFCmu) - pLFCmu = Filter2D(Nmat,filter,configuration:GetUseCuda()):GetValues() + pLFCmu = Min2D(Nmat,filter,configuration:GetUseCuda()):GetValues() Nmat:SetValues(CAPEmu) - CAPEmu = Filter2D(Nmat,filter,configuration:GetUseCuda()):GetValues() + CAPEmu = Max2D(Nmat,filter,configuration:GetUseCuda()):GetValues() Nmat:SetValues(CINmu) - CINmu = Filter2D(Nmat,filter,configuration:GetUseCuda()):GetValues() + CINmu = Min2D(Nmat,filter,configuration:GetUseCuda()):GetValues() end local CBlimit = 2000 --required vertical thickness [m] to consider a CB (tweak this..!)