# 氣候 (https://nolantw.github.io/cwa/guides/climate/)

| 函式 | 內容 |
| --- | --- |
| `cwa.climate.daily()` | 前一日逐時紀錄與日最高、最低、平均氣溫 |
| `cwa.climate.rainfall()` | 今年逐日與逐月降水量 |
| `cwa.climate.normals()` | 月氣候平均值 |
| `cwa.climate.stations(kind="staffed")` | 現存與已撤銷測站的沿革；`kind="automatic"` 為自動站 |
| `cwa.climate.ozone()` | 臺北臭氧全量序列（多布森） |

```python
import cwa

normals = cwa.climate.normals("466920")
print(normals.first_year, normals.last_year)
for month in normals.months:
    print(month.month, month.temperature, month.precipitation)

record = cwa.climate.rainfall("466920")
print(record.months[-1].year_month, record.months[-1].total)
```

除 `ozone()` 外，函式接受測站代碼或其序列；不傳參數時回傳所有測站。降水量的「T」（微量）視為 `0.0`，缺測為 `None`。