FormationAnalysisResult

petrophys.evaluation.summaries.FormationAnalysisResult

class FormationAnalysisResult(
well_name,
formations,
summaries,
depth_unit='m',
union_gross=None,
union_net_pay=None,
workflow_result=None,
curves=<factory>,
)[source]

Complete formation analysis results for a well.

Attributes

depth_unit

total_gross

total_net_pay

union_gross

union_net_pay

workflow_result

Workflow result the summaries were computed from, when produced by run_formation_analysis() (inspect its trace for provenance).

well_name

formations

summaries

curves

Curve each pay average is taken from, e.g. {"Avg PHIE": "PHIE_CC"} (see pay_average_curves()).

Methods

print_report

Print a formatted report to stdout.

to_csv

Export results to CSV.

to_dataframe

Convert results to a pandas DataFrame.

Parameters:
well_name: str
formations: List[Formation]
summaries: List[FormationSummary]
depth_unit: str = 'm'
union_gross: float | None = None
union_net_pay: float | None = None
workflow_result: Any | None = None

Workflow result the summaries were computed from, when produced by run_formation_analysis() (inspect its trace for provenance).

curves: Dict[str, str | None]

Curve each pay average is taken from, e.g. {"Avg PHIE": "PHIE_CC"} (see pay_average_curves()).

property total_gross: float
property total_net_pay: float
to_dataframe()[source]

Convert results to a pandas DataFrame.

N/G (reservoir) is net reservoir / gross and Pay/Gross is net pay / gross. Avg PHIE, Avg Sw, Avg VCL and Avg Perm (mD) are over the net-pay samples: porosity and clay volume weighted by thickness, Sw by pore volume (porosity times thickness), permeability a geometric mean. HCPV is the hydrocarbon pore thickness in the depth unit of the thickness columns and BVW the thickness-weighted bulk volume of water over net pay, v/v. Avg GR, Avg RHOB, Avg NPHI, Avg RDEP and Avg PHIT are sample means over the whole formation. DataFrame.attrs["curves"] names the curve each pay average is taken from. Where that is a core-corrected curve (PHIE_CC, PERM_CC) that some pay samples lack, those samples read the plain curve, and DataFrame.attrs["plain_curve_pay_samples"] gives their number per formation, e.g. {"Etive Fm.": {"PERM": 12}}.

to_csv(filepath)[source]

Export results to CSV.

Parameters:

filepath (str | Path)

Return type:

None

print_report()[source]

Print a formatted report to stdout.

Return type:

None