Skip to Content
cwa
Guides

Climate

Daily climate records, rainfall records, climate normals, station history and ozone.

FunctionContents
cwa.climate.daily()The past day’s hourly records and daily maximum, minimum and mean temperature
cwa.climate.rainfall()This year’s daily and monthly precipitation
cwa.climate.normals()Monthly climate normals
cwa.climate.stations(kind="staffed")History of current and past stations; kind="automatic" for automatic stations
cwa.climate.ozone()Total ozone series at Taipei, in Dobson units
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)

Apart from ozone(), each function takes a station ID or a sequence of them; without an argument, every station is returned. Trace precipitation (“T”) is 0.0; a missing value is None.