Skip to content
Snippets Groups Projects
Commit 5e7e12ea authored by tomrink's avatar tomrink
Browse files

snapshot...

parent e0f9ddb8
No related branches found
No related tags found
No related merge requests found
......@@ -1127,11 +1127,13 @@ def best_fit_altitude(amv_spd, amv_dir, amv_alt, amv_lat, amv_lon, fcst_spd, fcs
# check contraints
good_constraint = 1
# Check for overall good agreement: want vdiff less than 4 m/s
vdiff = np.sqrt((amv_uwind - sat_wind_best_fit_u) ** 2 + (amv_vwind - sat_wind_best_fit_v) ** 2)
if vdiff > 4.0:
good_constraint = 0
flag = 2
# Check for a substantial secondary local minimum or if local minimum is too broad
mm = np.where(fcst_alt > (sat_wind_best_fit_alt + constraint_half_width))[0]
nn = np.where(fcst_alt < (sat_wind_best_fit_alt - constraint_half_width))[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment