pc4bims/slope.py
def maxDepth(self):
        '''Method to obtain the maximum depth of a slope where a circular
        slope failure analysis can be performed.

        The maximum depth is such that the biggest circle satisfished the\
        following conditions:
            * It is tangent to the bottom.
            * crosses both the extreme points at the crown and toe.
            * It is orthogonal to the crown plane.

        Returns:
            maxDepth (`int` or `float`): Maximum depth of the slope\
                measured vertically from the toe plane.

        Examples:
            >>> from numpy import array
            >>> surfaceCoords = array([[  0.        ,  16.57142857],
                                       [ 10.        ,  16.57142857],
                                       [ 18.        ,   4.57142857],
                                       [ 28.        ,   4.57142857]])
            >>> slopeGeometry = NaturalSlope(surfaceCoords)
            >>> slopeGeometry.maxDepth()
            4.571428571428573
        '''

        # Distance between the two extreme points
        differenceVec = self.surfaceCoords[-1] - self.surfaceCoords[0]
        distExtrPts = np.linalg.norm(differenceVec)
        # Radius of the largest circle
        maximumCircleRadius = distExtrPts/2 * distExtrPts/differenceVec[0]
        # Toe depth is the difference between maximum-circle radius and
        # the slope-height
        maxDepth = maximumCircleRadius - self.slopeHeight
        # Setting the attribute to the instanced object.
        setattr(self, 'maxDepth', maxDepth)
        return maxDepth
Method to obtain the maximum depth of a slope where a circular
        slope failure analysis can be performed.

        The maximum depth is such that the biggest circle satisfished the\
        following conditions:
            * It is tangent to the bottom.
            * crosses both the extreme points at the crown and toe.
            * It is orthogonal to the crown plane.

        Returns:
            maxDepth (`int` or `float`): Maximum depth of the slope\
                measured vertically from the toe plane.

        Examples:
            >>> from numpy import array
            >>> surfaceCoords = array([[  0.        ,  16.57142857],
                                       [ 10.        ,  16.57142857],
                                       [ 18.        ,   4.57142857],
                                       [ 28.        ,   4.57142857]])
            >>> slopeGeometry = NaturalSlope(surfaceCoords)
            >>> slopeGeometry.maxDepth()
            4.571428571428573
        
Method to obtain the maximum depth of a slope where a circular
slope failure analysis can be performed.

The maximum depth is such that the biggest circle satisfished the\
following conditions:
It is tangent to the bottom.
crosses both the extreme points at the crown and toe.
It is orthogonal to the crown plane.
Method to obtain the maximum depth of a slope where a circular slope failure analysis can be performed . The maximum depth is such that the biggest circle satisfished the \ following conditions : It is tangent to the bottom . crosses both the extreme points at the crown and toe . It is orthogonal to the crown plane .
def maxDepth(self):
        differenceVec = self.surfaceCoords[-1] - self.surfaceCoords[0]
        distExtrPts = np.linalg.norm(differenceVec)
        maximumCircleRadius = distExtrPts/2 * distExtrPts/differenceVec[0]
        maxDepth = maximumCircleRadius - self.slopeHeight
        setattr(self, 'maxDepth', maxDepth)
        return maxDepth
def maxDepth ( self ) : differenceVec = self . surfaceCoords [ - 1 ] - self . surfaceCoords [ 0 ] distExtrPts = np . linalg . norm ( differenceVec ) maximumCircleRadius = distExtrPts / 2 * distExtrPts / differenceVec [ 0 ] maxDepth = maximumCircleRadius - self . slopeHeight setattr ( self , 'maxDepth' , maxDepth ) return maxDepth
Method to obtain the maximum depth of a slope where a circular
slope failure analysis can be performed.
Method to obtain the maximum depth of a slope where a circular slope failure analysis can be performed .
'''Method to obtain the maximum depth of a slope where a circular
        slope failure analysis can be performed.

        The maximum depth is such that the biggest circle satisfished the\
        following conditions:
            * It is tangent to the bottom.
            * crosses both the extreme points at the crown and toe.
            * It is orthogonal to the crown plane.

        Returns:
            maxDepth (`int` or `float`): Maximum depth of the slope\
                measured vertically from the toe plane.

        Examples:
            >>> from numpy import array
            >>> surfaceCoords = array([[  0.        ,  16.57142857],
                                       [ 10.        ,  16.57142857],
                                       [ 18.        ,   4.57142857],
                                       [ 28.        ,   4.57142857]])
            >>> slopeGeometry = NaturalSlope(surfaceCoords)
            >>> slopeGeometry.maxDepth()
            4.571428571428573
        ''' # Distance between the two extreme points # Radius of the largest circle # Toe depth is the difference between maximum-circle radius and # the slope-height # Setting the attribute to the instanced object.
maxDepth (`int` or `float`): Maximum depth of the slope\
measured vertically from the toe plane.
maxDepth ( ` int ` or ` float ` ) : Maximum depth of the slope \ measured vertically from the toe plane .
self
examples
>>> from numpy import array
>>> surfaceCoords = array([[  0.
>>> from numpy import array >>> surfaceCoords = array ( [[ 0 .