Skip to content

Commit 6e130c1

Browse files
authored
Reverted back to haversine metric for BallTree
1 parent 67a002b commit 6e130c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/extpar_art_to_buffer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def get_fraction_per_soil_type(soil_id):
201201
logging.info("")
202202

203203
lon_lat_array = np.column_stack((lons.ravel(), lats.ravel()))
204-
balltree = BallTree(lon_lat_array, metric="euclidean", leaf_size=3)
204+
balltree = BallTree(lon_lat_array, metric="haversine", leaf_size=3)
205205

206206
ones = np.ones((raw_lon.size))
207207

0 commit comments

Comments
 (0)