Skip to Content
cwa
Guides

Typhoons

Positions and forecast tracks of active typhoons and tropical depressions.

cwa.typhoons.active() returns the typhoons and tropical depressions the CWA is tracking, with their current position, strength and forecast track.

import cwa

for cyclone in cwa.typhoons.active():
    print(cyclone.name, cyclone.classification, cyclone.position, cyclone.max_wind_speed)
    for point in cyclone.forecast_track:
        print(point.valid_at, point.position)

With no active typhoon, the result is an empty tuple. The CWA keeps a typhoon’s last entry after it dissipates; the SDK leaves out any typhoon last analyzed more than 12 hours ago.

A tracked typhoon does not necessarily affect Taiwan. Whether the CWA has issued a sea or land typhoon warning is in Warnings, under AlertType.TYPHOON.

Typhoon fields

FieldMeaning
nameChinese name; None for an unnamed tropical depression
international_nameInternational name
classificationCycloneClassification.TYPHOON or TROPICAL_DEPRESSION
analyzed_atTime of the latest analysis
positionCenter coordinates
pressureCentral pressure (hPa)
max_wind_speed, max_gust_speedMaximum sustained wind and gust near the center (m/s)
moving_speed, moving_directionSpeed and direction of movement
forecast_trackForecast track, in time order

Each forecast track point has valid_at (the forecast time), position, pressure, max_wind_speed and max_gust_speed. Anything the CWA does not provide is None.

On this page