stilt.transport.hysplit.read_particle_dat#

stilt.transport.hysplit.read_particle_dat(path, columns)[source]#

Read a PARTICLE_STILT.DAT 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 and the near-field correction are added after the run (stilt.transport.run_model()).

Return type:

DataFrame

Raises:

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