stilt.Trajectories.from_particles#

classmethod Trajectories.from_particles(particles, receptor, params, met_files, is_error=False)[source]#

Build a Trajectories instance from raw HYSPLIT particle output.

Assigns xhgt for column/multipoint receptors, applies hnf_plume dilution correction if configured, and converts the time column (minutes) to absolute datetime.

Parameters:
  • particles (pd.DataFrame) – Raw particle table from read_particle_dat.

  • receptor (Receptor) – Receptor used for the run.

  • params (TransportParams) – Transport/model parameters used for the run.

  • met_files (list[Path]) – Meteorology files used for the run.

  • is_error (bool, default=False) – Whether these are wind-error-perturbed particles.

Return type:

stilt.trajectory.Trajectories