# Tsunamis (https://nolantw.github.io/cwa/en/guides/tsunamis/)

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

```python
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

| Field | Meaning |
| --- | --- |
| `number`, `report`, `type` | Number, report text and report kind |
| `issued_at`, `expires_at` | Issue and expiry times |
| `earthquake` | The triggering earthquake: time, location, depth (km) and magnitude |
| `areas` | Predicted or observed arrival and wave height for coastal areas |
| `stations` | Predicted or observed tsunami waves at tide stations |