-
|
I'm unable to run the AStar finder algorithm on a TIF cost raster file. img_arr = xa.open_rasterio(url_raster2).squeeze().drop("band")` `start = img_arr[20][10] end = img_arr[2000][2000] path_agg = a_star_search(img_arr, start = (start_y, start_x), goal = (end_y, end_x))` What can be the possible issue ?. I am trying to run xarray-spatial in the hope that i get some performance improvements in by using Dask and Numba. Will this be achievable with the current development and if not are there any plans to deploy the same in the future? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Thanks for reaching out on this. I've looked into the code and found an issue in start = img_arr[20][10]
start_y = int(start.coords['y'].data)
start_x = int(start.coords['x'].data)
end = img_arr[2000][2000]
end_y = int(end.coords['y'].data)
end_x = int(end.coords['x'].data)
path_agg = a_star_search(img_arr, start = (start_x, start_y), goal = (end_x, end_y))`Currently, xarray-spatial pathfindind a star already supports Numba. We plan to support Dask for all the tools in the library ( |
Beta Was this translation helpful? Give feedback.
-
|
@thuydotm @mirmoazam all tests passing for a* |
Beta Was this translation helpful? Give feedback.
Okay, just tried the same data and run the function myself. It seems the function to check whether a location is inside the raster does not work well at the moment. I'll create a pull request to fix this. Thanks again!