Ports & harbours
The World Port Index in Python: 3,807 ports with their harbour size and type, depths, facilities and restrictions, ports by country, deep-water, container and LNG ports, ports closed by ice, the nearest port to a city, and the zeros and unknowns that hide in the table.
The World Port Index, kept by the US National Geospatial-Intelligence Agency, lists 3,807 of the world's ports for mariners: each with its position, country, harbour size and type, channel and pier depths, tides, the restrictions on entering and 73 yes-or-no questions about facilities and services. It is the standard open list of ports, from fjord harbours in Norway to oil terminals moored off West Africa.
The guides here read the index, explain what it counts and how to get it without code, map the ports by country and by sea, find the deep-water ports and the container and LNG terminals, the ports where ice restricts entry and the nearest port to any city. Two pages deal with the traps: depths and lengths stored as 0 when unknown, and yes-or-no columns whose commonest answer is Unknown.
🧭 Start with the concepts
The ideas the how-to guides below assume you already have.
⚙️ Then do the task
Step-by-step walkthroughs with code you can copy and adapt.
- How to Read the World Port Index in Python
- How to Map the World's Ports by Country and Harbor Size
- How to Find Deep-Water Ports: Channel and Pier Depths in the World Port Index
- How to Find Container, Oil and LNG Terminals in the World Port Index
- How to Find the Nearest Port to Any Coastal Place
- How to Find the Ports Where Ice Restricts Entry
Show every how-to guide in this topic
🔧 When it breaks
The errors this topic produces, with the cause explained rather than just the command.
Related topics
Subjects that keep coming up alongside this one, most overlap first.