Skip to Content
cwa
Guides

Tsunamis

CWA tsunami reports, warnings and cancellations.

cwa.tsunamis.recent() returns tsunami reports newest first; latest() returns only the newest.

import cwa

report = cwa.tsunamis.latest()
if report is not None:
    print(report.report, report.issued_at, report.earthquake.magnitude)
    for area in report.areas:
        print(area.name, area.arrival_at, area.wave_height)

The limit of recent(limit=20) is a positive integer. With no report, recent() returns an empty tuple and latest() returns None.

Fields

FieldMeaning
number, report, typeNumber, report text and report kind
issued_at, expires_atIssue and expiry times
earthquakeThe triggering earthquake: time, location, depth (km) and magnitude
areasPredicted or observed arrival and wave height for coastal areas
stationsPredicted or observed tsunami waves at tide stations

On this page