runtraj.models.hysplit.read_particle_dat#

runtraj.models.hysplit.read_particle_dat(path, columns)[source]#

Read HYSPLIT’s particle file as a particle table.

The varsiwant codes indx, time, long, and lati become the particle table’s particle, age, lon, and lat (PARTICLE_COLUMNS).

Parameters:
  • path (str | Path) – The file HYSPLIT wrote.

  • columns (Sequence[str]) – Its columns, the varsiwant of the run, in order.

Returns:

One row per particle per output step, as HYSPLIT wrote them. The release heights are added after the run (runtraj.models.run_model()).

Return type:

DataFrame

Raises:

ValueError – If the file has a different number of columns.