find_h#
- find_h(saturation, position=None, srange=[0.01, 0.99])[source]#
Given a saturation profile, compute the height between given bounds
- Parameters:
saturation (array_like) – A list of saturation values as function of
position
position (array_like, optional) – A list of positions corresponding to each saturation. If not provided then each value in
saturation
is assumed to be separated by 1 voxel.srange (list) – The minimum and maximum value of saturation to consider as the start and end of the profile
- Returns:
h – The height of the two-phase zone
- Return type:
scalar
See also
Notes
The
satn_profile
function can be used to obtain thesaturation
andposition
from an image.Examples
Click here to view online example.