arlmet.Catalog.covering#
- Catalog.covering(start, end, *, missing_ok=False)[source]#
Return the files that cover a window, in time order.
The files hold every valid time the window needs (
missing()): one everystepfrom the one at or before start to the one at or after end. Files whoseerroris set are not used.- Parameters:
start (
Any) – The window, earlier time first. A time without a time zone is UTC; a time-zone-aware one is converted to UTC.end (
Any) – The window, earlier time first. A time without a time zone is UTC; a time-zone-aware one is converted to UTC.missing_ok (
bool) – Return the files for the times that are held, without raising when some are in no file.missing()lists the rest, so you can find them elsewhere.
- Return type:
- Raises:
ValueError – If a valid time the window needs is in no file (the message lists them) and missing_ok is false, if two files hold one of them (the message names both), if start is after end, or if no file is usable.
Examples
>>> cat.covering("2021-01-14 06:00", "2021-01-14 08:00") [PosixPath('hrrr/20210114_06-11_hrrr')]