Time types#

Every function that takes a timetype argument accepts the canonical names below or any of their aliases, in any case. seagrid.timetypes.normalize() does the conversion.

Canonical

Aliases

Period

hourly

hour, h, 1h, PT1H

one hour

daily

day, DAY, d, 1D

one calendar day

8day

8D, 8days, 8-day

OBPG 8-day composite: day-of-year 1–8, 9–16, …; the last period ends on 31 December

monthly

month, mo, MO, MS

one calendar month

climatology

clim, MC

one calendar month of a multi-year climatology

static

none, fixed

no time dimension

from seagrid import timetypes

timetypes.period("2010-12-30", "8day")          # (2010-12-27, 2010-12-31)
timetypes.date_range("2010-01-20", "2010-03-05", "monthly")