Menu

Counting hurricane passes per Caribbean island with NOAA HURDAT2
📰

Counting hurricane passes per Caribbean island with NOAA HURDAT2

DEV Community: python·Gladori·6 days ago
#rJvj2tWi
#devtopython#devto#dev#years#island
Reading 0:00
15s threshold

Is Aruba really safer from hurricanes than St. Barts? NOAA keeps the record that answers it in one plain text file. HURDAT2 is the National Hurricane Center's best-track database, and it lists every known Atlantic storm since 1851 with its position and wind every six hours.

About 80 lines of standard-library Python turn that file into a count per island. Over 1966 to 2025, the script below finds one hurricane within 50 nautical miles of Aruba. For Virgin Gorda it finds twelve.

How a HURDAT2 file is laid out

The file stacks blocks. Each block opens with a header line, and a set number of track lines follow it. Here is the start of Hurricane Felix in 2007, from the release we used ( hurdat2-1851-2025-092326.txt ), cut after the wind and pressure columns and with some track lines skipped:

AL062007, FELIX, 28, 20070901, 0600, , TS, 12.1N, 61.1W, 40, 1005, ... 20070901, 0845, L, TS, 12.1N, 61.7W, 45, 1001, ... 20070901, 1200, , TS, 12.2N, 62.8W, 50, 1001, ... ...…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.