PorosityCorrection

petrophys.interpretation.core_analysis.PorosityCorrection

class PorosityCorrection(
A,
B,
r_squared,
n_points,
rmse=nan,
input_curve='PHIE',
method='core_linear',
min_log_porosity=0.01,
)[source]

Linear porosity correction derived from core porosity.

Model: PHI_core_equivalent = A * PHI_log + B

Attributes

input_curve

method

min_log_porosity

Log porosity at or below which the fit has no core pairs (its min_porosity).

rmse

A

B

r_squared

n_points

Methods

predict

Predict core-equivalent porosity from a log porosity curve, clipped to 0-0.5.

Parameters:
A: float
B: float
r_squared: float
n_points: int
rmse: float = nan
input_curve: str = 'PHIE'
method: str = 'core_linear'
min_log_porosity: float = 0.01

Log porosity at or below which the fit has no core pairs (its min_porosity).

predict(porosity)[source]

Predict core-equivalent porosity from a log porosity curve, clipped to 0-0.5.

Log porosity at or below min_log_porosity (shale, tight rock) lies outside the fitted range and keeps its log value: the line’s intercept would otherwise give every zero-porosity shale the porosity B.

Parameters:

porosity (float | ndarray)

Return type:

float | ndarray