Installation ============ Install runtraj --------------- Install runtraj from PyPI: .. code-block:: bash pip install "runtraj[visualization]" This installs runtraj, the ``runtraj`` command-line tool, and matplotlib and cartopy for plotting maps. Check that it worked: .. code-block:: bash runtraj --help Optional extras --------------- Extras add optional features. List them in the brackets, for example ``runtraj[visualization,download]``. .. list-table:: :header-rows: 1 :widths: 22 78 * - 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 :doc:`../reference/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``: .. code-block:: 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. :doc:`../guides/hysplit_build` has more on choosing a download and on using more than one build. Next: :doc:`quickstart`.