Transforms#
Particle transforms multiply each particle row’s weight, and the
footprint is made from foot times weight (see
Particle Weighting (Transforms)). They are runtraj’s (runtraj.transforms),
listed here because PYSTILT’s footprint, background and transport error use
them. A transform is any object with an apply(particles, release=None,
directory=None) method. The built-ins are pydantic models, and their
fields are their config.yaml keys.
Built-in transforms#
Transform that weights each row by an averaging kernel. |
|
Transform that weights each particle by its share of the column's air mass. |
|
Transform that decays each row's |
|
Transform that weighs each row by the tracer that survives dry deposition. |
|
Transform that weighs each row by the tracer that survives a reaction with an oxidant. |
Averaging-kernel tables#
Return a table of averaging kernels, one per release, for |
Science helpers#
Return a copy of the particles with |
|
Return each particle's value of |
|
Return each particle's release pressure and pressure weight. |
|
Return the averaging kernel at each particle's release coordinate. |
|
Return the fraction of a tracer that survives from each row to the release. |
|
Return the fraction of a depositing tracer that survives from each row to the release. |
Loading and dumping#
Return the transform for one config entry. |
|
Return the config mapping for one transform, the inverse of |
|
Apply transforms in order, each with the release and the directory. |
|
Return the |
Sampling a field at particles#
sample_field() reads a gridded field in the cell
nearest each point: an oxidant along each trajectory, a mole fraction where
each particle ends (stilt.background()), or a surface flux under each
particle (particles.stilt.enhancement).
Return the field's value in the cell nearest each point. |
|
Return the name of a field's vertical dimension. |
|
Return the index of the cell nearest each value, or |