runtraj.models.hysplit.Met#

class runtraj.models.hysplit.Met(name: 'str', config: 'MetConfig')[source]#

The meteorology files of one met, found locally or downloaded.

Without download, files are found under directory by what their headers say they hold (Catalog). With download set to an ARL archive name, arlmet downloads the files, cropping them as it goes when subgridding is on. Local files are cropped with arlmet.extract_subset into crop_dir, which all simulations share, and the crops there are found by their headers too (crops).

Parameters

namestr

Name of the met in the config.

configMetConfig

Its settings.

Attributes#

crop_dir

Directory holding this met's cropped files.

Methods#

check(files, window)

Raise unless files are whole and hold every time step window needs.

check_releases(releases, n_hours)

Return what would stop runs of releases before HYSPLIT starts, found without running.

fetch(windows)

Get the met files that cover every one of windows, downloading any a download lacks.

files_for(window)

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

missing(window)

Return the stretches of window that no local file holds.

readable(files)

Return the files a transport model should read in place of files.