Replies: 1 comment 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.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm unable to run the AStar finder algorithm on a TIF cost raster file.
My aim is to find the least cost path between two points in a raster file. I'm getting a "ValueError: start location outside the surface graph." every time i run it
`url_raster2 = r'xrspatial-examples\data/LC80030172015001LGN00_B1.tiff'
img_arr = xa.open_rasterio(url_raster2).squeeze().drop("band")`
`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_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.
All reactions