runtraj.models.MetConfig#

class runtraj.models.MetConfig(*, label: str | None = None) → None[source]#

The base of every transport model’s met config: one entry under mets: and what is done with its files.

A model names its subclass as met_config_class; HYSPLIT’s is runtraj.models.hysplit.HysplitMetConfig. The subclass’s fields are the keys of the entry, and it implements settings(). The other methods have defaults for a met that names no files, such as a model’s built-in weather: nothing to check or fetch, nothing downloaded, and ARL files when the met is read at the particles. A met of files overrides the ones its files need.

Every met has label, which a run records beside settings() when it is set (runtraj.config.Variant.met_settings).

Parameters#

Parameter

Description

Default

label

A name that tells this met’s runs apart from those of another met of the same weather product, such as mynn and ysu for two WRF runs with different boundary-layer schemes, whose ARL files carry the same source id. A run records it only when it is set, so a met without one keeps its settings folders, and setting one moves its runs to a new folder. runtraj check and a run refuse two mets of one transport model that record the same settings and no label to tell them apart, since their variants would share one run.

None

Methods#

check(releases, n_hours)

Return what would stop the runs of releases on this met, found before any starts; nothing here.

downloads()

Return whether this met downloads its files, False here.

fetch(windows)

Get the files runs of windows need before any starts, and return what was got; nothing here.

open(files[, bounds])

Return files, the met files a run read, as runtraj.sampling reads them: as ARL file paths here.

settings()

Return what a run records of this met: which weather it is, and anything else that changes the result.