stilt.footprint.FootprintStage.run#

FootprintStage.run(config, sim, path)[source]#

Calculate a simulation’s footprint from its particles and write it at path.

The particles get the foot the settings ask for (footprint_particles()): the transport model’s own, or one computed from the met files the run read, which is used and not stored. The near-field correction reads footprint_depth. A relative file name in a transform’s settings starts from the project directory (sim.directory). When no particle reaches the grid, the file written has no rows and is marked stilt:empty: a finished result, which sim.footprint reads as None. stilt.Simulation.calc_footprint() makes footprints with other settings, without writing them.

Parameters:
  • config (FootprintConfig) – The variant’s footprint settings, as resolve() returned them.

  • sim (runtraj.simulation.Simulation) – The simulation, as the worker gives it: the particle part, which reads the particles.

  • path (Path | UPath) – Where to write the footprint file.

Return type:

None