runtraj.models.hysplit.Met.files_for#

Met.files_for(window)[source]#

Return the met files that cover window, (start, end) in time order.

HYSPLIT steps through a run with the two met steps around each of its times, so in either direction it needs the met step at or after the window’s end: the release of a backward run, the end of a forward one. The files are the ones whose headers say they hold the steps from the one at or before the start to that one (Catalog.cover()), whatever they are named. When local files are cropped, a crop in crop_dir that holds part of the window is one of them, and the archive gives the rest. Downloads the files first when download is set.

Parameters:

window (tuple[Any, Any]) – The time to cover (run_window()).

Return type:

list[Path]

Raises:

MeteorologyError – A file the run needs is missing, or files of two products hold the same time. Every file is needed: HYSPLIT would stop the particles where the met runs out.