stilt.transport.hysplit.Met#

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

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

Without download, files are found under directory from file_format and file_tres. 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.

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_receptors(receptors, n_hours)

Return what would stop runs of receptors 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_hours(window)

Return the times of the local files that cover window and are not found.

readable(files)

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