修复了没有利用ng的bug。

版本号 Version: 1.2.0.2
This commit is contained in:
n3040 2022-01-21 16:08:59 +08:00
parent 791f7c281f
commit 4c4c0e036b
2 changed files with 6 additions and 2 deletions

View File

@ -444,7 +444,11 @@ def tangent_line_k(line_x, line_y, center_x, center_y, radius, init_k=10.0):
def func_ng(td): # 地闪密度,通过雷暴日计算
return 0.023 * (td ** 1.3)
if para.ng > 0:
r = para.ng
else:
r = 0.023 * (td ** 1.3)
return r
# 圆和地面线的交点只去正x轴上的。

View File

@ -1,4 +1,4 @@
Version: 1.2.0
Version: 1.2.0.2
#CompanyName: My Imaginary Company
#FileDescription: Simple App
#InternalName: Simple App