runtraj.models.hysplit.HysplitModel#

class runtraj.models.hysplit.HysplitModel[source]#

HYSPLIT as a transport model, the object get_model("hysplit") returns.

run() picks the met files a release needs, writes HYSPLIT’s input files (write_inputs()), runs hycs_std, and reads the particles it writes (read_particle_dat()), or, in the concentration mode, the file of each grid (read_cdump()). In the trajectory mode it runs hyts_std and reads its trajectory file (read_tdump()). HYSPLIT reads the met where it is (the cropped copies when the met is cropped), so nothing is staged per run.

Attributes#

batched

One hycs_std (or hyts_std) process per release.

needs_workdir

HYSPLIT writes its inputs and outputs as files in a directory.

Methods#

check_met(met, releases, n_hours)

Return what would stop HYSPLIT from running releases with met, found before any run.

check_releases(releases, config)

Return the releases HYSPLIT cannot run with config.

data_files(config)

Return the SHA-256 of each data table a run uses, by name.

downloads_met(met)

Whether met downloads its files from an ARL archive (download is set).

fetch_met(met, windows)

Get the met files that cover windows, downloading the ones a download lacks.

release_rows(particles, release)

Return where each particle started, for a HYSPLIT build that writes no row at age = 0.

result(config)

Return the type of result a run with config makes, which its mode says.

result_files(config)

Return the files of a run with config that hold its result, left out of a failed run's kept workdir.

run(release, config, met, window[, workdir, ...])

Run HYSPLIT for one release in workdir and return its particles, its grids in the concentration mode, or its trajectories.

sha256(config)

Return the SHA-256 of the program config runs, which tells its build from any other.

version(config)

Return the version the program config runs prints when it starts (hysplit_version()).