runtraj.models.hysplit.ControlFile#

class runtraj.models.hysplit.ControlFile(*, release_time: datetime.datetime, locations: list[tuple[float, float, float]], emisshrs: float, n_hours: int, w_option: int, z_top: float, met_files: list[pathlib.Path], pollutants: list[runtraj.models.hysplit.config.Pollutant] = <factory>, grids: list[runtraj.models.hysplit.config.ConcentrationGrid] = <factory>, trajectory: bool = False) → None[source]#

Contents of a HYSPLIT CONTROL file for one run of hycs_std or hyts_std.

Holds the release time and the release locations, the run time, the vertical motion option, the model top, and the met files, which both programs read alike. For hycs_std the pollutant, concentration grid, and deposition sections follow. Without pollutants and grids, as in the particles mode, those sections are written with fixed values that the particle output does not use. For hyts_std (trajectory) the file ends with where the trajectories are written: tdump in the workdir.

Methods#

read(path)

Read a CONTROL file written by write().

write(path)

Write the CONTROL file.