Installation#
Install PYSTILT#
pip install "pystilt[visualization]"
This installs PYSTILT, the stilt command-line tool, and matplotlib and
cartopy for plotting maps. Check that it worked:
stilt --help
Optional extras#
Extras add optional features. List them in the brackets, for example
pip install "pystilt[visualization,geometry]".
Extra |
Adds |
|---|---|
|
Plotting ( |
|
Adding footprints up over shapefiles, counties, or H3 hexagons, with exactextract for fast overlaps. |
|
Downloading meteorology from NOAA. |
|
The Jacobian as a sparse xarray array ( |
|
Reading and importing STILT-R and X-STILT output ( |
|
Everything above. |
An output directory on an object store needs the fsspec package for it,
such as s3fs for s3:// or gcsfs for gs://
(Projects And Variants).
Get HYSPLIT#
PYSTILT 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
PYSTILT 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.
stilt 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 Footprint.