stilt.ProjectConfig#
- class stilt.ProjectConfig(*, model: str = 'hysplit', mets: dict[str, dict[str, typing.Any]]=<factory>, variants: dict[str, dict[str, typing.Any]]=<factory>, execution: stilt.execution.config.ExecutionConfig = <factory>, output: str = 'output', **extra_data: Any) None[source]#
A project’s configuration, as read from
config.yaml.The transport model’s parameters and the footprint fields are flat, top-level keys, and are the defaults for every variant.
modelnames the transport model, HYSPLIT unless set; its parameters are checked by its own config class and are intransport. The footprint fields are infootprint. Each variant names a met and overrides some of the defaults; only the declared variants run. A variant that names anothermodelgives that model’s own parameters itself, and inherits the parameters every model shares (TransportConfig). An unknown key is an error that names the nearest setting.
Parameters#
Parameter |
Description |
Default |
|---|---|---|
|
Transport model the variants run with, unless a variant names another: |
|
|
Meteorology by name, such as |
|
|
Variants by name, each a set of overrides of the defaults. A variant may also set |
|
|
Where the receptors run and with what resources, such as |
|
|
Directory the results go to, relative to the project directory unless absolute. A URL such as |
|
Attributes#
Methods#
|
Return the variants as written. |
|
Load a project config from a YAML file. |
|
Return the met called name, checked by the met config of the transport model model. |
|
This function is meant to behave like a BaseModel method to initialize private attributes. |
|
Return one |
|
Return the config as YAML, and write it to |