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

Polish

parent 24256851
No related branches found
No related tags found
No related merge requests found
...@@ -166,15 +166,16 @@ for n in g.vertices(): ...@@ -166,15 +166,16 @@ for n in g.vertices():
= calculate_radii_rossby(properties) = calculate_radii_rossby(properties)
g.vp.pos_last[n] = properties[- 1]["pos"] # in degrees g.vp.pos_last[n] = properties[- 1]["pos"] # in degrees
else: else:
# The number of eddies in a segment is lower than the number # The number of eddies in the segment is lower than or
# of days over which to average. The values will be the same # equal to the number of days over which to average. The
# except for the positions. # values for the end of the segment will be the same as
# for the begining, except for the position.
properties = node_to_prop(segment, e_overestim, array_d_init, properties = node_to_prop(segment, e_overestim, array_d_init,
handlers) handlers)
g.vp.first_av_rad[n], g.vp.first_av_ros[n] \ g.vp.first_av_rad[n], g.vp.first_av_ros[n] \
= calculate_radii_rossby(properties) = calculate_radii_rossby(properties)
g.vp.last_av_ros[n] = g.vp.first_av_ros[n]
g.vp.last_av_rad[n] = g.vp.first_av_rad[n] g.vp.last_av_rad[n] = g.vp.first_av_rad[n]
g.vp.last_av_ros[n] = g.vp.first_av_ros[n]
g.vp.pos_first[n] = properties[0]["pos"] # in degrees g.vp.pos_first[n] = properties[0]["pos"] # in degrees
g.vp.pos_last[n] = properties[- 1]["pos"] # in degrees g.vp.pos_last[n] = properties[- 1]["pos"] # in degrees
......
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