stilt.transport.hysplit.HysplitConfig#
- class stilt.transport.hysplit.HysplitConfig(*, n_hours: int = -24, hnf_plume: bool = True, veght: float = 0.5, seed: int | None = None, numpar: int = 200, exe_dir: pathlib.Path | None = None, data_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', 'zcfx']]=<factory>, capemin: float = -1.0, cmass: int = 0, conage: int = 48, cpack: int = 1, delt: float = 1.0, dxf: float = 1.0, dyf: float = 1.0, 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: float = 10800.0, 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, kpuff: int = 0, krand: Literal[0, 1, 2, 3, 4, 10, 11, 12, 13]=4, 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: float = 1.0, pinbc: str = '', pinpf: str = '', poutf: str = '', qcycle: float = 0.0, rhb: int = 80, rht: int = 60, splitf: float = 1.0, tkerd: float = 0.18, tkern: float = 0.18, tlfrac: float = 0.1, tout: int = 0, tratio: float = 0.75, tvmix: float = 1.0, vscale: float = 200.0, vscaleu: float = 200.0, vscales: float = -1.0, w_option: int = 0, wbbh: float = 0.0, wbwf: float = 0.0, wbwr: float = 0.0, wvert: bool = False, z_top: float = 25000.0, ziscale: float | list[float] = 1.0, 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) None[source]#
HYSPLIT’s config: every setting that shapes the particles it makes.
In
config.yamlthey are flat, top-level keys when HYSPLIT is the project’s model, as it is by default, and a variant may override any of them. Most are HYSPLITSETUP.CFGentries with HYSPLIT’s own names; see the HYSPLIT user guide for the full meaning of each. The wind-error group (siguverr,tluverr,zcoruverr,horcoruverr) perturbs the particles’ winds, and the mixed-layer group (sigzierr,tlzierr,horcorzierr) perturbs each particle’s footprint by a random mixed-layer height error. Each group is set in full or not at all.
Parameters#
Parameter |
Description |
Default |
|---|---|---|
|
Length of each simulation, in hours. Negative runs backward in time. |
|
|
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. Needs the particle columns |
|
|
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. |
|
|
Random seed for a reproducible run. Different seeds give different runs. Requires |
|
|
Number of particles released per simulation. More particles give a less noisy footprint and take longer to run. |
|
|
Directory holding a custom |
|
|
Directory of HYSPLIT data tables ( |
|
|
Particle variables |
|
|
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. |
|
|
Horizontal puff growth: linear (0) or empirical (1). |
|
|
How HYSPLIT draws the random numbers for turbulence. 0 picks 2 when |
|
|
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 gives every release location its full share: |
|
|
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 |
|
|
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 HYSPLIT’s computational domain, in meters above ground. |
|
|
Factor applied to the mixed-layer height, written to HYSPLIT’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. |
|
Attributes#
Fields left out of a run's recorded settings. |
Methods#
Return |
|
|
Return the |
|
Return n realizations of this config, realization |
Inherited#
From TransportConfig: settings