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

Polish

parent 1157647e
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,10 @@ import numpy as np
import sys
def comp_ishape(handler, date, eddy_index):
"""handler should be a dictionary returned by open_shpc."""
"""Compute the location in the shapefiles. handler should be a
dictionary returned by open_shpc.
"""
k = date - handler["d_init"]
......
......@@ -45,8 +45,6 @@ def calculate_radii_rossby(list_eddies, e_overestim, handlers, array_d_init):
for n in list_eddies:
current_eddy = report_graph.node_to_date_eddy(n, e_overestim)
i_SHPC = get_SHPC(array_d_init, current_eddy['date_index'])
# calculate the location in the shapefile
location = util_eddies.comp_ishape(handlers[i_SHPC],
current_eddy['date_index'],
current_eddy['eddy_index'])
......@@ -154,7 +152,6 @@ for n in g.vertices():
last = report_graph.node_to_date_eddy(segment[-1], e_overestim)
last_SHPC = get_SHPC(array_d_init, last['date_index'])
# Calculate the location in the shapefiles:
first_loc = util_eddies.comp_ishape(handlers[first_SHPC],
first['date_index'],
first['eddy_index'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment