using upper limit for OTW breakthrough detection
This commit is contained in:
@@ -76,11 +76,13 @@ def geo_distance(lat1,lon1,lat2,lon2):
|
||||
return [distance,bearing]
|
||||
|
||||
|
||||
def isbreakthrough(delta,cpvalues,p0,p1,p2,p3):
|
||||
def isbreakthrough(delta,cpvalues,p0,p1,p2,p3,ratio):
|
||||
|
||||
pwr = p0/(1+delta/p2)
|
||||
pwr += p1/(1+delta/p3)
|
||||
|
||||
pwr *= ratio
|
||||
|
||||
res = np.sum(cpvalues>pwr)
|
||||
|
||||
return res>1
|
||||
|
||||
Reference in New Issue
Block a user