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

Remove intermediary variable `V_max`

parent f4a3c6b3
No related branches found
No related tags found
No related merge requests found
......@@ -48,12 +48,11 @@ def calculate_radii_rossby(list_eddies, e_overestim, handlers, array_d_init):
# get the radius and the rossby number:
shapeRec = handlers[i_SHPC]["readers"]["extremum"].shapeRecord(ishape)
f = 2 * Omega * math.sin(math.radians(shapeRec.shape.points[0][1]))
V_max = shapeRec.record.speed # in m/s
radius = handlers[i_SHPC]["readers"]["max_speed_contour"]\
.record(ishape).r_eq_area * 1000 # in m
if abs(V_max) < 100:
avg_Rossby += V_max / (f * radius)
if abs(shapeRec.record.speed) < 100:
avg_Rossby += shapeRec.record.speed / (f * radius)
n_valid_Rossby += 1
avg_rad += radius # in m
......
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