Skip to content
Snippets Groups Projects
Commit be7dbcfa authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 1e474eb0
No related branches found
No related tags found
No related merge requests found
...@@ -71,6 +71,7 @@ def get_bounding_gfs_files(timestamp): ...@@ -71,6 +71,7 @@ def get_bounding_gfs_files(timestamp):
farr = np.array(filelist) farr = np.array(filelist)
farr = farr[sidxs] farr = farr[sidxs]
ftimes = tarr[sidxs] ftimes = tarr[sidxs]
idxs = np.arange(len(filelist))
above = ftimes >= timestamp above = ftimes >= timestamp
if not above.any(): if not above.any():
...@@ -82,7 +83,7 @@ def get_bounding_gfs_files(timestamp): ...@@ -82,7 +83,7 @@ def get_bounding_gfs_files(timestamp):
return None, None, None, None return None, None, None, None
tL = ftimes[below].max() tL = ftimes[below].max()
iL = np.searchsorted(ftimes, tL, 'left') iL = idxs[below].max()
iR = iL + 1 iR = iL + 1
fList = farr.tolist() fList = farr.tolist()
......
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