Installation#

Install runtraj#

Install runtraj from PyPI:

pip install "runtraj[visualization]"

This installs runtraj, the runtraj command-line tool, and matplotlib and cartopy for plotting maps. Check that it worked:

runtraj --help

Optional extras#

Extras add optional features. List them in the brackets, for example runtraj[visualization,download].

Extra

Adds

visualization

Plotting (.runtraj.plot.map() on particles, .plot.map() on releases), with coastlines and state borders from cartopy.

download

Downloading meteorology from NOAA.

complete

Everything above.

An output directory on an object store needs the fsspec package for it, such as s3fs for s3:// or gcsfs for gs:// (output in Configuration).

Get HYSPLIT#

runtraj runs NOAA’s HYSPLIT program, hycs_std, but does not include it. Download HYSPLIT from NOAA’s Air Resources Laboratory, which asks you to accept the HYSPLIT terms of use first. Unpack it, and point directory at the folder it makes, in a project’s config.yaml:

models:
  hysplit:
    directory: /path/to/hysplit

runtraj runs exec/hycs_std under that folder and reads HYSPLIT’s data tables from its bdyfiles/. Without directory it runs the first hycs_std on PATH, which a cluster’s HYSPLIT module sets when you load it.

Tip

Make sure hycs_std has permission to run: chmod +x exec/hycs_std.

runtraj check says when a project can find no hycs_std, or one that cannot run. Your Own HYSPLIT Build And Data Tables has more on choosing a download and on using more than one build.

Next: Your First Run.