- satn_profile(satn, s, axis=0, span=10, mode='tile')[source]#
Computes a saturation profile from an image of fluid invasion
satn (ndarray) – An image with each voxel indicating the saturation upon its invasion. 0’s are treated as solid and -1’s are treated as uninvaded void space.
s (scalar) – The global saturation value for which the profile is desired
axis (int) – The axis along which to profile should be measured
span (int) – The number of layers to include in the moving average saturation calculation.
mode (str) –
How the moving average should be applied. Options are:
The average is computed for discrete non-overlapping tiles of a size given by
The average is computed in a moving window starting at
span/2and sliding by a single voxel. This method provides more data points but is slower.
results – Results is a custom porespy class with the following attributes:
The position along the given axis at which saturation values are computed. The units are in voxels.
The local saturation value at each position.
- Return type:
Click here to view online example.