stilt.footprint.FootprintStage.resolve#

FootprintStage.resolve(config, model, model_settings, directory)[source]#

Return the footprint settings a variant’s simulations run with.

The geometry is read, once however many variants name it, and its hash recorded (geometry_hash); the grid of a footprint given only by a geometry is derived from it (stilt.Mesh.to_grid()). A relative geometry file starts from directory.

When the footprint is made from the transport model’s own foot (pbl_height unset, and a model that records the depth it made foot with, HYSPLIT’s veght), footprint_depth becomes that depth: the near-field correction reads it, and the footprint records it.

Raises:

ValueError – If the settings have neither a grid nor a geometry, the near-field correction is on and the transport model is not asked for a particle column it reads (HYSPLIT’s varsiwant), or a footprint_depth is written for a footprint made from the model’s foot and differs from the model’s depth.

Return type:

FootprintConfig

Parameters: