Skip to content

Latest commit

 

History

History
4 lines (3 loc) · 477 Bytes

File metadata and controls

4 lines (3 loc) · 477 Bytes

Python-Ports-Distance-Calculator

A distance calculator that is able to return the distance between two ports based on the derived sea route.

Same as the R version. The python script directly uses the raster map (cost map) I transformed by using R. The script first transform the raster map into an array. By using the route_through_array function provided by scikit-image, the least cost route was able to be derived and stored as an array for further distance calculation.