增加地闪密度计算公式
This commit is contained in:
parent
2ac34196f0
commit
d00ec213e0
4
core.py
4
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))
|
k_angle.append(math.pi + math.atan(kk))
|
||||||
# 返回相对x轴最大的角度k
|
# 返回相对x轴最大的角度k
|
||||||
return np.array(k_candidate)[np.max(k_angle) == k_angle].tolist()[-1]
|
return np.array(k_candidate)[np.max(k_angle) == k_angle].tolist()[-1]
|
||||||
|
|
||||||
|
|
||||||
|
def func_ng(td): # 地闪密度
|
||||||
|
return 0.023 * (td ** 1.3)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue