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

Define intermediate variable Omega

parent 7e134e2e
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,7 @@ def calculate_radii_rossby(list_eddies, e_overestim, handlers, array_d_init):
radii = 0 # in m
rossby = 0
days_modifier = 0
Omega = 2 * math.pi / 86400.
for n in list_eddies:
current_eddy = report_graph.node_to_date_eddy(n, e_overestim)
......@@ -50,7 +51,7 @@ def calculate_radii_rossby(list_eddies, e_overestim, handlers, array_d_init):
# rossby:
lat_in_deg = shapeRec.shape.points[0][1]
#[deg]
f = 2*2*math.pi/(24*3600)*math.sin(math.radians(lat_in_deg)) # [1/s]
f = 2*Omega*math.sin(math.radians(lat_in_deg)) # [1/s]
V_max = shapeRec.record[4] #[m/s]
R_Vmax = handlers[i_SHPC]["readers"]["max_speed_contour"]\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment