Skip to content
Snippets Groups Projects
Commit 9e632dc0 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent ba7caec5
Branches
No related tags found
No related merge requests found
......@@ -947,7 +947,7 @@ def best_fit(amv_spd, amv_dir, amv_prs, amv_lat, amv_lon, fcst_spd, fcst_dir, fc
v3 = VecDiff[imin+1]
v1 = VecDiff[imin-1]
if p3 < TopPress and v1 != v2 and v2 != v3: # check not collinear, above allowed region
if p3 > TopPress and v1 != v2 and v2 != v3: # check not collinear, above allowed region
SatwindBestFitPress = p2 - (0.5 *
((((p2 - p1) * (p2 - p1) * (v2 - v3)) - ((p2 - p3) * (p2 - p3) * (v2 - v1))) /
(((p2 - p1) * (v2 - v3)) - ((p2 - p3) * (v2 - v1)))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment