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 |
|---|---|---|
|
|
one hour |
|
|
one calendar day |
|
|
OBPG 8-day composite: day-of-year 1–8, 9–16, …; the last period ends on 31 December |
|
|
one calendar month |
|
|
one calendar month of a multi-year climatology |
|
|
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")