DepthInterval

petrophys.model.log_data.DepthInterval

class DepthInterval(top, bottom, name='')[source]

Represents a depth interval.

Parameters:
top

Top depth of interval

Type:

float

bottom

Bottom depth of interval

Type:

float

name

Name or identifier for the interval

Type:

str

Attributes

thickness

Return interval thickness.

Methods

contains

Check if depth(s) are within this interval.

intersection

Return intersection with another interval.

overlaps

Check if this interval overlaps with another.

property thickness: float

Return interval thickness.

contains(depth)[source]

Check if depth(s) are within this interval.

Parameters:

depth (float | ndarray)

Return type:

bool | ndarray

overlaps(other)[source]

Check if this interval overlaps with another.

Parameters:

other (DepthInterval)

Return type:

bool

intersection(other)[source]

Return intersection with another interval.

Parameters:

other (DepthInterval)

Return type:

DepthInterval | None