runtraj.models.hysplit.write_inputs#
- runtraj.models.hysplit.write_inputs(workdir, release_time, locations, config, met_files, kmsl=0)[source]#
Write everything
hycs_stdreads for one run into workdir.Links
hycs_std(fromconfig.directory, or elsePATH:find_hycs_std()) and HYSPLIT’s data tables (data_tables()), and writesCONTROLandSETUP.CFG, plusZICONTROL,WINDERR, andZIERRwhen the settings call for them. workdir is created if needed, and should be empty.- Parameters:
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 orderCONTROLlists them.config (
HysplitConfig) – Transport and error settings.met_files (
Sequence[Path]) – Meteorology files, in the order HYSPLIT should read them.kmsl (
int) – HYSPLIT’sKMSL: 0 when the release heights are above ground, 1 when they are above sea level.
- Raises:
HYSPLITNotFoundError – If there is no
hycs_stdto link (find_hycs_std()).- Return type: