You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently don't account for land in the patch of travel distance, but we should account for this and calculate distance when circumventing land in distance.
The text was updated successfully, but these errors were encountered:
We did this a long time ago to get travel distances from port to any spot in the ocean using the gdistance package. The steps are:
Convert the ocean to a grid.
Assign grid cells that are on land a very high cost to travel though. You need to supply a polygon for land (or other no-go zones).
Use the costdistance function to compute travel costs from port to any grid cell.
Pull out the length of the shortest path.
I'm not sure if this is the best method. It requires an extra package. The algorithm also can take a while to crank through because it has to do some backward recursion.
Currently don't account for land in the patch of travel distance, but we should account for this and calculate distance when circumventing land in distance.
The text was updated successfully, but these errors were encountered: