From d00ec213e005f8609e52a8754cb7e135ee157514 Mon Sep 17 00:00:00 2001 From: facat Date: Mon, 20 Sep 2021 22:41:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=9C=B0=E9=97=AA=E5=AF=86?= =?UTF-8?q?=E5=BA=A6=E8=AE=A1=E7=AE=97=E5=85=AC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core.py b/core.py index 4970129..09fba3b 100644 --- a/core.py +++ b/core.py @@ -274,3 +274,7 @@ def tangent_line_k(line_x, line_y, center_x, center_y, radius, init_k=10.0): k_angle.append(math.pi + math.atan(kk)) # 返回相对x轴最大的角度k return np.array(k_candidate)[np.max(k_angle) == k_angle].tolist()[-1] + + +def func_ng(td): # 地闪密度 + return 0.023 * (td ** 1.3)