Skip to content

Commit dddeefe

Browse files
Adjust docstring for _hash_index2d to something a bit more accurate
1 parent 7a77039 commit dddeefe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parcels/spatialhash.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ def _hash_cell_size(self):
8282
return np.sqrt(np.median(_planar_quad_area(self._source_grid.lat, self._source_grid.lon))) * 0.5
8383

8484
def _hash_index2d(self, coords):
85-
"""Computes the 2-d hash index (i,j) for the location (x,y), where x and y are given in spherical
86-
coordinates (in degrees)
85+
"""Computes the 2-d hash index (i,j) for the location (x,y), where x and y is the same units
86+
as the source grid coordinates
8787
"""
8888
# Wrap longitude to [-180, 180]
8989
if self._source_grid.mesh == "spherical":

0 commit comments

Comments
 (0)