runtraj.models.hysplit.write_inputs#

runtraj.models.hysplit.write_inputs(workdir, release_time, locations, config, met_files, kmsl=0)[source]#

Write everything hycs_std reads for one run into workdir.

Links hycs_std (from config.directory, or else PATH: find_hycs_std()) and HYSPLIT’s data tables (data_tables()), and writes CONTROL and SETUP.CFG, plus ZICONTROL, WINDERR, and ZIERR when the settings call for them. workdir is created if needed, and should be empty.

Parameters:
  • workdir (str | Path) – Directory to write into.

  • release_time (datetime) – The release time, in UTC.

  • locations (Sequence[tuple[float, float, float]]) – The release locations, each (longitude, latitude, height) in degrees and meters, in the order CONTROL lists them.

  • config (HysplitConfig) – Transport and error settings.

  • met_files (Sequence[Path]) – Meteorology files, in the order HYSPLIT should read them.

  • kmsl (int) – HYSPLIT’s KMSL: 0 when the release heights are above ground, 1 when they are above sea level.

Raises:

HYSPLITNotFoundError – If there is no hycs_std to link (find_hycs_std()).

Return type:

None