stilt.particles.ParticlesAccessor.enhancement#
- ParticlesAccessor.enhancement(flux)[source]#
Return each particle’s enhancement,
foottimes flux summed along its trajectory.The mean over particles, after any weighting, is the modeled enhancement at the receptor. Unlike
foot.stilt.enhancement, the flux is taken at each particle position, with no gridding or smoothing.- Parameters:
flux (
DataArray) – Surface flux on alat/longrid, in µmol m⁻² s⁻¹ for an enhancement in ppm. A flux with atimedimension is read as steps that start at their labels, asfoot.stilt.enhancementreads it: each particle row takes the last flux step that starts at or before the row’stime. A row before the first label gets zero flux, and a row after the last label takes the last step. A flux labeled at the middle of its steps must be relabeled first (seefoot.stilt.enhancement). Points outside the flux grid, and missing cells, count as zero flux.- Returns:
Enhancement indexed by
particle. A particle that never crosses the flux field gets 0.- Return type:
- Raises:
ValueError – If the flux varies in time and the particles have no
timecolumn.