stilt.Simulation#
- class stilt.Simulation(release: 'Release', variant: 'Variant', output: 'Output', directory: 'Path | None' = None, realization: 'int | None' = None) None[source]#
One release run under one variant, with its footprint, background, and transport error.
It is
runtraj.simulation.Simulation, which knows where the particles and the file of each stage are and reads the particles, and it adds the reads of what STILT makes from them:footprint,calc_footprint(),background(),transport_error(), andplot. It changes nothing it inherits.You rarely build one yourself. Get it from a project instead, as in
project.simulation(release_id, "hrrr").
Parameters
releaseReleaseWhere and when particles are released.
variantVariantThe variant, resolved: its configs, and the hashes that find its particles and footprint folders.
outputOutputThe output directory.
directoryPath, optionalThe project directory, where a relative file name in the settings starts, such as an averaging-kernel table.
Nonestarts it from the working directory.realizationint, optionalWhich realization of an ensemble variant (
realizations: N),0toN - 1.Nonefor a variant that runs once.
Attributes#
The footprint, or |
|
Path of the footprint file in the output directory, or |
|
Whether the footprint file exists. |
|
Plotting methods, such as |
Methods#
|
Return the background mole fraction at the release. |
|
Calculate a footprint from the stored particles, without writing it. |
|
Return the transport error of this simulation's modeled enhancement. |