stilt.Simulation.generate_footprint#
- Simulation.generate_footprint(config=None, write=False, transforms=None, context=None)[source]#
Calculate the footprint from the particles.
Runs HYSPLIT first when there are no trajectories yet. The result is also kept as
footprint. When no particle reaches the grid there is no footprint: the method returnsNoneand, withwrite=True, writes the.emptymarker instead of the NetCDF.- Parameters:
config (
FootprintConfig|None) – Footprint settings. Defaults to the variant’s own. Pass other settings to try them without a new variant, for examplesim.footprint_config.model_copy(update={"smooth_factor": 0.5}).write (
bool) – Also write the footprint tofootprint_path, and the trajectories when HYSPLIT had to run.transforms (
Sequence[ParticleTransform] |None) – Extra particle transforms, applied afterconfig.transformsand recorded with them. Any object with anapply(particles, context)method works.context (
TransformContext|None) – Passed to every transform. Defaults totransform_context().
- Returns:
The footprint, or
Nonewhen no particle reaches the grid (seeempty_reason).- Return type:
Footprint|None- Raises:
TypeError – If the variant has no grid and no config is given.