Post Processing (pept.processing
)#
The PEPToriented postprocessing suite, including occupancy grid, vector velocity fields, etc.
This module contains fast, robust functions that operate on PEPTlike data and integrate with the pept library’s base classes.
Probability / Residence Distributions#

Compute the 2D probability distribution of some tracer quantity (eg velocity in each cell). 

Compute the 3D probability distribution of some tracer quantity (eg velocity in each cell). 

Compute the 2D residence distribution of some tracer quantity (eg time spent in each cell). 

Compute the 3D residence distribution of some tracer quantity (eg time spent in each cell). 
Vector Grids#

Compute a 2D vector field  effectively two 2D grids computed from two columns, for example X and Y velocities. 

Object produced by 

Compute a 3D vector field  effectively three 3D grids computed from three columns, for example X, Y and Z velocities. 

Object produced by 
Mixing Quantification#

Compute Laceylike mixing image, with streamlines passing through plane 1 being split into Red and Blue tracers, then evaluated into RGB pixels at a later point in plane 2. 

Apply the LaceyColors mixing algorithm at num_divisions equidistant points between p1 and p2, saving images at each step in directory. 

Compute a Lagrangian mixing measure  the changes in tracer distances to a point P1 as they pass through an "inlet" plane and another point P2 when reaching an "outlet" plane. 
Apply the RelativeDeviations mixing algorithm at num_divisions equidistant points between p1 and p2, saving histogram images at each step in directory. 


Compute autocorrelation of multiple measures (eg YZ velocities) as a function of a lagging variable (eg time). 

Project multiple tracer passes onto a moving 2D plane along a given direction between start and end coordinates, saving each frame in directory. 