I tried to calculate cell_distances(), yet the calculated length did not make sense to me. It seems as if a bug occurred in the transformation of the raster coordinates: x and y coordinates are wrong.
After changing line 2174 from:
x2, y2 = pyproj.transform(old_crs, new_crs, grid_indices[:,1],
grid_indices[:,0])
to:
x2, y2 = pyproj.transform(old_crs, new_crs, grid_indices[:,0],
grid_indices[:,1])
I tried to calculate cell_distances(), yet the calculated length did not make sense to me. It seems as if a bug occurred in the transformation of the raster coordinates: x and y coordinates are wrong.
After changing line 2174 from: x2, y2 = pyproj.transform(old_crs, new_crs, grid_indices[:,1], grid_indices[:,0]) to: x2, y2 = pyproj.transform(old_crs, new_crs, grid_indices[:,0], grid_indices[:,1])
the calculation worked
Best wishes and thank you for this great tool!