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

Add method `ishape_range`

parent 5444de1e
No related branches found
No related tags found
No related merge requests found
......@@ -202,6 +202,12 @@ class SHPC_class:
return ishape
def ishape_range(self, date, i_slice, orientation):
ishape_start = self.comp_ishape(date, 1, i_slice, orientation)
ishape_stop = self._ishape_last[i_slice][orientation]\
[date - self.d_init[i_slice]] + 1
return range(ishape_start, ishape_stop)
def in_window(point, window):
llcrnrlon, llcrnrlat, urcrnrlon, urcrnrlat = window
longit = point[0] + math.ceil((llcrnrlon - point[0]) / 360) * 360
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment