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()). 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 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.

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.

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

Run HYSPLIT for one release in workdir and return its particles.

sha256(config)

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

version(config)

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