stilt.observations.particle_background#
- stilt.observations.particle_background(particles, field)[source]#
Return the field at each particle’s endpoint, indexed by
indx.The endpoint is the row farthest in time from release (
stilt.trajectory.endpoint_rows()). A vertical dimension must be named after the particle column it is matched against:presfor pressure in hPa,zaglfor height above ground in meters, or a column you add, such as height above sea level fromzagl + zsfc. Rename it with, for example,field.rename(level="pres"). A field with atimedimension is sampled at the endpoint’sdatetime.