Skip to content
Snippets Groups Projects
Commit aab21362 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Bug fix: take into account that speed can be < 0

parent 64a7e5f1
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ def calculate_radii_rossby(list_eddies, e_overestim, handlers, array_d_init): ...@@ -53,7 +53,7 @@ def calculate_radii_rossby(list_eddies, e_overestim, handlers, array_d_init):
R_Vmax = handlers[i_SHPC]["readers"]["max_speed_contour"]\ R_Vmax = handlers[i_SHPC]["readers"]["max_speed_contour"]\
.record(ishape)['r_eq_area'] * 1000 # in m .record(ishape)['r_eq_area'] * 1000 # in m
if (V_max < 100): if abs(V_max) < 100:
avg_Rossby += V_max / (f * R_Vmax) avg_Rossby += V_max / (f * R_Vmax)
n_valid_Rossby += 1 n_valid_Rossby += 1
......
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