Esempio n. 1
0
 def geohash(self, length):
     """
     :param length: length of the geohash
     :returns: an array of N geohashes, one per site
     """
     lst = [geohash(lon, lat, length)
            for lon, lat in zip(self.lons, self.lats)]
     return numpy.array(lst, (numpy.string_, length))
Esempio n. 2
0
 def geohash(self, length):
     """
     :param length: length of the geohash in the range 1..8
     :returns: an array of N geohashes, one per site
     """
     lst = [geohash(lon, lat, length)
            for lon, lat in zip(self['lon'], self['lat'])]
     return numpy.array(lst, (numpy.string_, length))