diff globalneighbors/grid.py @ 9:638fad06e556

use bisect function; it has been tested faster
author Jeff Hammel <k0scist@gmail.com>
date Sun, 25 Jun 2017 11:37:52 -0700
parents 254195d0bac2
children 21ed15391e8a
line wrap: on
line diff
--- a/globalneighbors/grid.py	Sun Jun 25 11:21:28 2017 -0700
+++ b/globalneighbors/grid.py	Sun Jun 25 11:37:52 2017 -0700
@@ -56,3 +56,7 @@
 
         return [(_i, _j) for _i in imat for _j in jmat
                 if (_i,_j) != (i,j)]
+
+    def neighbor_points(self, i, j):
+        """return all points in a lat-lon box"""
+        raise NotImplementedError('TODO') # -> record TODO items