Trajectories#

A transport model in a trajectory mode, such as HYSPLIT’s mode: trajectory (Trajectories), follows single air parcels with the mean wind and no turbulence. Its result is the trajectories type (Result Types and Concentration lists the types): one table per release, a row for each trajectory at each output time. sim.trajectories reads one simulation’s and runtraj.Project.trajectories() many.

Column

Units

Meaning

trajectory

The trajectory’s number in its release, from 1: a point release starts one, and a multipoint release one from each point, in the order of the points. Stored as int32.

time

UTC

When the row is.

age

minutes

Time since the release, negative in a backward run. Each trajectory has a row at age = 0, where it started. Stored as int32.

lon, lat

degrees

Where the trajectory is.

zagl

m

Its height above ground.

A model adds a column for each value it writes along the trajectory. HYSPLIT always writes pres, and one more for each tm_ setting that is 1:

Column

Setting

Units

Meaning (HYSPLIT’s label in its file)

pres

always

hPa

Pressure (PRESSURE).

tpot

tm_tpot

K

Potential temperature (THETA). Also written when the vertical motion is isentropic (w_option: 2).

temp

tm_tamb

K

Air temperature (AIR_TEMP).

rain

tm_rain

mm per hour

Rainfall (RAINFALL).

mlht

tm_mixd

m

Mixed-layer depth (MIXDEPTH).

relh

tm_relh

percent

Relative humidity (RELHUMID).

sphu

tm_sphu

g/kg

Specific humidity (SPCHUMID).

mixr

tm_mixr

g/kg

Water vapor mixing ratio (H2OMIXRA).

zsfc

tm_terr

m

Terrain height above sea level (TERR_MSL). zagl + zsfc is the trajectory’s height above sea level.

dswf

tm_dswf

W m⁻²

Downward shortwave flux (SUN_FLUX).

The values are HYSPLIT’s, as its file holds them, to one decimal (three for lon and lat). A column that shares its name with a particle column (The Particle Table) is the same quantity, but HYSPLIT’s trajectory program writes humidity in g/kg, so check a unit here before you compare the two.

The table is not the particle table. It has no foot and no weight, the particle transforms do not run on it, and a stage that reads particles is refused on a variant that makes trajectories.

The file of one release is Parquet, under trajectories/ in the output directory (Output Layout), with the table’s columns after a release column that holds the release id. Its metadata is a particle file’s: runtraj:release, runtraj:settings, runtraj:met_files, runtraj:hash and runtraj:version.

TRAJECTORY_SCHEMA

The columns every trajectory table has, with what each holds.

check_trajectories

Raise unless result is a trajectory table: a DataFrame with the columns of TRAJECTORY_SCHEMA and at least one row.

read_trajectories

Read a trajectory file write_trajectories() wrote.

write_trajectories

Write a trajectory table to a Parquet file that read_trajectories() reads alone.

trajectories_from_table

Return a table of many releases' trajectories as one DataFrame.