CoreDepthShift

petrophys.interpretation.core_analysis.CoreDepthShift

class CoreDepthShift(
shift,
correlation,
correlation_unshifted,
n_points,
shifts,
correlations,
log_curve,
core_property,
log_scale=False,
depth_unit='',
runs=None,
)[source]

Result of a core-to-log depth-shift scan.

Parameters:
shift

Best shift, in well depth units. It is added to the core depths: a positive shift moves the plugs deeper (log depth = core depth + shift).

Type:

float

correlation

Pearson correlation between the core property and the log at the best shift.

Type:

float

correlation_unshifted

The same correlation with the plug depths as stored (shift 0).

Type:

float

n_points

Number of plug/log pairs behind correlation.

Type:

int

shifts, correlations

Every scanned shift and its correlation (NaN where fewer than min_points pairs were valid).

Type:

ndarray

log_curve

Log curve that was matched.

Type:

str

core_property

Core property that was matched (a CoreData attribute name).

Type:

str

log_scale

Whether both series were compared as log10 values.

Type:

bool

depth_unit

Depth unit of the well ("m" or "ft").

Type:

str

runs

Per-core-run scan when run_gap was given: one row per run with top, bottom, plugs, shift and correlation.

Type:

DataFrame or None

Attributes

at_search_edge

True when the best shift is the first or last scanned shift.

r_squared

Coefficient of determination (squared correlation) at the best shift.

shifts

correlations

Methods

to_dataframe

Return the scan as a DataFrame with shift, correlation and r_squared.

shifts: ndarray
correlations: ndarray
property r_squared: float

Coefficient of determination (squared correlation) at the best shift.

property at_search_edge: bool

True when the best shift is the first or last scanned shift.

The correlation might keep rising outside the scanned window; widen max_shift before trusting the result.

to_dataframe()[source]

Return the scan as a DataFrame with shift, correlation and r_squared.