stilt.config.VariantConfig#
- class stilt.config.VariantConfig(*, grid: stilt.config.spatial.Grid | None = None, geometry: Optional[Annotated[stilt.config.geometry.FileGeometrySpec | stilt.config.geometry.H3GeometrySpec | stilt.config.geometry.WindowsGeometrySpec, FieldInfo(annotation=NoneType, required=True, discriminator='kind')]] = None, cells_per_target: Annotated[float, Gt(gt=0)] = 4.0, geometry_hash: str | None = None, smooth_factor: float = 1.0, time_integrate: bool = False, transforms: list[Any] = <factory>, siguverr: float | None = None, tluverr: float | None = None, zcoruverr: float | None = None, horcoruverr: float | None = None, sigzierr: float | None = None, tlzierr: float | None = None, horcorzierr: float | None = None, capemin: float = -1.0, cmass: int = 0, conage: int = 48, cpack: int = 1, delt: int = 1, dxf: int = 1, dyf: int = 1, dzf: float = 0.01, efile: str = '', emisshrs: float = 0.01, frhmax: float = 3.0, frhs: float = 1.0, frme: float = 0.1, frmr: float = 0.0, frts: float = 0.1, frvs: float = 0.01, hscale: int = 10800, ichem: int = 8, idsp: int = 2, initd: int = 0, k10m: int = 1, kagl: int = 1, kbls: int = 1, kblt: int = 5, kdef: int = 0, khinp: int = 0, khmax: int = 9999, kmix0: int = 150, kmixd: int = 3, kmsl: Optional[Literal[0, 1]]=None, kpuff: int = 0, krand: int = 4, seed: int | None = None, krnd: int = 6, kspl: int = 1, kwet: int = 1, kzmix: int = 0, maxdim: int = 1, maxpar: int | None = None, mgmin: int = 10, mhrs: int = 9999, nbptyp: int = 1, ncycl: int = 0, ndump: int = 0, ninit: int = 1, nstr: int = 0, nturb: int = 0, nver: int = 0, outdt: int = 0, p10f: int = 1, pinbc: str = '', pinpf: str = '', poutf: str = '', qcycle: int = 0, rhb: float = 80.0, rht: float = 60.0, splitf: int = 1, tkerd: float = 0.18, tkern: float = 0.18, tlfrac: float = 0.1, tout: float = 0.0, tratio: float = 0.75, tvmix: float = 1.0, veght: float = 0.5, vscale: int = 200, vscaleu: int = 200, vscales: int = -1, w_option: int = 0, wbbh: int = 0, wbwf: int = 0, wbwr: int = 0, wvert: bool = False, z_top: float = 25000.0, ziscale: float | list[float] | list[list[float]] = 1.0, n_hours: int = -24, numpar: int = 200, hnf_plume: bool = True, rm_dat: bool = True, timeout: int | None = None, exe_dir: pathlib.Path | None = None, varsiwant: list[typing.Literal['time', 'indx', 'long', 'lati', 'zagl', 'sigw', 'tlgr', 'zsfc', 'icdx', 'temp', 'samt', 'foot', 'shtf', 'tcld', 'dmas', 'dens', 'rhfr', 'sphu', 'lcld', 'zloc', 'dswf', 'wout', 'mlht', 'rain', 'crai', 'pres', 'whtf', 'temz', 'zfx1']]=<factory>, name: str, group: str, met: str, realization: int | None = None, derived_from: str | None = None) None[source]#
The full settings of one variant: its met, transport, and footprint.
Built by
resolve_variants().nameis the name its simulations run under andgroupthe name declared inconfig.yaml. They differ only for realizations:hrrr-errwithrealizations: 3giveshrrr-err-0tohrrr-err-2.
Parameters#
Parameter |
Description |
Default |
|---|---|---|
|
Domain and resolution of the footprint. Leaving it unset with no |
|
|
Polygons the footprint will be aggregated to ( |
|
|
Grid cells across the smallest |
|
|
Hash of the built |
|
|
Factor on the width of the Gaussian smoothing kernel. 0 turns smoothing off. |
|
|
Sum the footprint over time into a single layer instead of hourly layers. |
|
|
Particle transforms applied in order before the footprint is computed. Each entry’s |
|
|
Standard deviation of the horizontal wind error, in m/s. |
|
|
Correlation timescale of the horizontal wind error, in minutes. |
|
|
Vertical correlation length of the horizontal wind error, in meters. |
|
|
Horizontal correlation length of the horizontal wind error, in km. |
|
|
Standard deviation of the mixed-layer height error, in percent. |
|
|
Correlation timescale of the mixed-layer height error, in minutes. |
|
|
Horizontal correlation length of the mixed-layer height error, in km. |
|
|
Convection option. -1 turns convection off, -2 uses the Grell scheme, and a positive value mixes vertically when CAPE exceeds it, in J/kg. |
|
|
Compute grid concentrations (0) or grid mass (1). |
|
|
Particle age at which particles and puffs convert, in hours. |
|
|
Packing of the binary concentration grid. |
|
|
Integration time step, in minutes. 0 lets HYSPLIT choose; a negative value sets the minimum step. |
|
|
Horizontal x-grid offset factor for ensemble runs. |
|
|
Horizontal y-grid offset factor for ensemble runs. |
|
|
Vertical offset factor for ensemble runs (0.01 is about 250 m). |
|
|
Name of a time-varying emissions file. Blank uses none. |
|
|
Duration of the particle release, in hours. |
|
|
Maximum horizontal puff-rounding parameter. |
|
|
Horizontal puff-rounding fraction for merging. |
|
|
Mass-rounding fraction for enhanced merging. |
|
|
Mass-removal fraction for enhanced merging. |
|
|
Temporal puff-rounding fraction. |
|
|
Vertical puff-rounding fraction. |
|
|
Horizontal Lagrangian timescale, in seconds. |
|
|
HYSPLIT chemistry and output mode. 8 is the STILT emulation mode. |
|
|
Particle dispersion scheme: 1 for HYSPLIT, 2 for STILT. |
|
|
Initial distribution as particles, puffs, or a mix. 0 is 3D particles. |
|
|
Use the 10 m winds and 2 m temperature as the lowest meteorology level (1) or skip them (0). |
|
|
Write trajectory heights above ground (1) or above sea level (0). |
|
|
Derive boundary-layer stability from surface fluxes (1) or from wind and temperature profiles (2). |
|
|
Boundary-layer turbulence scheme: 1 Beljaars, 2 Kantha-Clayson, 3 TKE, 4 measured variances, 5 Hanna. |
|
|
Horizontal turbulence from vertical mixing (0) or wind deformation (1). |
|
|
Age, in hours, given to particles read from |
|
|
Maximum particle or trajectory age, in hours. |
|
|
Minimum mixed-layer depth, in meters. |
|
|
Mixed-layer depth source: 0 from the meteorology, 1 from the temperature profile, 2 from the TKE profile, 3 from a modified Richardson number. |
|
|
Read release heights as above ground (0) or above sea level (1). Unset takes it from each receptor’s |
|
|
Horizontal puff growth: linear (0) or empirical (1). |
|
|
How HYSPLIT draws the random numbers for turbulence. 0 picks 2 when |
|
|
Random seed for a reproducible run. Different seeds give different runs. Requires |
|
|
Enhanced-merging interval, in hours. |
|
|
Standard puff-splitting interval, in hours. |
|
|
Precipitation from the meteorology (1) or from an external ARL file (2). |
|
|
Vertical mixing adjustment: 0 none, 1 a single PBL-average value, 2 scale by |
|
|
Maximum number of pollutant species carried on one particle. |
|
|
Maximum number of particles in a simulation. Unset uses |
|
|
Minimum meteorological subgrid size, in grid points. |
|
|
Trajectory restart duration limit, in hours. |
|
|
Number of particle-size bins per pollutant type. |
|
|
Cycle time of the particle dump file, in hours. |
|
|
Interval between particle dumps, in hours. 0 writes none. |
|
|
Particle initialization from |
|
|
Trajectory restart interval, in hours. |
|
|
Turbulence on (0) or off (1). |
|
|
Trajectory vertical split number. |
|
|
Interval between particle outputs in |
|
|
Dust threshold velocity sensitivity factor. |
|
|
Particle input file for time-varying boundary conditions. |
|
|
Particle input file for initialization or boundary-condition runs. |
|
|
Particle output file name. |
|
|
Emission cycling period, in hours. 0 turns cycling off. |
|
|
Relative humidity that defines a cloud base, in percent. |
|
|
Relative humidity that defines a cloud top, in percent. |
|
|
Factor for the automatic horizontal splitting size. A negative value turns the automatic sizing off. |
|
|
Ratio w’²/(u’²+v’²) of TKE components when unstable. |
|
|
Ratio w’²/(u’²+v’²) of TKE components when stable. |
|
|
Fraction of the vertical Lagrangian timescale used as the time step of the STILT dispersion scheme. |
|
|
Trajectory output interval, in minutes. |
|
|
Advection stability ratio (fraction of a grid cell per time step). |
|
|
Vertical mixing scale factor, used by the |
|
|
Height below which a particle’s time counts toward the footprint. A value of 1 or less is a fraction of the mixed-layer height; a larger value is meters above ground. |
|
|
Vertical Lagrangian timescale, in seconds. |
|
|
Vertical Lagrangian timescale in an unstable boundary layer, in seconds. |
|
|
Vertical Lagrangian timescale in a stable boundary layer, in seconds. -1 uses the Hanna timescale, which varies with the turbulence, and then |
|
|
Vertical motion method: 0 the meteorology’s vertical velocity, 1 isobaric, 2 isentropic, 3 constant density, 4 constant sigma. |
|
|
Height at which the fixed vertical velocity switches from rise to fall, in meters. Used by vertical motion option 9. |
|
|
Fixed fall velocity, in m/s. Used by vertical motion options 9 and 10. |
|
|
Fixed rise velocity, in m/s. Used by vertical motion option 9. |
|
|
Interpolate WRF fields vertically with the WRF scheme instead of HYSPLIT’s. |
|
|
Top of the model domain, in meters above ground. |
|
|
Factor applied to the mixed-layer height, written to HYSPLIT’s |
|
|
Length of each simulation, in hours. Negative runs backward in time. |
|
|
Number of particles released per simulation. More particles give a less noisy footprint and take longer to run. |
|
|
Apply a vertical Gaussian plume model to particles in the hyper near-field. This shrinks their effective dilution depth and raises the influence of fluxes close to the receptor. Requires |
|
|
Delete HYSPLIT’s particle files ( |
|
|
Time limit for one |
|
|
Directory holding a custom |
|
|
Particle variables |
|
|
Variant name its simulations run under, also their directory name. |
Required |
|
Variant name as declared in |
Required |
|
Name of the meteorology this variant runs with. |
Required |
|
Realization number within |
|
|
Variant whose trajectories this one computes its footprint from, instead of running HYSPLIT ( |
|
Methods#
|
Return the seed for one realization of a variant. |
|
Return this variant as stored in the project's record. |
Return the |
|
|
Return the |
Return the transport parameters alone, as stored with a trajectory. |