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

Define method `comp_ishape_n`

parent b5560a1f
No related branches found
No related tags found
No related merge requests found
......@@ -260,6 +260,18 @@ class SHPC_class:
return i_slice, ishape
def comp_ishape_n(self, node_index, e_overestim, orientation):
"""Compute the location in the shapefiles, given the inter-date eddy
index: return `(i_slice, ishape)`.
Returns None if ishape_last is None or eddy_index is greater
than the maximum value.
"""
date, eddy_index = node_to_date_eddy(node_index, e_overestim)
return self.comp_ishape(date, eddy_index, orientation)
def ishape_range(self, date, orientation):
"""Returns an empty list if ishape_last was not found and could not be
created.
......
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