Open Paul-Carvalho opened 2 months ago
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:
costdistance
function to compute travel costs from port to any grid cell. 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.
I have some code that you could use to build off.
Thanks @mle2718! If you could find that code and send it over that would be great
email sent.
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.